From b882b263f71289c378b627ef5537cc289a85084b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 7 Apr 2021 03:19:10 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..cf91d776e --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.19.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - byteballcore > bitcore-mnemonic > bitcore-lib > lodash: + patched: '2021-04-07T03:19:08.485Z' diff --git a/package.json b/package.json index b668359b2..a09249b36 100644 --- a/package.json +++ b/package.json @@ -64,13 +64,16 @@ "shelljs": "^0.3.0", "sjcl": "^1.0.2", "unzip": "git+https://github.com/byteball/unzip.git", - "zip": "git+https://github.com/xJeneKx/zip.git" + "zip": "git+https://github.com/xJeneKx/zip.git", + "snyk": "^1.526.0" }, "optionalDependencies": { "innosetup-compiler": "^5.5.9" }, "scripts": { - "test": "./node_modules/.bin/grunt test-coveralls" + "test": "./node_modules/.bin/grunt test-coveralls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "angular-mocks": "^1.2.0", @@ -82,5 +85,6 @@ "karma-jasmine": "^1.1.2", "karma-phantomjs-launcher": "^1.0.4", "phantomjs-prebuilt": "^2.1.16" - } + }, + "snyk": true }