From e28307f3cce2eb189e011bfff43c79609899283f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 4 May 2020 03:08:46 -0300 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b0f0b22..22b48a3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "passport": "^0.3.2", "passport-local": "^1.0.0", "path": "^0.12.7", - "request-ip": "^2.0.1" + "request-ip": "^2.0.1", + "snyk": "^1.317.0" }, "devDependencies": { "chai": "^3.5.0", @@ -31,7 +32,9 @@ }, "scripts": { "test": "set NODE_TEST=1;&& mocha test/**/*.js -c -t 120000", - "start": "node server/index.js" + "start": "node server/index.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Ulian", "license": "ISC", @@ -42,5 +45,6 @@ "type": "git", "url": "git+https://github.com/Ulian/voting.git" }, - "homepage": "https://github.com/Ulian/voting#readme" + "homepage": "https://github.com/Ulian/voting#readme", + "snyk": true } From 68096e8c9415560817ea9e470b9026da13b2faaf Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 4 May 2020 03:08:47 -0300 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f252e1e --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - mongoose > async > lodash: + patched: '2020-05-04T06:08:35.571Z'