diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c65d469 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - express-validator > lodash: + patched: '2020-04-30T23:05:05.545Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-04-30T23:05:05.545Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-04-30T23:05:05.545Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-04-30T23:05:05.545Z' diff --git a/package.json b/package.json index 7ee833c..1209f20 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "watch": "nodemon ./start.js" + "watch": "nodemon ./start.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [], "author": "", @@ -16,9 +18,11 @@ "express-validator": "^6.0.0", "http-auth": "^3.2.3", "mongoose": "^5.7.5", - "pug": "^2.0.0-rc.4" + "pug": "^2.0.0-rc.4", + "snyk": "^1.316.1" }, "devDependencies": { "nodemon": "^1.14.10" - } + }, + "snyk": true }