Comparing version 4.1.4 to 4.1.5
10
glob.js
@@ -351,4 +351,4 @@ // Approach: | ||
var self = this | ||
this._stat(this._makeAbs(e), function (er, st) { | ||
self.emit("stat", e) | ||
this._stat(this._makeAbs(e), function (er, c, st) { | ||
self.emit("stat", e, st) | ||
self.emit("match", e) | ||
@@ -570,3 +570,3 @@ }) | ||
else | ||
return cb(null, stat.isDirectory() ? 'DIR' : 'FILE') | ||
return cb(null, stat.isDirectory() ? 'DIR' : 'FILE', stat) | ||
} | ||
@@ -593,7 +593,7 @@ | ||
if (abs.slice(-1) === "/" && !stat.isDirectory()) | ||
return cb(null, false) | ||
return cb(null, false, stat) | ||
var c = stat.isDirectory() ? 'DIR' : 'FILE' | ||
this.cache[f] = this.cache[f] || c | ||
return cb(null, c) | ||
return cb(null, c, stat) | ||
} |
@@ -5,3 +5,3 @@ { | ||
"description": "a little globber", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
40921