From d443654bcbc4d301b1a2bb47d8c975bb5d6f649e Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 30 May 2017 02:29:04 +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/couchdb-db-transform: https://snyk.io/test/github/ibm-cds-labs/couchdb-db-transform --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..155bc62 --- /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:ms:20170412': + - cloudant > debug > ms: + patched: '2017-05-30T02:29:04.535Z' diff --git a/package.json b/package.json index a03b435..4e07585 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "start": "node app.js", "test": "grunt", - "tests-unit": "grunt" + "tests-unit": "grunt", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -36,7 +38,8 @@ "passport-http": "^0.3.0", "path": "^0.12.7", "redis": "^2.6.2", - "util": "^0.10.3" + "util": "^0.10.3", + "snyk": "^1.31.1" }, "devDependencies": { "assert": "^1.4.1", @@ -47,5 +50,6 @@ "grunt-simple-mocha": "^0.4.1", "jshint": "2.8.0", "mocha": "^3.0.2" - } + }, + "snyk": true }