From fb1a189318599adc8df20aec112fede099c028b3 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 03:53:00 +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 | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..9946d13 --- /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-native > request-promise-core > lodash: + patched: '2019-07-04T03:52:58.214Z' diff --git a/package.json b/package.json index dc4bb2a..2b51dd9 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,17 @@ "description": "AWS Lambda function to watch a zabbix server to provide an off-site status overview of zabbix and its monitored hosts.", "main": "index.js", "scripts": { - "test": "mocha" + "test": "mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Michiel Hendriks", "license": "Apache-2.0", "dependencies": { "aws-sdk": "^2.390.0", "request": "^2.88.0", - "request-promise-native": "^1.0.5" - } + "request-promise-native": "^1.0.5", + "snyk": "^1.189.0" + }, + "snyk": true }