diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..79d10ede --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - nodeunit > tap > coveralls > request > tunnel-agent: + patched: '2018-06-30T04:39:13.214Z' diff --git a/package.json b/package.json index b56bef70..c9dbe24d 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,14 @@ "express": "4.16.3", "nodeunit": "0.11.2", "supertest": "3.1.0", - "mocha": "5.1.1" + "mocha": "5.1.1", + "snyk": "^1.88.0" }, "scripts": { "test": "./node_modules/mocha/bin/mocha", - "start": "app.js" - } + "start": "app.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }