From caad5eb2d5c2085a7e6021dfaf7c95b89834ff29 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 20 Jun 2017 07:20:10 +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/spark-twitter-watson-dashboard: https://snyk.io/test/github/ibm-cds-labs/spark-twitter-watson-dashboard --- .snyk | 22 ++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..107dc72 --- /dev/null +++ b/.snyk @@ -0,0 +1,22 @@ +# 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': + - mozaik > browserify > crypto-browserify > browserify-sign > elliptic > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > watchify > browserify > crypto-browserify > browserify-sign > elliptic > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > browserify > crypto-browserify > create-ecdh > elliptic > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > watchify > browserify > crypto-browserify > create-ecdh > elliptic > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > browserify > crypto-browserify > browserify-sign > elliptic > hmac-drbg > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > watchify > browserify > crypto-browserify > browserify-sign > elliptic > hmac-drbg > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > browserify > crypto-browserify > create-ecdh > elliptic > hmac-drbg > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' + - mozaik > watchify > browserify > crypto-browserify > create-ecdh > elliptic > hmac-drbg > hash.js > mocha > debug > ms: + patched: '2017-06-20T07:20:10.644Z' diff --git a/package.json b/package.json index 0d9d93b..24a56b5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Real time dashboard for the Twitter Sentiment analysis using Spark Streaming and Watson", "main": "server.js", "scripts": { - "postinstall": "node ./node_modules/bower/bin/bower cache clean && node ./node_modules/bower/bin/bower install" + "postinstall": "node ./node_modules/bower/bin/bower cache clean && node ./node_modules/bower/bin/bower install", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -52,12 +54,14 @@ "superagent": "^1.4.0", "superagent-bluebird-promise": "^2.1.0", "when": "~3.7.3", - "ws": "~0.7.2" + "ws": "~0.7.2", + "snyk": "^1.35.0" }, "devDependencies": { "mocha": "*" }, "author": "david_taieb@us.ibm.com", "license": "Apache-2.0", - "readmeFilename": "README.md" + "readmeFilename": "README.md", + "snyk": true }