From abc8ce4b4e631f5f6c915cd79d7a94748af3facf Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 07:33:42 +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 | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bcf1925..151265f 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,15 @@ "eggPlugin": { "name": "bull" }, - "keywords": ["egg", "eggPlugin", "egg-plugin"], + "keywords": [ + "egg", + "eggPlugin", + "egg-plugin" + ], "dependencies": { "@types/bull": "^3.4.1", - "bull": "^3.5.2" + "bull": "^3.5.2", + "snyk": "^1.316.1" }, "devDependencies": { "egg": "^2.0.0", @@ -25,9 +30,16 @@ "test-local": "egg-bin test", "cov": "egg-bin cov", "lint": "eslint .", - "ci": "npm run lint && npm run cov" - }, - "files": ["config", "lib", "app.js", "index.d.ts"], + "ci": "npm run lint && npm run cov", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "files": [ + "config", + "lib", + "app.js", + "index.d.ts" + ], "ci": { "version": "8, 9" }, @@ -40,5 +52,6 @@ }, "homepage": "https://github.com/brickyang/egg-bull#readme", "author": "brick ", - "license": "MIT" + "license": "MIT", + "snyk": true } From 858f605ed7032f07497ae3909e899aba58658b48 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 07:33:43 +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 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..bfd2b33 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - bull > lodash: + patched: '2020-04-30T23:33:15.881Z'