From 88eac1cec6639ada1648a7d3edf1afa4e2344197 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 06:32:16 +0200 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 74ae0bf..728c5ca 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "debug": "node start.js", "start": "node start.js", "ngrok": "ngrok http 8080", - "now-deploy": "now -e POKEBOT_TOKEN=@pokebot_token -e POKEBOT_VERIFY=@pokebot_verify -e POKEBOT_APP_SECRET=@pokebot_app_secret -e LOG_TOKEN=@log_token" + "now-deploy": "now -e POKEBOT_TOKEN=@pokebot_token -e POKEBOT_VERIFY=@pokebot_verify -e POKEBOT_APP_SECRET=@pokebot_app_secret -e LOG_TOKEN=@log_token", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "PokeBot", @@ -31,6 +33,8 @@ "now-logs": "0.0.7", "pokemon-go-iv-calculator": "^0.3.2", "request": "^2.74.0", - "request-promise": "^4.1.0" - } + "request-promise": "^4.1.0", + "snyk": "^1.316.1" + }, + "snyk": true } From ce125a78fddace9452ef514c77b0678cf946d328 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 06:32:17 +0200 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e95c690 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - request-promise > request-promise-core > lodash: + patched: '2020-05-01T04:32:01.193Z' + - ngrok > async > lodash: + patched: '2020-05-01T04:32:01.193Z' + - messenger-bot > request-promise > request-promise-core > lodash: + patched: '2020-05-01T04:32:01.193Z'