From 48a72b778fe03a21a9edac808736cafd1cd4e7a9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 30 Aug 2021 22:36:19 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:qs:20140806 - https://snyk.io/vuln/npm:qs:20140806-1 - https://snyk.io/vuln/npm:qs:20170213 - https://snyk.io/vuln/npm:request:20160119 - https://snyk.io/vuln/npm:tunnel-agent:20170305 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:request:20160119 --- .snyk | 13 +++++++++++++ package.json | 12 ++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..678f791 --- /dev/null +++ b/.snyk @@ -0,0 +1,13 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:mime:20170907': + - noflo-couchdb > nano > request > mime: + patched: '2021-08-30T22:36:17.659Z' + - noflo-couchdb > nano > request > form-data > mime: + patched: '2021-08-30T22:36:17.659Z' + 'npm:request:20160119': + - noflo-couchdb > nano > follow > request: + patched: '2021-08-30T22:36:17.659Z' diff --git a/package.json b/package.json index b4d298d..eff3b8b 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,16 @@ } ], "scripts": { - "test": "grunt test" + "test": "grunt test", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "dependencies": { "knockout": "^3.2.0", "knockout.mapping": "^2.4.3", "nano": "^6.0.2", "noflo": "~0.5.0", - "noflo-couchdb": "^1.0.1", + "noflo-couchdb": "^2.0.0", "noflo-filesystem": "^1.0.6", "noflo-flow": "^0.3.4", "noflo-handyman": "0.0.9", @@ -33,7 +35,8 @@ "noflo-strings": "^0.1.9", "signage-business": "git://github.com/dippyhippy/signage-business", "signage-comms": "git://github.com/dippyhippy/signage-comms", - "signage-data": "git://github.com/dippyhippy/signage-data" + "signage-data": "git://github.com/dippyhippy/signage-data", + "@snyk/protect": "latest" }, "devDependencies": { "grunt": "~0.4.1", @@ -58,5 +61,6 @@ "components": { "DefaultConfig": "components/DefaultConfig.coffee" } - } + }, + "snyk": true } \ No newline at end of file