From 087d79fd28bc14e78c91cc3337db34d5d6e06d9b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 May 2020 16:31:11 +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 c32b8f6..0a06c1f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Utils to process zip file", "main": "index.js", "scripts": { - "test": "mocha test/index.js" + "test": "mocha test/index.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -22,10 +24,12 @@ "debug": "^2.2.0", "fs-extra": "^0.30.0", "moment": "^2.14.1", - "request": "^2.74.0" + "request": "^2.74.0", + "snyk": "^1.319.0" }, "devDependencies": { "expect.js": "^0.3.1", "mocha": "^3.0.2" - } + }, + "snyk": true } From 9fe725b314c735afc77f5b2d01a64b2a7c6b0c37 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 May 2020 16:31:12 +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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..dfd494f --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - archiver > lodash: + patched: '2020-05-06T08:31:04.978Z' + - archiver > archiver-utils > lodash: + patched: '2020-05-06T08:31:04.978Z' + - archiver > async > lodash: + patched: '2020-05-06T08:31:04.978Z' + - archiver > zip-stream > lodash: + patched: '2020-05-06T08:31:04.978Z' + - archiver > zip-stream > archiver-utils > lodash: + patched: '2020-05-06T08:31:04.978Z'