Skip to content

Commit acdf97e

Browse files
committed
deps: which@3.0.1
1 parent 00c541a commit acdf97e

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

node_modules/which/lib/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ const getPathInfo = (cmd, {
2929
]
3030

3131
if (isWindows) {
32-
const pathExtExe = optPathExt || ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)
33-
const pathExt = pathExtExe.split(optDelimiter)
32+
const pathExtExe = optPathExt ||
33+
['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)
34+
const pathExt = pathExtExe.split(optDelimiter).reduce((acc, item) => {
35+
acc.push(item)
36+
acc.push(item.toLowerCase())
37+
return acc
38+
}, [])
3439
if (cmd.includes('.') && pathExt[0] !== '') {
3540
pathExt.unshift('')
3641
}

node_modules/which/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "GitHub Inc.",
33
"name": "which",
44
"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
5-
"version": "3.0.0",
5+
"version": "3.0.1",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/npm/node-which.git"
@@ -17,7 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@npmcli/eslint-config": "^4.0.0",
20-
"@npmcli/template-oss": "4.8.0",
20+
"@npmcli/template-oss": "4.14.1",
2121
"tap": "^16.3.0"
2222
},
2323
"scripts": {
@@ -45,6 +45,7 @@
4545
},
4646
"templateOSS": {
4747
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
48-
"version": "4.8.0"
48+
"version": "4.14.1",
49+
"publish": "true"
4950
}
5051
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"tiny-relative-date": "^1.3.0",
148148
"treeverse": "^3.0.0",
149149
"validate-npm-package-name": "^5.0.0",
150-
"which": "^3.0.0",
150+
"which": "^3.0.1",
151151
"write-file-atomic": "^5.0.0"
152152
},
153153
"bin": {
@@ -15142,9 +15142,9 @@
1514215142
}
1514315143
},
1514415144
"node_modules/which": {
15145-
"version": "3.0.0",
15146-
"resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz",
15147-
"integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==",
15145+
"version": "3.0.1",
15146+
"resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz",
15147+
"integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==",
1514815148
"inBundle": true,
1514915149
"dependencies": {
1515015150
"isexe": "^2.0.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"tiny-relative-date": "^1.3.0",
117117
"treeverse": "^3.0.0",
118118
"validate-npm-package-name": "^5.0.0",
119-
"which": "^3.0.0",
119+
"which": "^3.0.1",
120120
"write-file-atomic": "^5.0.0"
121121
},
122122
"bundleDependencies": [

0 commit comments

Comments
 (0)