From 90d52d009fb3dd4c2b6aa8792660b1a77cc3b0d9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 2 Jul 2018 03:02:39 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:mime:20170907 --- .snyk | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ec7d253 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:mime:20170907': + - hubot > express > send > mime: + patched: '2018-07-02T03:02:37.648Z' + - hubot > express > connect > serve-static > send > mime: + patched: '2018-07-02T03:02:37.648Z' diff --git a/package.json b/package.json index 01d3188..3f1f1ce 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,16 @@ "test-unit": "mocha --compilers coffee:coffee-script/register test", "test-integration": "cd dummy && npm i && npm run test", "semantic-release": "semantic-release pre && npm publish && semantic-release post", - "prepublish": "coffee --compile --output lib/ src/" + "prepublish": "coffee --compile --output lib/ src/", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "keywords": [ "hubot" ], "dependencies": { - "hubot": ">= 2.6.0 < 3" + "hubot": ">= 2.6.0 < 3", + "snyk": "^1.88.0" }, "devDependencies": { "chai": "latest", @@ -28,5 +31,6 @@ "repository": { "type": "git", "url": "https://github.com/mtsmfm/hubot-test-helper" - } + }, + "snyk": true }