From acdf97e7955bdfa1a4dd2bfaec39a73e1a3c0ce9 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 2 May 2023 14:29:55 -0700 Subject: [PATCH] deps: which@3.0.1 --- node_modules/which/lib/index.js | 9 +++++++-- node_modules/which/package.json | 7 ++++--- package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/node_modules/which/lib/index.js b/node_modules/which/lib/index.js index 8de3388baf94f..52e9ea62377e7 100644 --- a/node_modules/which/lib/index.js +++ b/node_modules/which/lib/index.js @@ -29,8 +29,13 @@ const getPathInfo = (cmd, { ] if (isWindows) { - const pathExtExe = optPathExt || ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter) - const pathExt = pathExtExe.split(optDelimiter) + const pathExtExe = optPathExt || + ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter) + const pathExt = pathExtExe.split(optDelimiter).reduce((acc, item) => { + acc.push(item) + acc.push(item.toLowerCase()) + return acc + }, []) if (cmd.includes('.') && pathExt[0] !== '') { pathExt.unshift('') } diff --git a/node_modules/which/package.json b/node_modules/which/package.json index bde15634556fd..989e01c9a3683 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -2,7 +2,7 @@ "author": "GitHub Inc.", "name": "which", "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", - "version": "3.0.0", + "version": "3.0.1", "repository": { "type": "git", "url": "https://github.com/npm/node-which.git" @@ -17,7 +17,7 @@ }, "devDependencies": { "@npmcli/eslint-config": "^4.0.0", - "@npmcli/template-oss": "4.8.0", + "@npmcli/template-oss": "4.14.1", "tap": "^16.3.0" }, "scripts": { @@ -45,6 +45,7 @@ }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.8.0" + "version": "4.14.1", + "publish": "true" } } diff --git a/package-lock.json b/package-lock.json index f3c8cd4de48f0..07dad1e439f3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -147,7 +147,7 @@ "tiny-relative-date": "^1.3.0", "treeverse": "^3.0.0", "validate-npm-package-name": "^5.0.0", - "which": "^3.0.0", + "which": "^3.0.1", "write-file-atomic": "^5.0.0" }, "bin": { @@ -15142,9 +15142,9 @@ } }, "node_modules/which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", + "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", "inBundle": true, "dependencies": { "isexe": "^2.0.0" diff --git a/package.json b/package.json index 4f2331872518a..1ba65bf087ea6 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "tiny-relative-date": "^1.3.0", "treeverse": "^3.0.0", "validate-npm-package-name": "^5.0.0", - "which": "^3.0.0", + "which": "^3.0.1", "write-file-atomic": "^5.0.0" }, "bundleDependencies": [