diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..b282354445 --- /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-20T18:26:03.196Z' diff --git a/package.json b/package.json index a63eeb5e30..bc91731e5a 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", @@ -32,8 +34,8 @@ "file-type": "^8.1.0", "humanize-ms": "1.0.1", "jquery": "^2.2.4", - "lodash": "4.17.4", - "marked": "0.3.5", + "lodash": "4.17.12", + "marked": "0.3.9", "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.278.2" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }