From 3cec81f3c1cde6de36062a923c2d730fc9b31f00 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 13:23:50 +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 258cd66..1a9c433 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,9 @@ "scripts": { "start": "node ./server.js", "build": "./node_modules/browserify/bin/cmd.js -e app/main.js -o public/js/cssarrowplease.js", - "test": "mocha --require=test/test_helper.js" + "test": "mocha --require=test/test_helper.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "connect": "~2.0.3", @@ -28,7 +30,8 @@ "mocha": "latest", "chai": "latest", "sinon": "latest", - "sinon-chai": "latest" + "sinon-chai": "latest", + "snyk": "^1.316.1" }, "engines": { "node": ">=0.10" @@ -45,5 +48,6 @@ "domains": [ "cssarrowplease.com", "www.cssarrowplease.com" - ] + ], + "snyk": true } From 99816e8622931676d3be3232e9a1db09ca5b9ada Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 13:23:51 +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 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6f0bf1f --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - mocha > yargs-unparser > lodash: + patched: '2020-05-01T05:23:47.880Z' + - jsdom > request-promise-native > request-promise-core > lodash: + patched: '2020-05-01T05:23:47.880Z'