From 74388bc03a029f94be7dce761049028da0444dc9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 23 May 2017 23:43:05 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:ms:20170412 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for ibm-cds-labs/devcenter: https://snyk.io/test/github/ibm-cds-labs/devcenter --- .snyk | 12 ++++++++++++ package.json | 16 ++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e2e04cc --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - cloudant > debug > ms: + patched: '2017-05-23T23:43:04.750Z' + - connect-ibmdatacache > debug > ms: + patched: '2017-05-23T23:43:04.750Z' + - connect-ibmdatacache > bluemixdatacache > debug > ms: + patched: '2017-05-23T23:43:04.750Z' diff --git a/package.json b/package.json index f705cd2..cf1c7ba 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.0.2", "description": "Article uploader for Dev Center", "scripts": { - "start": "node app.js" + "start": "node app.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "async": "1.5.0", @@ -11,14 +13,16 @@ "cfenv": "1.0.3", "cloudant": "1.4.2", "connect-ibmdatacache": "0.0.2", - "debug": "2.2.0", - "express": "4.13.4", - "express-session": "1.13.0", + "debug": "2.6.7", + "express": "4.15.3", + "express-session": "1.15.3", "html-to-text": "1.5.0", "jade": "1.11.0", "moment": "2.10.6", "request": "2.67.0", - "unfluff": "0.11.0" + "unfluff": "0.11.0", + "snyk": "^1.30.1" }, - "repository": {} + "repository": {}, + "snyk": true }