From 7d8d3444076a83465fab1d27ed4f8354f2405591 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 18 May 2019 06:15:22 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LODASH-73638 - https://snyk.io/vuln/SNYK-JS-LODASH-73639 - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:http-signature:20150122 - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:minimatch:20160620 - 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:lodash:20180130 - https://snyk.io/vuln/npm:uglify-js:20151024 --- .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..e7f4b5d --- /dev/null +++ b/.snyk @@ -0,0 +1,13 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - standard > jscs > xmlbuilder > lodash: + patched: '2019-05-18T06:15:20.590Z' + - standard > standard-format > esformatter-jsx > babel-core > babel-plugin-proto-to-assign > lodash: + patched: '2019-05-18T06:15:20.590Z' + 'npm:uglify-js:20151024': + - jade > transformers > uglify-js: + patched: '2019-05-18T06:15:20.590Z' diff --git a/package.json b/package.json index 484ae08..b6537b0 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ }, "scripts": { "test": "standard && mocha --reporter spec", - "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha" + "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "standard": { "ignore": [ @@ -49,7 +51,9 @@ "httpsnippet": "latest", "jade": "^1.9.2", "morgan": "^1.5.2", - "standard": "^2.11.0", - "unirest": "^0.4.0" - } + "standard": "^6.0.0", + "unirest": "^0.6.0", + "snyk": "^1.165.1" + }, + "snyk": true }