From 25e296380a74dffc2e9653730424aed8756cbc89 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 5 Jul 2018 03:13:22 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .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..d2f6dd2 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - cli-table2 > lodash: + patched: '2018-07-05T03:13:17.898Z' diff --git a/package.json b/package.json index 32d1749..267aafe 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,9 @@ "cover": "nyc --cache mocha test/_setup test/ --recursive -t 5000 -R dot && nyc report --reporter=html", "test": "npm run lint && npm run cover", "format": "semistandard-format -w", - "start": "node ." + "start": "node .", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "body-parser": "1.15.2", @@ -64,7 +66,8 @@ "lodash.merge": "^4.6.0", "response-time": "2.3.2", "winston": "2.3.0", - "yargs": "6.4.0" + "yargs": "6.4.0", + "snyk": "^1.88.1" }, "devDependencies": { "istanbul": "0.4.5", @@ -79,5 +82,6 @@ "repository": { "type": "git", "url": "https://github.com/GoogleCloudPlatform/cloud-functions-emulator.git" - } + }, + "snyk": true }