diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..060f0e2 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# 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:mime:20170907': + - unirest > mime: + patched: '2018-06-25T23:58:32.925Z' + 'npm:tunnel-agent:20170305': + - unirest > request > tunnel-agent: + patched: '2018-06-25T23:58:32.925Z' diff --git a/package.json b/package.json index 484ae08..96342cc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ }, "scripts": { "test": "standard && mocha --reporter spec", - "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha" + "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "standard": { "ignore": [ @@ -50,6 +52,8 @@ "jade": "^1.9.2", "morgan": "^1.5.2", "standard": "^2.11.0", - "unirest": "^0.4.0" - } + "unirest": "^0.4.0", + "snyk": "^1.85.0" + }, + "snyk": true }