Skip to content

Commit

Permalink
deps: which@3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed May 3, 2023
1 parent 00c541a commit acdf97e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
9 changes: 7 additions & 2 deletions node_modules/which/lib/index.js
Expand Up @@ -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('')
}
Expand Down
7 changes: 4 additions & 3 deletions node_modules/which/package.json
Expand Up @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
}
}
8 changes: 4 additions & 4 deletions package-lock.json
Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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": [
Expand Down

0 comments on commit acdf97e

Please sign in to comment.