From 6b997a312b2ea02adf5c65b02a68c09b8c7d8665 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 08:29:33 +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 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 10 ++++++--- 2 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..935da77 --- /dev/null +++ b/.snyk @@ -0,0 +1,58 @@ +# 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: + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-generator > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-template > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-generator > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-generator > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-helpers > babel-template > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-traverse > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-template > babel-traverse > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-template > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-traverse > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-template > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-traverse > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-generator > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo > babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-helpers > babel-template > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-template > babel-traverse > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-template > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-traverse > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2019-07-04T08:29:31.426Z' + - noflo-runtime-websocket > noflo-runtime-base > noflo > babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-04T08:29:31.426Z' diff --git a/package.json b/package.json index 3edf256..0f040df 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "lint": "jshint bin/noflo-nodejs bin/noflo-nodejs-init index.js", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bin": { "noflo-nodejs": "./bin/noflo-nodejs", @@ -18,9 +20,11 @@ "flowhub-registry": "0.0.2", "noflo": "^0.5.0", "noflo-runtime-websocket": "^0.2.3", - "uuid": "^1.4.1" + "uuid": "^1.4.1", + "snyk": "^1.190.0" }, "devDependencies": { "jshint": "*" - } + }, + "snyk": true }