diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1a02f3f --- /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: + - mongoose > async > lodash: + patched: '2019-07-03T22:15:25.268Z' + - request-promise > request-promise-core > lodash: + patched: '2019-07-03T22:15:25.268Z' diff --git a/package.json b/package.json index f624582..c3b4c0d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "mocha --reporter spec --compilers ts:ts-node/register test/**/*.test.ts", "start": "nodemon dist/index.js", - "postinstall": "typings install" + "postinstall": "typings install", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [], "author": "", @@ -33,6 +35,8 @@ "morgan": "^1.7.0", "passport": "^0.3.2", "request": "^2.79.0", - "request-promise": "^4.1.1" - } + "request-promise": "^4.1.1", + "snyk": "^1.189.0" + }, + "snyk": true }