diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a0af1f6 --- /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-05T02:07:54.890Z' diff --git a/package.json b/package.json index c496d2b..87bfc46 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.0.1", "private": false, "scripts": { - "start": "node ./server/bin/www" + "start": "node ./server/bin/www", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -23,6 +25,8 @@ "passport": "~0.3.0", "passport-intercom": "~0.0.4", "serve-favicon": "~2.3.0", - "swig": "~1.4.2" - } + "swig": "~1.4.2", + "snyk": "^1.192.0" + }, + "snyk": true }