From 906bda59d334f184c88576b9c749b9abd1a5d8e4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 28 Sep 2017 22:20:17 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:fresh:20170908 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 Latest report for snyk/goof: https://snyk.io/test/github/snyk/goof --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..8555bbee87 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - mongoose > mquery > debug: + patched: '2017-09-28T22:20:17.091Z' diff --git a/package.json b/package.json index f367c6babc..5d3bf90aed 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "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" }, "dependencies": { "body-parser": "1.9.0", @@ -22,7 +24,7 @@ "ejs": "1.0.0", "ejs-locals": "1.0.2", "errorhandler": "1.2.0", - "express": "4.12.4", + "express": "4.16.0", "express-fileupload": "0.0.5", "humanize-ms": "1.0.1", "jquery": "^2.2.4", @@ -36,9 +38,11 @@ "optional": "^0.1.3", "st": "0.2.4", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^5.7.0", + "snyk": "^1.41.1" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }