diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e3fa1de --- /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: + - lodash: + patched: '2020-05-02T23:11:02.955Z' diff --git a/package.json b/package.json index f96d615..d2edcf7 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,13 @@ "url": "https://github.com/analog-nico/express-print-routes.git" }, "scripts": { - "test": "node_modules/.bin/gulp ci" + "test": "node_modules/.bin/gulp ci", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { - "lodash": "^4.11.1" + "lodash": "^4.11.1", + "snyk": "^1.316.2" }, "peerDependencies": { "express": "^4" @@ -48,5 +51,6 @@ "mkdirp": "^0.5.1", "rimraf": "^2.5.2", "run-sequence": "^1.1.5" - } + }, + "snyk": true }