From ddeb9a6e9c80767c4efe17440c2cac3c1dd380d3 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 5 May 2019 23:10:11 +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..508f6f1 --- /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: + - epsagon > axios: + patched: '2019-05-05T23:10:10.095Z' + - '@manwaring/lambda-wrapper > epsagon > axios': + patched: '2019-05-05T23:10:10.095Z' diff --git a/package.json b/package.json index 4c37cf1..b422834 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,15 @@ "scripts": { "deploy": "sls deploy", "remove": "sls remove", - "postremove": "rimraf infrastructure/stack-outputs.yml" + "postremove": "rimraf infrastructure/stack-outputs.yml", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "@manwaring/lambda-wrapper": "0.2.1", "epsagon": "^1.7.13", - "source-map-support": "^0.5.6" + "source-map-support": "^0.5.6", + "snyk": "^1.161.1" }, "devDependencies": { "@types/aws-lambda": "^8.10.6", @@ -26,5 +29,6 @@ "ts-loader": "^4.2.0", "typescript": "^2.8.1", "webpack": "^4.5.0" - } + }, + "snyk": true }