diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..6e33b15774 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - tap > codecov.io > request > hawk: + patched: '2020-01-21T19:14:28.723Z' diff --git a/package.json b/package.json index a63eeb5e30..363ab7b76a 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,16 @@ "scripts": { "start": "node app.js", "build": "browserify -r jquery > public/js/bundle.js", - "cleanup": "mongo express-todo --eval 'db.todos.remove({});'" + "cleanup": "mongo express-todo --eval 'db.todos.remove({});'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": "6.14.1" }, "dependencies": { "@snyk/nodejs-runtime-agent": "^1.31.0", - "adm-zip": "0.4.7", + "adm-zip": "0.4.11", "body-parser": "1.9.0", "cfenv": "^1.0.4", "consolidate": "0.14.5", @@ -33,7 +35,7 @@ "humanize-ms": "1.0.1", "jquery": "^2.2.4", "lodash": "4.17.4", - "marked": "0.3.5", + "marked": "0.3.6", "method-override": "latest", "moment": "2.15.1", "mongoose": "4.2.4", @@ -43,9 +45,11 @@ "optional": "^0.1.3", "st": "0.2.4", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^11.1.3", + "snyk": "^1.279.0" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }