From c98cb46222aa141520cfa3f558d609805c7e09eb Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 12 Mar 2023 01:36:10 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 - https://snyk.io/vuln/SNYK-JS-LODASH-608086 - https://snyk.io/vuln/SNYK-JS-LODASH-73638 - https://snyk.io/vuln/SNYK-JS-LODASH-73639 - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:uglify-js:20151024 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ws:20160920 --- .snyk | 8 ++++++++ package.json | 16 ++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .snyk mode change 100755 => 100644 package.json diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b31dd87 --- /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': + - karma > socket.io > socket.io-client > ws: + patched: '2023-03-12T01:36:06.687Z' diff --git a/package.json b/package.json old mode 100755 new mode 100644 index b2ccee5..36cb290 --- a/package.json +++ b/package.json @@ -6,13 +6,13 @@ "license": "MIT", "homepage": "https://github.com/toddmotto/echo", "devDependencies": { - "gulp": "~3.7.0", - "gulp-uglify": "~0.3.0", + "gulp": "~3.8.11", + "gulp-uglify": "~1.5.1", "gulp-rename": "~1.1.0", "gulp-clean": "^0.2.4", "gulp-plumber": "~0.6.2", "gulp-header": "^1.0.2", - "gulp-jshint": "^1.6.1", + "gulp-jshint": "^2.0.3", "jshint-stylish": "^0.2.0", "gulp-karma": "0.0.4", "karma": "^0.12.16", @@ -20,5 +20,13 @@ "karma-phantomjs-launcher": "^0.1.4", "karma-spec-reporter": "0.0.13" }, - "main": "src/echo.js" + "main": "src/echo.js", + "scripts": { + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true, + "dependencies": { + "@snyk/protect": "latest" + } }