From 9e3a06df10795971f45e9c22dd3ca3ee2251e3e8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 14 Aug 2023 15:24:07 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://dev.snyk.io/vuln/npm:hawk:20160119 - https://dev.snyk.io/vuln/npm:http-signature:20150122 The following vulnerabilities are fixed with a Snyk patch: - https://dev.snyk.io/vuln/npm:mime:20170907 - https://dev.snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 15 +++++++++++++++ package.json | 12 ++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..02bb2de --- /dev/null +++ b/.snyk @@ -0,0 +1,15 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:mime:20170907': + - dalek-browser-phantomjs > phantomjs > request > form-data > mime: + patched: '2023-08-14T15:24:06.284Z' + id: 'npm:mime:20170907' + path: dalek-browser-phantomjs > phantomjs > request > form-data > mime + 'npm:tunnel-agent:20170305': + - dalek-browser-phantomjs > phantomjs > request > tunnel-agent: + patched: '2023-08-14T15:24:06.284Z' + id: 'npm:tunnel-agent:20170305' + path: dalek-browser-phantomjs > phantomjs > request > tunnel-agent diff --git a/package.json b/package.json index 2b98f38..0ad4023 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "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", @@ -20,7 +20,8 @@ "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 }