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 }