diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..19fad10 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - pm2 > async > lodash: + patched: '2020-05-01T01:49:33.667Z' + - pm2 > pm2-deploy > async > lodash: + patched: '2020-05-01T01:49:33.667Z' diff --git a/package.json b/package.json index aa6b022..d7efc2f 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.316.1" + }, + "snyk": true }