From 744117101554ea1f5f39b4f8358ea38073c38cd7 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 11 May 2021 03:18:32 +0000 Subject: [PATCH] fix: player-errors/package.json & player-errors/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ws:20160920 --- player-errors/.snyk | 8 ++++++++ player-errors/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 player-errors/.snyk diff --git a/player-errors/.snyk b/player-errors/.snyk new file mode 100644 index 0000000..6139925 --- /dev/null +++ b/player-errors/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.19.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ws:20160920': + - kurento-client-js > reconnect-ws > websocket-stream > ws: + patched: '2021-05-11T03:18:31.547Z' diff --git a/player-errors/package.json b/player-errors/package.json index 731df94..c5554c7 100644 --- a/player-errors/package.json +++ b/player-errors/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "private": true, "scripts": { - "postinstall": "cd static && bower install" + "postinstall": "cd static && bower install", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "cookie-parser": "^1.3.5", @@ -12,9 +14,11 @@ "kurento-client": "Kurento/kurento-client-js", "minimist": "^1.1.1", "sleep": "^3.0.0", - "ws": "^7.1.1" + "ws": "^7.1.1", + "snyk": "^1.590.0" }, "devDependencies": { "bower": "^1.4.1" - } + }, + "snyk": true }