From edf98d352a7bc7bf79b77cd22e27d9a1391c6949 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 04:05:33 +0200 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 98db439..5d9c909 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "test": "nyc --extension .js --extension .ts mocha --require ts-node/register --ui=tdd test/*.ts test/*.js", "benchmark": "npm run benchmark:vanilla && npm run benchmark:redirect", "benchmark:vanilla": "concurrently -k -s first \"node ./benchmark/without.js\" \"autocannon -c 100 -d 5 -p 10 https://localhost:3000/\"", - "benchmark:redirect": "concurrently -k -s first \"node ./benchmark/with.js\" \"autocannon -c 100 -d 5 -p 10 https://localhost:3000/\"" + "benchmark:redirect": "concurrently -k -s first \"node ./benchmark/with.js\" \"autocannon -c 100 -d 5 -p 10 https://localhost:3000/\"", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Lolo_32", "license": "Apache-2.0", @@ -40,5 +42,9 @@ "supertest": "3.3.0", "ts-node": "7.0.1", "typescript": "3.2.1" + }, + "snyk": true, + "dependencies": { + "snyk": "^1.316.1" } } From 86c31a250ea4a54aa40a6c9ec5e9a549289ec610 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 04:05:33 +0200 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..817deba --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - concurrently > lodash: + patched: '2020-05-01T02:05:30.786Z' + - nyc > istanbul-lib-instrument > @babel/traverse > lodash: + patched: '2020-05-01T02:05:30.786Z' + - nyc > istanbul-lib-instrument > @babel/traverse > @babel/generator > lodash: + patched: '2020-05-01T02:05:30.786Z' + - nyc > istanbul-lib-instrument > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-05-01T02:05:30.786Z' + - nyc > istanbul-lib-instrument > @babel/traverse > @babel/helper-function-name > @babel/helper-get-function-arity > @babel/types > lodash: + patched: '2020-05-01T02:05:30.786Z'