From 2fe85bf685e90fa6228fc500d7328dcf3150c787 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 03:38:40 +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 | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0b35542 --- /dev/null +++ b/.snyk @@ -0,0 +1,38 @@ +# 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-core > babel-template > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' + - lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-generator > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-traverse > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-template > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-register > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-traverse > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-generator > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-template > babel-traverse > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-helpers > babel-template > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2019-07-04T03:38:38.683Z' + - babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2019-07-04T03:38:38.683Z' diff --git a/package.json b/package.json index 846b05e..b2e63b6 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", @@ -32,10 +34,12 @@ "commander": "2.10.0", "litelog": "^2.0.8", "lodash": "4.17.11", - "xfs": "0.2.3" + "xfs": "0.2.3", + "snyk": "^1.189.0" }, "devDependencies": { "mocha": "^3.5.3", "should": "^8.4.0" - } + }, + "snyk": true }