From d95e9f3da9911c077830f9cc6e01ffb25fb31e68 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 28 Sep 2017 03:28:13 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:mime:20170907 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 Latest report for codeandsupply/chat-bot-supplybot: https://snyk.io/test/github/codeandsupply/chat-bot-supplybot --- .snyk | 28 ++++++++++++++++++++++++++++ package.json | 12 +++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e318169 --- /dev/null +++ b/.snyk @@ -0,0 +1,28 @@ +# 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:debug:20170905': + - hubot > express > connect > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > body-parser > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > compression > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > connect-timeout > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > send > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > express-session > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > finalhandler > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > morgan > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > serve-index > debug: + patched: '2017-09-28T03:28:12.897Z' + - hubot > express > connect > serve-static > send > debug: + patched: '2017-09-28T03:28:12.897Z' diff --git a/package.json b/package.json index 67f37ca..008d010 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "mongodb": "1.4.7", "ntwitter": "https://github.com/sebhildebrandt/ntwitter/tarball/master", "pg": "~0.10.2", - "request": "2.14.0", + "request": "2.50.0", "soupselect": "0.2.0", "timezone": "0.0.23", "twit": "latest", @@ -40,10 +40,16 @@ "xml2js": "0.4.1", "xmldom": "0.1.16", "xpath": "0.0.5", - "hubot-motivate": ">= 0.0.0" + "hubot-motivate": ">= 0.0.0", + "snyk": "^1.41.1" }, "engines": { "node": ">= 0.8.x", "npm": ">= 1.1.x" - } + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }