From b1a6386eaec6be01f112cf698957e1dcb51d3c44 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 17 Jun 2022 08:23:40 +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..1f1aea66d --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - byteballcore > bitcore-mnemonic > bitcore-lib > lodash: + patched: '2022-06-17T08:23:31.153Z' diff --git a/package.json b/package.json index b668359b2..d5ff617cd 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/protect": "latest" }, "optionalDependencies": { "innosetup-compiler": "^5.5.9" }, "scripts": { - "test": "./node_modules/.bin/grunt test-coveralls" + "test": "./node_modules/.bin/grunt test-coveralls", + "prepublish": "npm run snyk-protect", + "snyk-protect": "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 }