diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6d3943e --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - mongoose > mquery > debug: + patched: '2017-09-27T01:26:05.882Z' diff --git a/package.json b/package.json index bad16ab..ea122bd 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "server.js", "scripts": { "start": "node server.js", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -26,6 +28,8 @@ "mongoose-random": "^0.1.1", "nodemon": "^1.3.7", "request": "^2.57.0", - "winston": "^1.0.1" - } + "winston": "^1.0.1", + "snyk": "^1.41.1" + }, + "snyk": true }