From b7b5ba06512ee44f5b41ab2060ae7fd1c0c1db55 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 9 Mar 2017 18:58:55 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ws:20160920 Latest report for piranna/kurento-client-js: https://snyk.io/test/github/piranna/kurento-client-js --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..91fc4ab --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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:ws:20160920': + - reconnect-ws > websocket-stream > ws: + patched: '2017-03-09T18:58:54.960Z' diff --git a/package.json b/package.json index a5d722d..d055b64 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "coveralls": "scripts/coveralls", "coverallsBrowser": "scripts/coveralls -- testBrowser", "test": "scripts/test", - "testBrowser": "scripts/testBrowser" + "testBrowser": "scripts/testBrowser", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -43,7 +45,8 @@ "kurento-client-filters": "Kurento/kurento-client-filters-js#master", "kurento-jsonrpc": "5.0.4", "promisecallback": "0.0.4", - "reconnect-ws": "KurentoForks/reconnect-ws" + "reconnect-ws": "KurentoForks/reconnect-ws", + "snyk": "^1.25.2" }, "devDependencies": { "bower": "~1.4.1", @@ -71,5 +74,6 @@ "selenium-webdriver": "^2.46.1", "xml2js": "^0.4.9", "wock": "^0.1.1" - } + }, + "snyk": true }