From 2cc9c3974fed37cc82e628e84602ac218be87323 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 7 May 2020 07:32:08 +0800 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 6a7ea9f..8d903e2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "scripts": { "test": "mocha", "dev": "./node_modules/.bin/nodemon bin/server.js", - "start": "node bin/server.js --env=production" + "start": "node bin/server.js --env=production", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -54,7 +56,8 @@ "request": "^2.75.0", "statuses": "^1.3.0", "strip-json-comments": "^2.0.1", - "swiger": "0.0.2" + "swiger": "0.0.2", + "snyk": "^1.319.1" }, "devDependencies": { "mm": "^2.0.0", @@ -63,5 +66,6 @@ "should": "^11.1.0", "supertest": "^2.0.0" }, - "license": "MIT" + "license": "MIT", + "snyk": true } From 7483b78926ac56e4a7c0d427e4972e7aa1bf4048 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 7 May 2020 07:32:09 +0800 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..27be147 --- /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-06T23:32:06.887Z'