From 6af4838b86645cdc225ad51165a0d512fc241493 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 9 Jul 2018 06:08: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 | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..cc33be3 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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': + - ascoltatori > kafka-node > lodash: + patched: '2018-07-09T06:08:20.406Z' + - mosca > ioredis > lodash: + patched: '2018-07-09T06:08:20.406Z' + - mosca > ascoltatori > kafka-node > lodash: + patched: '2018-07-09T06:08:20.406Z' diff --git a/package.json b/package.json index f349947..1beb85a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "ci": "mocha --recursive --bail --watch test", "standard-lib": "standard lib/*.js --fix", "standard-test": "standard test/*.js --fix", - "start": "./bin/ponte -v | bunyan" + "start": "./bin/ponte -v | bunyan", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "pre-commit": [ "standard-lib", @@ -50,6 +52,8 @@ "xtend": "~4.0.1", "coap": "~0.19.0", "st": "~1.2.0", - "corsify": "~2.1.0" - } + "corsify": "~2.1.0", + "snyk": "^1.88.2" + }, + "snyk": true }