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 }