From a53efa18b406f36c9adb88ab9d4cb533b8f0f301 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 2 May 2020 08:17:39 +0700 Subject: [PATCH 1/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c9cb952 --- /dev/null +++ b/.snyk @@ -0,0 +1,78 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - babel-register > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-preset-node6 > babel-plugin-transform-es2015-modules-commonjs > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-template > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-preset-node6 > babel-plugin-transform-es2015-modules-commonjs > babel-template > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-template > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-generator > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-template > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-preset-node6 > babel-plugin-transform-es2015-modules-commonjs > babel-template > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-template > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-preset-node6 > babel-plugin-transform-es2015-modules-commonjs > babel-plugin-transform-strict-mode > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-generator > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-template > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-preset-node6 > babel-plugin-transform-es2015-modules-commonjs > babel-template > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-template > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-template > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-helpers > babel-template > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-helper-get-function-arity > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-preset-node6 > babel-plugin-transform-es2015-modules-commonjs > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-template > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-template > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-plugin-transform-async-to-generator > babel-helper-remap-async-to-generator > babel-helper-function-name > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' + - babel-register > babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-02T01:17:38.043Z' From 262359e98c65b9aa710950d1938bcb265aa7950d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 2 May 2020 08:17:40 +0700 Subject: [PATCH 2/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d964689..25afa15 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "test": "jest --coverage", "test:watch": "jest --watch --coverage", "coveralls": "cat ./coverage/lcov.info | coveralls --verbose", - "prepublish": "yarn run build" + "prepublish": "yarn run snyk-protect && yarn run build", + "snyk-protect": "snyk protect" }, "babel": { "presets": [ @@ -61,7 +62,8 @@ "stream-to-promise": "^2.2.0", "subdir": "^0.0.3", "tildify": "^1.2.0", - "yargs": "^6.5.0" + "yargs": "^6.5.0", + "snyk": "^1.316.2" }, "devDependencies": { "babel-cli": "^6.18.0", @@ -76,5 +78,6 @@ }, "engines": { "node": ">=6.0.0" - } + }, + "snyk": true }