From 1dd43e08b26814c18f4ae826065794a4c4c0d8f4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 21:30:20 -0500 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 3298c93..f2b5c11 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "quickTest": "mocha --compilers js:babel-core/register", "build": "./node_modules/.bin/babel src -d lib", "start": "node src/targetMarkets.js && npm run build && node lib/main.js", - "crypt": "npm run build && node lib/examples/cryptopiaExamples.js" + "crypt": "npm run build && node lib/examples/cryptopiaExamples.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "async": "^2.6.0", @@ -29,7 +31,8 @@ "request-promise": "^4.2.2", "requestretry": "^1.13.0", "underscore": "~1.7.0", - "verror": "~1.6.0" + "verror": "~1.6.0", + "snyk": "^1.316.1" }, "author": "Justin Schellenberg", "license": "ISC", @@ -48,5 +51,6 @@ "mocha": "^5.0.0", "nyc": "^11.4.1", "sinon": "^4.3.0" - } + }, + "snyk": true } From 59e9d792ef1a82669d3e2ebfa27221d3be73070d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 21:30:21 -0500 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..9302876 --- /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: + - async > lodash: + patched: '2020-05-01T02:30:17.744Z' + - requestretry > lodash: + patched: '2020-05-01T02:30:17.744Z' + - request-promise > request-promise-core > lodash: + patched: '2020-05-01T02:30:17.744Z'