From 345941ad2172eedb43a25e1b48ae703ff3e03442 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 Oct 2018 06:58:44 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:fresh:20170908 - https://snyk.io/vuln/npm:tunnel-agent:20170305 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 8 ++++++++ package.json | 14 +++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..9b7804d41aa --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - tap > codecov.io > request > tunnel-agent: + patched: '2018-10-24T06:58:42.539Z' diff --git a/package.json b/package.json index 2300e7e8ace..6410b37c98c 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", + "prepare": "npm run snyk-protect" }, "engines": { "node": "6.14.1" @@ -25,7 +27,7 @@ "ejs": "1.0.0", "ejs-locals": "1.0.2", "errorhandler": "1.2.0", - "express": "4.12.4", + "express": "4.15.5", "express-fileupload": "0.0.5", "humanize-ms": "1.0.1", "jquery": "^2.2.4", @@ -39,11 +41,13 @@ "optional": "^0.1.3", "st": "0.2.4", "stream-buffers": "^3.0.1", - "tap": "^5.7.0", + "tap": "^11.1.3", "adm-zip": "0.4.7", - "file-type": "^8.1.0" + "file-type": "^8.1.0", + "snyk": "^1.104.2" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }