From 4fcb993bdf599c8c8182b72236bc5843349bbac5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 23 May 2017 07:11:06 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for ibm-cds-labs/advocated: https://snyk.io/test/github/ibm-cds-labs/advocated --- .snyk | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1c28abd --- /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-envoy > cloudant > debug > ms: + patched: '2017-05-23T07:11:05.666Z' + - cloudant-envoy > compression > debug > ms: + patched: '2017-05-23T07:11:05.666Z' + - cloudant-envoy > morgan > debug > ms: + patched: '2017-05-23T07:11:05.666Z' diff --git a/package.json b/package.json index f541f4a..7e84365 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "node app.js" + "start": "node app.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -29,6 +31,8 @@ "crypto-js": "^3.1.6", "express": "^4.14.0", "request": "^2.74.0", - "uuid": "^2.0.2" - } + "uuid": "^2.0.2", + "snyk": "^1.30.1" + }, + "snyk": true }