From 011d36fcf078182abf477e4c467f9a59a4e46a65 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 15 Jul 2022 18:07:40 +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-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/npm:lodash:20180130 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 | 23 +++++++++++++++++++++++ package.json | 12 ++++++++---- 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1741366 --- /dev/null +++ b/.snyk @@ -0,0 +1,23 @@ +# 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-07-15T18:07:38.681Z' + 'npm:http-signature:20150122': + - dalek-driver-native > dalek-internal-webdriver > wd > request > http-signature: + patched: '2022-07-15T18:07:38.681Z' + 'npm:mime:20170907': + - dalek-driver-native > dalek-internal-webdriver > wd > request > form-data > mime: + patched: '2022-07-15T18:07:38.681Z' + 'npm:minimatch:20160620': + - dalek-driver-native > dalek-internal-webdriver > wd > archiver > glob > minimatch: + patched: '2022-07-15T18:07:38.681Z' + 'npm:request:20160119': + - dalek-driver-native > dalek-internal-webdriver > wd > request: + patched: '2022-07-15T18:07:38.681Z' + 'npm:tunnel-agent:20170305': + - dalek-driver-native > dalek-internal-webdriver > wd > request > tunnel-agent: + patched: '2022-07-15T18:07:38.681Z' diff --git a/package.json b/package.json index 2b98f38..56a79f3 100644 --- a/package.json +++ b/package.json @@ -15,12 +15,13 @@ "chai": "1.9.1", "async": "0.9.0", "eventemitter2": "0.4.14", - "cheerio": "0.18.0", + "cheerio": "0.20.0", "lodash": "2.4.1", "js-yaml": "3.2.3", "json5": "0.4.0", "coffee-script": "1.8.0", - "glob": "4.2.1" + "glob": "4.2.1", + "@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 }