From 65ba0e8a0cb818653ffae1962ff09d9b3038300f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 5 May 2019 22:10:49 +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 | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..856e07c --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - axios: + patched: '2019-05-05T22:10:47.530Z' + - '@types/axios > axios': + patched: '2019-05-05T22:10:47.530Z' diff --git a/package.json b/package.json index 7c573f3..6aea1f8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "transpile": "tsc -p scripts", "lint": "./node_modules/.bin/tslint -p ./scripts", "build": "npm-run-all clean lint transpile", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -37,10 +39,12 @@ "npm-run-all": "^4.1.2", "rimraf": "^2.6.2", "typescript": "^2.8.1", - "winston": "^2.4.1" + "winston": "^2.4.1", + "snyk": "^1.161.1" }, "devDependencies": { "tslint": "^5.9.1", "tslint-eslint-rules": "^5.1.0" - } + }, + "snyk": true }