From 429a7bf028940c28f0bb0a2c5873403360b2a071 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 23 May 2017 06:35:04 +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 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for ibm-cds-labs/simple-notification-service: https://snyk.io/test/github/ibm-cds-labs/simple-notification-service --- .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..59a87eb --- /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': + - socket.io > socket.io-adapter > debug > ms: + patched: '2017-05-23T06:35:03.787Z' + - socket.io > socket.io-client > debug > ms: + patched: '2017-05-23T06:35:03.787Z' + - socket.io > socket.io-adapter > socket.io-parser > debug > ms: + patched: '2017-05-23T06:35:03.787Z' diff --git a/package.json b/package.json index c7bbe71..701aac9 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 ./bin/www" + "start": "node ./bin/www", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -33,6 +35,8 @@ "request": "^2.78.0", "rethinkdb": "^2.3.3", "simple-service-registry": "^0.1.1", - "socket.io": "^1.4.8" - } + "socket.io": "^2.0.0", + "snyk": "^1.30.1" + }, + "snyk": true }