diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a9609cb --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - mongoose > async > lodash: + patched: '2020-05-05T05:00:13.417Z' diff --git a/package.json b/package.json index c7f3ff1..a38b1c8 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.317.0" + }, + "snyk": true }