From 51c550f4b2cf4bb6f0d9976a52a364723824f68d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 11 Oct 2017 13:58:55 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:minimatch:20160620 - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:http-signature:20150122 - https://snyk.io/vuln/npm:qs:20170213 - https://snyk.io/vuln/npm:request:20160119 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:uglify-js:20151024 Latest report for qwo/apiembed: https://snyk.io/test/github/qwo/apiembed Some vulnerabilities weren't fixed or ignored, and so will still fail the Snyk test report. --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..045f479 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:uglify-js:20151024': + - jade > transformers > uglify-js: + patched: '2017-10-11T13:58:55.304Z' diff --git a/package.json b/package.json index 484ae08..4e275ad 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.5.0", + "snyk": "^1.42.6" + }, + "snyk": true }