From 9e67062b04c1d08fc3cd162a78c5e74ba85686ec Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 22:31:30 +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 | 36 ++++++++++++++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e64b08f --- /dev/null +++ b/.snyk @@ -0,0 +1,36 @@ +# 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: + - babel-register > babel-core > babel-template > babel-traverse > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-generator > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-template > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-traverse > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-template > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-helpers > babel-template > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-traverse > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-generator > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' + - babel-register > babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-03T22:31:28.956Z' diff --git a/package.json b/package.json index 7f98092..9dad260 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "src/jdcloud.js", "scripts": { "test": "cross-env NODE_CONFIG_DIR=./test/config mocha --recursive --require babel-register", - "dev": "babel src --out-dir babel -w" + "dev": "babel src --out-dir babel -w", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "Apache", @@ -18,7 +20,8 @@ "node-fetch": "^2.1.2", "querystring": "^0.2.0", "url": "^0.11.0", - "uuid": "^3.1.0" + "uuid": "^3.1.0", + "snyk": "^1.189.0" }, "devDependencies": { "mocha": "^5.0.0", @@ -49,5 +52,6 @@ "Headers", "fetch" ] - } + }, + "snyk": true }