diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a3d6e29 --- /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-q > mongoose > async > lodash: + patched: '2019-07-04T01:23:10.181Z' diff --git a/package.json b/package.json index e61b7d3..ab332f6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --recursive", - "start": "node bin/server.js" + "start": "node bin/server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "MIT", "devDependencies": { @@ -33,6 +35,8 @@ "q": "1.4.1", "superagent": "^1.4.0", "superagent-as-promised": "3.2.0", - "validator": "4.0.2" - } + "validator": "4.0.2", + "snyk": "^1.189.0" + }, + "snyk": true }