From c5943f2aebb14d79bdee6be884a273674bc8b38b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 5 May 2019 21:21:17 +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 | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e29bdbc --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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-05T21:21:16.497Z' diff --git a/package.json b/package.json index 54952a6..9043467 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ }, "dependencies": { "@eyedea/syncano": "0.2.0", - "axios": "^0.18.0" + "axios": "^0.18.0", + "snyk": "^1.161.1" }, "scripts": { "build": "npm run build:src && npm run build:env", @@ -32,7 +33,9 @@ "test:unit": "NODE_ENV=test jest unit/.*\\.test\\.js", "test:e2e": "NODE_ENV=test jest e2e/.*\\.test\\.js", "test:audit": "npm audit || exit 0", - "test:lint": "tslint --fix -c tslint.json ./src/**/*.ts" + "test:lint": "tslint --fix -c tslint.json ./src/**/*.ts", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -92,5 +95,6 @@ } ] ] - } + }, + "snyk": true }