From 5ae4680a76b767034c819dae72857f07715f506d Mon Sep 17 00:00:00 2001 From: snyk-test Date: Sat, 6 Jul 2019 23:12:15 +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-LODASH-450202 --- .snyk | 8 ++++++++ package.json | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8658328 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - request-promise-core > lodash: + patched: '2019-07-06T23:12:13.649Z' diff --git a/package.json b/package.json index 7d6b74f..efa7b47 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "test": "./node_modules/.bin/gulp ci", "test-publish": "./node_modules/.bin/gulp ci-no-cov", "publish-please": "publish-please", - "prepublish": "publish-please guard" + "prepublish": "npm run snyk-protect; publish-please guard", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -35,7 +36,8 @@ "dependencies": { "request-promise-core": "1.1.2", "stealthy-require": "^1.1.1", - "tough-cookie": "^2.3.3" + "tough-cookie": "^2.3.3", + "snyk": "^1.192.3" }, "peerDependencies": { "request": "^2.34" @@ -54,5 +56,6 @@ "request": "^2.34.0", "rimraf": "~2.5.3", "run-sequence": "~1.2.2" - } + }, + "snyk": true }