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' 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" } }