diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..059ee6d --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - mongoose > async > lodash: + patched: '2019-07-05T04:48:52.224Z' diff --git a/package.json b/package.json index e13c91f..303c3b4 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,17 @@ "description": "Mean Stack Template", "main": "index.js", "scripts": { - "start": "index.js" + "start": "index.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Daniel K", "license": "ISC", "dependencies": { "body-parser": "^1.18.2", "express": "^4.16.2", - "mongoose": "^4.13.11" - } + "mongoose": "^4.13.11", + "snyk": "^1.192.0" + }, + "snyk": true }