From 3a9291356f6a80994bc73dca47e21c635fe0557b Mon Sep 17 00:00:00 2001 From: snyk-test Date: Mon, 8 Jul 2019 06:08:38 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7d3065d --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - mongoose > async > lodash: + patched: '2019-07-08T06:08:36.342Z' diff --git a/package.json b/package.json index b0f0b22..6c3d2ec 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.192.3" }, "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 }