From ccf8049e45db2b2e91bb9b76bbd11b0acb45b461 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 9 Jul 2023 01:07:09 +0000 Subject: [PATCH] fix: tools/node_modules/eslint/node_modules/flat-cache/package.json & tools/node_modules/eslint/node_modules/flat-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 --- .../eslint/node_modules/flat-cache/.snyk | 44 +++++++++++++++++++ .../node_modules/flat-cache/package.json | 12 +++-- 2 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 tools/node_modules/eslint/node_modules/flat-cache/.snyk diff --git a/tools/node_modules/eslint/node_modules/flat-cache/.snyk b/tools/node_modules/eslint/node_modules/flat-cache/.snyk new file mode 100644 index 00000000000000..fd15da433e3096 --- /dev/null +++ b/tools/node_modules/eslint/node_modules/flat-cache/.snyk @@ -0,0 +1,44 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:extend:20180424': + - precommit > clix > extend: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:extend:20180424' + path: precommit > clix > extend + - prepush > clix > extend: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:extend:20180424' + path: prepush > clix > extend + - precommit > clix > clix-logger > extend: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:extend:20180424' + path: precommit > clix > clix-logger > extend + - prepush > clix > clix-logger > extend: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:extend:20180424' + path: prepush > clix > clix-logger > extend + SNYK-JS-LODASH-567746: + - changelogx > lodash: + patched: '2023-07-09T01:07:04.720Z' + id: SNYK-JS-LODASH-567746 + path: changelogx > lodash + - changelogx > clix > lodash: + patched: '2023-07-09T01:07:04.720Z' + id: SNYK-JS-LODASH-567746 + path: changelogx > clix > lodash + 'npm:minimatch:20160620': + - glob-expand > glob > minimatch: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:minimatch:20160620' + path: glob-expand > glob > minimatch + - precommit > clix > glob-expand > glob > minimatch: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:minimatch:20160620' + path: precommit > clix > glob-expand > glob > minimatch + - prepush > clix > glob-expand > glob > minimatch: + patched: '2023-07-09T01:07:04.720Z' + id: 'npm:minimatch:20160620' + path: prepush > clix > glob-expand > glob > minimatch diff --git a/tools/node_modules/eslint/node_modules/flat-cache/package.json b/tools/node_modules/eslint/node_modules/flat-cache/package.json index 8bc6f87c51083b..04578698a32414 100644 --- a/tools/node_modules/eslint/node_modules/flat-cache/package.json +++ b/tools/node_modules/eslint/node_modules/flat-cache/package.json @@ -40,7 +40,9 @@ "test:cache": "mocha -R spec test/specs", "test": "npm run verify --silent", "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" }, "keywords": [ "json cache", @@ -71,7 +73,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", @@ -79,6 +81,8 @@ }, "dependencies": { "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } + "rimraf": "^3.0.2", + "@snyk/protect": "latest" + }, + "snyk": true }