From 5e91dbba01b470d489dc6f5747401cf2c87ac449 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 22 Nov 2018 00:07:18 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 --- .snyk | 11 +++++++++++ package.json | 10 ++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4fd4db0 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - socket.io > socket.io-adapter > socket.io-parser > debug: + patched: '2018-11-22T00:07:16.081Z' + 'npm:ms:20170412': + - socket.io > socket.io-adapter > socket.io-parser > debug > ms: + patched: '2018-11-22T00:07:16.081Z' diff --git a/package.json b/package.json index b9100de..ce7ffd0 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,12 @@ "dependencies": { "express": "^4.13.4", "redis": "^2.4.2", - "socket.io": "^1.4.5" - } + "socket.io": "^2.0.2", + "snyk": "^1.110.1" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }