From c72ed09a811c88d30fe186b426021a925b907734 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 05:30:39 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .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..50db9e2 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - async > lodash: + patched: '2019-07-04T05:30:36.885Z' + - requestretry > lodash: + patched: '2019-07-04T05:30:36.885Z' diff --git a/package.json b/package.json index 471ad9f..1799674 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "bot.js", "scripts": { "lint": "eslint .", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -24,7 +26,8 @@ "lodash.uniqwith": "^4.5.0", "npm-registry-client": "^8.5.0", "request": "^2.82.0", - "requestretry": "^1.12.2" + "requestretry": "^1.12.2", + "snyk": "^1.189.0" }, "optionalDependencies": { "aws-sdk": "^2.72.0" @@ -33,5 +36,6 @@ "eslint": "^4.9.0", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.7.0" - } + }, + "snyk": true }