From ba5d54348f7fee7de9d026026b5855dc8d99b10c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 02:15:45 +0200 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 308ce6c..0a3c8c1 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "release-major": "aegir release --type major", "coverage": "aegir coverage", "coverage-publish": "aegir coverage -u", - "_pre_server": "node -e 'var p=require(\"./package.json\");for(var dep in p.devDependencies)(dep.startsWith(\"libp2p\")||dep.startsWith(\"colors\"))&&(p.dependencies[dep]=p.devDependencies[dep]);delete p.devDependencies,require(\"fs\").writeFileSync(\"./package.json\",JSON.stringify(p,0,2));'" + "_pre_server": "node -e 'var p=require(\"./package.json\");for(var dep in p.devDependencies)(dep.startsWith(\"libp2p\")||dep.startsWith(\"colors\"))&&(p.dependencies[dep]=p.devDependencies[dep]);delete p.devDependencies,require(\"fs\").writeFileSync(\"./package.json\",JSON.stringify(p,0,2));'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "zeronet", @@ -65,9 +67,11 @@ "pull-redirectable": "~0.1.2", "pull-stream": "^3.6.2", "zeronet-msgpack": "^3.6.0", - "zeronet-protocol": "~0.2.1" + "zeronet-protocol": "~0.2.1", + "snyk": "^1.316.1" }, "contributors": [ "mkg20001 " - ] + ], + "snyk": true } From 9f2b6128422ede090e8aa14ffe2faebdd4b04411 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 02:15:46 +0200 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1227c47 --- /dev/null +++ b/.snyk @@ -0,0 +1,26 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - peer-id > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-id > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-info > peer-id > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-id > libp2p-crypto > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-info > peer-id > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-id > libp2p-crypto > multihashing-async > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-info > peer-id > libp2p-crypto > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-info > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > async > lodash: + patched: '2020-05-01T00:15:43.104Z' + - peer-info > peer-id > libp2p-crypto > multihashing-async > async > lodash: + patched: '2020-05-01T00:15:43.104Z'