From 70806491ae0b63bc81bdf1128252a333d3b10e06 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 6 May 2019 01:50:20 +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-AXIOS-174505 --- .snyk | 12 ++++++++++++ package.json | 11 +++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b0f5119 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-AXIOS-174505: + - node-docker-watchdog > axios: + patched: '2019-05-06T01:50:18.055Z' + - steem-wise-core > axios: + patched: '2019-05-06T01:50:18.055Z' + - steem-wise-core > steem-efficient-stream > axios: + patched: '2019-05-06T01:50:18.055Z' diff --git a/package.json b/package.json index c3c04e9..421430b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build:lint": "tslint -c tslint.json -p tsconfig.lint.json", "build:node": "tsc", "build": "npm run check && npm run build:cleanbefore && npm run build:node && npm run build:lint", - "prepare": "npm run build", + "prepare": "npm run snyk-protect; npm run build", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md", "commitmsg": "commitlint -E GIT_PARAMS", "test": "TS_NODE_FILES=true TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha -r ts-node/register --require source-map-support/register --recursive src/**/*.spec.test.ts", @@ -23,7 +23,8 @@ "test-coverage": "nyc npm run test", "verify-coverage": "nyc npm run verify", "lint-fix": "tslint --fix -c tslint.json -p tsconfig.lint.json", - "semantic-release": "semantic-release" + "semantic-release": "semantic-release", + "snyk-protect": "snyk protect" }, "dependencies": { "bluebird": "^3.5.2", @@ -34,7 +35,8 @@ "ow": "^0.8.0", "prompt": "^1.0.0", "steem-wise-core": "^4.2.0", - "universe-log": "^0.2.0" + "universe-log": "^0.2.0", + "snyk": "^1.161.1" }, "devDependencies": { "@commitlint/cli": "7.5.2", @@ -121,5 +123,6 @@ "homepage": "https://wise.vote/", "bugs": { "url": "https://github.com/wise-team/steem-wise-cli/issues" - } + }, + "snyk": true }