From 0befb8bf4e2bdd0776b9047246b661d1f2cef366 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 24 May 2018 00:23:01 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 Latest report for kengz/telegram-bot-bootstrap: https://snyk.io/test/github/kengz/telegram-bot-bootstrap --- .snyk | 11 +++++++++++ package.json | 10 +++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..3807e94 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# 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:debug:20170905': + - reqscraper > x-ray > debug: + patched: '2018-05-24T00:23:01.098Z' + 'npm:ms:20170412': + - reqscraper > x-ray > debug > ms: + patched: '2018-05-24T00:23:01.098Z' diff --git a/package.json b/package.json index aeb68b7..1b34816 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "API.js", "scripts": { "start": "node index.js", - "test": "./node_modules/.bin/_mocha -u tdd -R spec" + "test": "./node_modules/.bin/_mocha -u tdd -R spec", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -37,11 +39,13 @@ "multer": "^0.1.8", "q": "^1.4.1", "reqscraper": "0.0.2", - "request": "^2.58.0" + "request": "^2.58.0", + "snyk": "^1.80.1" }, "devDependencies": { "chai": "^3.0.0", "dokker": "^0.1.1", "mocha": "^2.2.5" - } + }, + "snyk": true }