From fc22c0864169b0b26fc3806df2555dfa1b39e797 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 00:31:32 +0100 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8596f2e04fe..456ff4b277c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "doc": "docs", "test": "tests/js/tests" }, - "dependencies": {}, + "dependencies": { + "snyk": "^1.316.1" + }, "devDependencies": { "chai": "^3.5.0", "jsdom": "11.11.0", @@ -16,7 +18,9 @@ "sinon": "^1.17.6" }, "scripts": { - "test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0" + "test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -31,5 +35,6 @@ "bugs": { "url": "https://github.com/yiisoft/yii2/issues" }, - "homepage": "https://github.com/yiisoft/yii2" + "homepage": "https://github.com/yiisoft/yii2", + "snyk": true } From 08a8181f2b301cfd5ed50497544340488d8d9108 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 00:31:33 +0100 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..5508898bfd4 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - jsdom > request-promise-native > request-promise-core > lodash: + patched: '2020-04-30T23:31:14.312Z' + - mocha-jsdom > jsdom > request-promise-native > request-promise-core > lodash: + patched: '2020-04-30T23:31:14.312Z'