From f928be7863fd553d0e27b20f413cd557e8621024 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 11:35:33 +0800 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f7191c1..0e7d57d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "The ECMAScript(javascript) minify tool", "main": "index.js", "scripts": { - "test": "npm test" + "test": "npm test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -33,10 +35,12 @@ "commander": "2.10.0", "litelog": "^3.0.6", "lodash": "4.17.11", - "xfs": "0.2.3" + "xfs": "0.2.3", + "snyk": "^1.316.1" }, "devDependencies": { "mocha": "^3.5.3", "should": "^8.4.0" - } + }, + "snyk": true } From 8c9e7159451f479fbd3970368749b39552e4317d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 11:35:34 +0800 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7a686ba --- /dev/null +++ b/.snyk @@ -0,0 +1,84 @@ +# 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: + - lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-preset-minify > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-generator > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-preset-minify > babel-plugin-minify-dead-code-elimination > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helpers > @babel/traverse > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-generator > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-generator > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-generator > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z'