diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7d00149 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - pm2 > async > lodash: + patched: '2019-07-04T01:57:47.742Z' + - pm2 > pm2-deploy > async > lodash: + patched: '2019-07-04T01:57:47.742Z' diff --git a/package.json b/package.json index aa6b022..b46d050 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "start": "node pm2.js", "monitor": "nodemon 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", @@ -36,6 +38,8 @@ "dependencies": { "express": "^4.14.0", "express-ws": "^2.0.0", - "pm2": "^2.2.3" - } + "pm2": "^2.2.3", + "snyk": "^1.189.0" + }, + "snyk": true }