From 2de313982833f58e90009c18d5965ae747f502d5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 5 Oct 2022 19:11:31 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-WS-1296835 - https://snyk.io/vuln/npm:ws:20160104 - https://snyk.io/vuln/npm:ws:20160624 - https://snyk.io/vuln/npm:ws:20160920 - https://snyk.io/vuln/npm:ws:20171108 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ws:20160920 --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ca85795 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ws:20160920': + - reconnect-ws > websocket-stream > ws: + patched: '2022-10-05T19:11:29.735Z' diff --git a/package.json b/package.json index a5d722d..166ec61 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", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -41,9 +43,10 @@ "kurento-client-core": "Kurento/kurento-client-core-js#master", "kurento-client-elements": "Kurento/kurento-client-elements-js#master", "kurento-client-filters": "Kurento/kurento-client-filters-js#master", - "kurento-jsonrpc": "5.0.4", + "kurento-jsonrpc": "6.11.0", "promisecallback": "0.0.4", - "reconnect-ws": "KurentoForks/reconnect-ws" + "reconnect-ws": "KurentoForks/reconnect-ws", + "@snyk/protect": "latest" }, "devDependencies": { "bower": "~1.4.1", @@ -71,5 +74,6 @@ "selenium-webdriver": "^2.46.1", "xml2js": "^0.4.9", "wock": "^0.1.1" - } + }, + "snyk": true }