diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6eb39aa --- /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-04-30T23:25:36.426Z' diff --git a/package.json b/package.json index 94d4f9d..c6ce2d2 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "GPL", @@ -15,6 +17,8 @@ "hapi-locals": "^0.1.5", "jade": "^1.11.0", "mongoose": "^4.1.4", - "request": "^2.67.0" - } + "request": "^2.67.0", + "snyk": "^*" + }, + "snyk": true }