Comparing version 4.5.2 to 4.5.3
17
glob.js
@@ -182,8 +182,7 @@ // Approach: | ||
if (n === 0) | ||
return this.finish() | ||
return this._finish() | ||
var self = this | ||
this.matches.forEach(function (matchset, index) { | ||
self._realpathSet(index, next) | ||
}) | ||
for (var i = 0; i < this.matches.length; i++) | ||
this._realpathSet(i, next) | ||
@@ -197,5 +196,10 @@ function next () { | ||
Glob.prototype._realpathSet = function (index, cb) { | ||
var found = Object.keys(this.matches[index]) | ||
var matchset = this.matches[index] | ||
if (!matchset) | ||
return cb() | ||
var found = Object.keys(matchset) | ||
var self = this | ||
var n = found.length | ||
if (n === 0) | ||
@@ -209,2 +213,3 @@ return cb() | ||
// resolved. just return the abs value in that case. | ||
p = self._makeAbs(p) | ||
fs.realpath(p, self.realpathCache, function (er, real) { | ||
@@ -214,3 +219,3 @@ if (!er) | ||
else if (er.syscall === 'stat') | ||
set[self._makeAbs(p)] = true | ||
set[p] = true | ||
else | ||
@@ -217,0 +222,0 @@ self.emit('error', er) // srsly wtf right here |
@@ -5,3 +5,3 @@ { | ||
"description": "a little globber", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -59,2 +59,3 @@ module.exports = globSync | ||
try { | ||
p = self._makeAbs(p) | ||
var real = fs.realpathSync(p, this.realpathCache) | ||
@@ -61,0 +62,0 @@ set[real] = true |
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
52475
1178