From 9d9da56ba3a919e1226c165627a7ea268bb0bb54 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 02:30:09 +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 | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5b388db --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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-04T02:30:07.467Z' + - requestretry > lodash: + patched: '2019-07-04T02:30:07.467Z' + - request-promise > request-promise-core > lodash: + patched: '2019-07-04T02:30:07.467Z' diff --git a/package.json b/package.json index 3298c93..db6b4c4 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.189.0" }, "author": "Justin Schellenberg", "license": "ISC", @@ -48,5 +51,6 @@ "mocha": "^5.0.0", "nyc": "^11.4.1", "sinon": "^4.3.0" - } + }, + "snyk": true }