From a2b9a8b79d6c487a7a846f3e49c0851ba4fdd932 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 18:24:20 +0100 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 f965c8e..dc0f729 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "main": "server.js", "scripts": { "start": "node server.js", - "test": "NODE_ENV=testing mocha ./test/routes.test.js" + "test": "NODE_ENV=testing mocha ./test/routes.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": "^6" @@ -30,12 +32,14 @@ "moment-timezone": "^0.5.5", "node-fetch": "^1.6.3", "striptags": "^2.1.1", - "throng": "^4.0.0" + "throng": "^4.0.0", + "snyk": "^1.316.2" }, "devDependencies": { "dotenv": "^2.0.0", "expect": "^1.20.2", "mocha": "^3.1.2", "supertest": "^2.0.1" - } + }, + "snyk": true } From f40716cc2ea77df232f96309b0549733b3f17636 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 18:24:21 +0100 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..3040964 --- /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: + - lodash: + patched: '2020-05-01T17:24:18.212Z' + - cheerio > lodash: + patched: '2020-05-01T17:24:18.212Z'