From 7159e7702fb767ac2832beb5a03249e5e2b11064 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 22 Sep 2022 18:07:14 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://dev.snyk.io/vuln/SNYK-JS-ADMZIP-1065796 - https://dev.snyk.io/vuln/SNYK-JS-JSYAML-173999 - https://dev.snyk.io/vuln/SNYK-JS-JSYAML-174129 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-1018905 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-1040724 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-450202 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-567746 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-608086 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-73638 - https://dev.snyk.io/vuln/SNYK-JS-LODASH-73639 - https://dev.snyk.io/vuln/SNYK-JS-MINIMATCH-1019388 - https://dev.snyk.io/vuln/SNYK-JS-MINIMIST-2429795 - https://dev.snyk.io/vuln/SNYK-JS-MINIMIST-559764 - https://dev.snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 - https://dev.snyk.io/vuln/npm:adm-zip:20180415 - https://dev.snyk.io/vuln/npm:hawk:20160119 - https://dev.snyk.io/vuln/npm:http-signature:20150122 - https://dev.snyk.io/vuln/npm:lodash:20180130 - https://dev.snyk.io/vuln/npm:minimatch:20160620 - https://dev.snyk.io/vuln/npm:npmconf:20180512 The following vulnerabilities are fixed with a Snyk patch: - https://dev.snyk.io/vuln/npm:hawk:20160119 - https://dev.snyk.io/vuln/npm:http-signature:20150122 - https://dev.snyk.io/vuln/npm:mime:20170907 - https://dev.snyk.io/vuln/npm:minimatch:20160620 - https://dev.snyk.io/vuln/npm:request:20160119 - https://dev.snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 29 +++++++++++++++++++++++++++++ package.json | 18 +++++++++++------- 2 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5bbec0b --- /dev/null +++ b/.snyk @@ -0,0 +1,29 @@ +# 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:hawk:20160119': + - dalek-driver-native > dalek-internal-webdriver > wd > request > hawk: + patched: '2022-09-22T18:07:10.972Z' + 'npm:http-signature:20150122': + - dalek-driver-native > dalek-internal-webdriver > wd > request > http-signature: + patched: '2022-09-22T18:07:10.972Z' + 'npm:mime:20170907': + - dalek-browser-phantomjs > phantomjs > request > form-data > mime: + patched: '2022-09-22T18:07:10.972Z' + - dalek-driver-native > dalek-internal-webdriver > wd > request > form-data > mime: + patched: '2022-09-22T18:07:10.972Z' + 'npm:minimatch:20160620': + - dalek-driver-native > dalek-internal-webdriver > wd > archiver > glob > minimatch: + patched: '2022-09-22T18:07:10.972Z' + 'npm:request:20160119': + - dalek-browser-phantomjs > phantomjs > request: + patched: '2022-09-22T18:07:10.972Z' + - dalek-driver-native > dalek-internal-webdriver > wd > request: + patched: '2022-09-22T18:07:10.972Z' + 'npm:tunnel-agent:20170305': + - dalek-browser-phantomjs > phantomjs > request > tunnel-agent: + patched: '2022-09-22T18:07:10.972Z' + - dalek-driver-native > dalek-internal-webdriver > wd > request > tunnel-agent: + patched: '2022-09-22T18:07:10.972Z' diff --git a/package.json b/package.json index 2b98f38..8c933b1 100644 --- a/package.json +++ b/package.json @@ -10,17 +10,18 @@ "dependencies": { "dalek-driver-native": "0.0.6", "dalek-reporter-console": "0.0.7", - "dalek-browser-phantomjs": "0.0.4", + "dalek-browser-phantomjs": "0.0.5", "q": "1.1.2", "chai": "1.9.1", "async": "0.9.0", "eventemitter2": "0.4.14", - "cheerio": "0.18.0", - "lodash": "2.4.1", - "js-yaml": "3.2.3", + "cheerio": "0.20.0", + "lodash": "4.17.21", + "js-yaml": "3.13.1", "json5": "0.4.0", "coffee-script": "1.8.0", - "glob": "4.2.1" + "glob": "5.0.15", + "@snyk/protect": "latest" }, "devDependencies": { "grunt": "0.4.5", @@ -44,7 +45,9 @@ "dalek-build-tools": "0.0.2" }, "scripts": { - "test": "grunt test" + "test": "grunt test", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -69,5 +72,6 @@ ], "engine": { "node": ">=0.10" - } + }, + "snyk": true }