From 9e2adf20f79e20edfb44c34c6984686987ad46b3 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 24 Apr 2023 14:45:20 +0000 Subject: [PATCH] fix: tools/node_modules/eslint/node_modules/file-entry-cache/package.json & tools/node_modules/eslint/node_modules/file-entry-cache/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MINIMATCH-3050818 - https://snyk.io/vuln/SNYK-JS-MOCHA-2863123 - https://snyk.io/vuln/SNYK-JS-NANOID-2332193 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 - https://snyk.io/vuln/npm:extend:20180424 - https://snyk.io/vuln/npm:minimatch:20160620 --- .../node_modules/file-entry-cache/.snyk | 26 +++++++++++++++++++ .../file-entry-cache/package.json | 12 ++++++--- 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 tools/node_modules/eslint/node_modules/file-entry-cache/.snyk diff --git a/tools/node_modules/eslint/node_modules/file-entry-cache/.snyk b/tools/node_modules/eslint/node_modules/file-entry-cache/.snyk new file mode 100644 index 00000000000000..3ab1c876a4d7ca --- /dev/null +++ b/tools/node_modules/eslint/node_modules/file-entry-cache/.snyk @@ -0,0 +1,26 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:extend:20180424': + - precommit > clix > extend: + patched: '2023-04-24T14:45:13.595Z' + - prepush > clix > extend: + patched: '2023-04-24T14:45:13.595Z' + - precommit > clix > clix-logger > extend: + patched: '2023-04-24T14:45:13.595Z' + - prepush > clix > clix-logger > extend: + patched: '2023-04-24T14:45:13.595Z' + SNYK-JS-LODASH-567746: + - changelogx > lodash: + patched: '2023-04-24T14:45:13.595Z' + - changelogx > clix > lodash: + patched: '2023-04-24T14:45:13.595Z' + 'npm:minimatch:20160620': + - glob-expand > glob > minimatch: + patched: '2023-04-24T14:45:13.595Z' + - precommit > clix > glob-expand > glob > minimatch: + patched: '2023-04-24T14:45:13.595Z' + - prepush > clix > glob-expand > glob > minimatch: + patched: '2023-04-24T14:45:13.595Z' diff --git a/tools/node_modules/eslint/node_modules/file-entry-cache/package.json b/tools/node_modules/eslint/node_modules/file-entry-cache/package.json index f03ef48cc6f523..328df74299aa40 100644 --- a/tools/node_modules/eslint/node_modules/file-entry-cache/package.json +++ b/tools/node_modules/eslint/node_modules/file-entry-cache/package.json @@ -29,7 +29,9 @@ "test": "npm run eslint --silent && mocha -R spec test/specs", "perf": "node perf.js", "cover": "istanbul cover test/runner.js html text-summary", - "watch": "watch-run -i -p 'test/specs/**/*.js' istanbul cover test/runner.js html text-summary" + "watch": "watch-run -i -p 'test/specs/**/*.js' istanbul cover test/runner.js html text-summary", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "prepush": [ "npm run eslint --silent" @@ -67,7 +69,7 @@ "eslint-plugin-prettier": "^3.1.4", "glob-expand": "^0.2.1", "istanbul": "^0.4.5", - "mocha": "^8.2.1", + "mocha": "^10.1.0", "precommit": "^1.2.2", "prepush": "^3.1.11", "prettier": "^2.1.2", @@ -75,6 +77,8 @@ "write": "^2.0.0" }, "dependencies": { - "flat-cache": "^3.0.4" - } + "flat-cache": "^3.0.4", + "@snyk/protect": "latest" + }, + "snyk": true }