From 21ea21daa49c4ab251ec2bd89dd1dc55171ca7ce Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 08:34:18 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 40 ++++++++++++++++++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..96fee15 --- /dev/null +++ b/.snyk @@ -0,0 +1,40 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - pyrrha-js > ipfs-api > libp2p-crypto > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - sequelize > lodash: + patched: '2019-07-04T08:34:16.269Z' + - winston > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-info > peer-id > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > multiaddr > ip-address > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-id > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > ipld-dag-pb > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-info > peer-id > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > libp2p-crypto > libp2p-crypto-secp256k1 > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-id > libp2p-crypto > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-info > multiaddr > ip-address > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-info > peer-id > libp2p-crypto > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-info > peer-id > libp2p-crypto > multihashing-async > async > lodash: + patched: '2019-07-04T08:34:16.269Z' + - pyrrha-js > ipfs-api > peer-info > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > async > lodash: + patched: '2019-07-04T08:34:16.269Z' diff --git a/package.json b/package.json index 45846b6..64ca701 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "start:docker": "docker-compose up --remove-orphans", "stop:docker": "docker-compose down", "start": "node ./src", - "start:dev": "NODE_ENV=development node ./src" + "start:dev": "NODE_ENV=development node ./src", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Kostiantyn Smyrnov ", "contributors": [ @@ -29,11 +31,13 @@ "websocket": "1.0.28", "winston": "3.1.0", "sequelize": "4.42.0", - "sqlite3": "4.0.6" + "sqlite3": "4.0.6", + "snyk": "^1.190.0" }, "devDependencies": { "eslint": "5.12.1", "eslint-plugin-security": "1.4.0" }, - "license": "MIT" + "license": "MIT", + "snyk": true }