Comparing version 1.2.8 to 1.2.9
# Changes | ||
## v1.2.9 | ||
* fix for paths starting with ../ | ||
* Remove unused `is-absolute` module | ||
## v1.2.8 | ||
@@ -5,0 +10,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"repository": { | ||
@@ -15,3 +15,2 @@ "type": "git", | ||
"dependencies": { | ||
"is-absolute": "^0.1.7", | ||
"isexe": "^1.1.1" | ||
@@ -18,0 +17,0 @@ }, |
@@ -12,3 +12,2 @@ module.exports = which | ||
var fs = require('fs') | ||
var isAbsolute = require('is-absolute') | ||
@@ -79,3 +78,3 @@ function getNotFoundError (cmd) { | ||
var p = path.join(pathPart, cmd) | ||
if (!pathPart && (/^\./).test(cmd)) { | ||
if (!pathPart && (/^\.[\\\/]/).test(cmd)) { | ||
p = cmd.slice(0, 2) + p | ||
@@ -114,3 +113,3 @@ } | ||
var p = path.join(pathPart, cmd) | ||
if (!pathPart && (/^\./).test(cmd)) { | ||
if (!pathPart && /^\.[\\\/]/.test(cmd)) { | ||
p = cmd.slice(0, 2) + p | ||
@@ -117,0 +116,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9089
1
111
- Removedis-absolute@^0.1.7
- Removedis-absolute@0.1.7(transitive)
- Removedis-relative@0.1.3(transitive)