From bc5d22c6f42f620c85d986f02ff607e331445242 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 10 Feb 2018 04:55:29 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:request:20160119 Latest report for bitrinjani/r2: https://snyk.io/test/github/bitrinjani/r2 --- .snyk | 11 +++++++++++ package.json | 10 +++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..acecfc4b --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.10.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - '@bitr/bitflyer-fx > coveralls > log-driver > codecov.io > request > hawk': + patched: '2018-02-10T04:55:29.501Z' + 'npm:request:20160119': + - '@bitr/bitflyer-fx > coveralls > log-driver > codecov.io > request': + patched: '2018-02-10T04:55:29.501Z' diff --git a/package.json b/package.json index 5cbfe409..d43587f6 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "closeCcPosition": "ts-node ./tools/closeCcPosition.ts", "closeBfPosition": "ts-node ./tools/closeBfPosition.ts", "closeQuPosition": "ts-node ./tools/closeQuPosition.ts", - "closeAll": "npm run closeCcPosition && npm run closeBfPosition && npm run closeQuPosition && npm run clearPairs && npm run getBalance" + "closeAll": "npm run closeCcPosition && npm run closeBfPosition && npm run closeQuPosition && npm run clearPairs && npm run getBalance", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "@bitr/awaitable-event-emitter": "^1.0.3", @@ -40,7 +42,8 @@ "simple-statistics": "^5.2.1", "split2": "^2.2.0", "uuid": "^3.1.0", - "zeromq": "^4.6.0" + "zeromq": "^4.6.0", + "snyk": "^1.69.7" }, "devDependencies": { "@types/chalk": "^2.2.0", @@ -92,5 +95,6 @@ "!**/vendor/**", "!tools/**" ] - } + }, + "snyk": true }