From fcf08198bce34e34c6096aa6ac27875dc32632c4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 23 May 2017 04:02:07 +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-logging-service: https://snyk.io/test/github/ibm-cds-labs/simple-logging-service --- .snyk | 12 ++++++++++++ package.json | 12 ++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6241fb3 --- /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-23T04:02:07.417Z' + - socket.io > socket.io-client > debug > ms: + patched: '2017-05-23T04:02:07.417Z' + - socket.io > socket.io-adapter > socket.io-parser > debug > ms: + patched: '2017-05-23T04:02:07.417Z' diff --git a/package.json b/package.json index c5b1758..fc1debb 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Backend collector of client tracking data - this microservice simply adds data to a queue", "main": "server.js", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -25,13 +27,15 @@ "node-redis": "^0.1.7", "rabbit.js": "^0.4.4", "simple-service-registry": "^0.1.1", - "socket.io": "^1.4.8", - "when": "~3.7.3" + "socket.io": "^2.0.0", + "when": "~3.7.3", + "snyk": "^1.30.1" }, "devDependencies": { "mocha": "*" }, "author": "glynn.bird@uk.ibm.com", "license": "IBM", - "readmeFilename": "README.md" + "readmeFilename": "README.md", + "snyk": true }