diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b254042 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - mongoose > ms: + patched: '2017-05-23T02:24:04.767Z' + - mongoose > mquery > debug > ms: + patched: '2017-05-23T02:24:04.767Z' diff --git a/package.json b/package.json index c7f3ff1..40b6ffc 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,17 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "nodemon app.js" + "start": "nodemon app.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "ISC", "dependencies": { "express": "^4.14.1", "mongoose": "^4.8.3", - "nodemon": "^1.11.0" - } + "nodemon": "^1.11.0", + "snyk": "^1.30.1" + }, + "snyk": true }