From a19d7d306e48b62ae017647920971821a3373639 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 15 Sep 2021 03:48:09 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MACADDRESS-567156 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 --- .snyk | 14 ++++++++++++++ package.json | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d6c7df8 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - middleware-common-components > nem-sdk > request > hawk > hoek: + patched: '2021-09-15T03:48:06.026Z' + - middleware-common-components > nem-sdk > request > hawk > boom > hoek: + patched: '2021-09-15T03:48:06.026Z' + - middleware-common-components > nem-sdk > request > hawk > sntp > hoek: + patched: '2021-09-15T03:48:06.026Z' + - middleware-common-components > nem-sdk > request > hawk > cryptiles > boom > hoek: + patched: '2021-09-15T03:48:06.026Z' diff --git a/package.json b/package.json index 983266c..1d5f759 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,16 @@ "mongoose": "^4.11.11", "require-all": "^2.2.0", "semaphore": "^1.1.0", - "uniqid": "^4.1.1", - "web3": "^1.0.0-beta.36" + "uniqid": "^5.0.0", + "web3": "^1.0.0-beta.36", + "@snyk/protect": "latest" }, "scripts": { "lint": "node ./node_modules/eslint/bin/eslint.js -c .eslintrc.js --ext .js --fix --ignore-path .eslintignore .", "test": "node ./node_modules/mocha/bin/mocha -t 600000 -gc tests", - "testrpc": "node ./ipcConverter.js" + "testrpc": "node ./ipcConverter.js", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "author": "chronobank", "license": "AGPL-3.0", @@ -34,5 +37,6 @@ "fs-extra": "^7.0.0", "ganache-cli": "^6.1.0", "mocha": "^3.5.0" - } + }, + "snyk": true }