Comparing version 7.0.1 to 7.0.3
@@ -105,2 +105,3 @@ exports.alphasort = alphasort | ||
self.cwdAbs = makeAbs(self, self.cwd) | ||
self.nomount = !!options.nomount | ||
@@ -157,3 +158,7 @@ | ||
all = all.filter(function (e) { | ||
return !(/\/$/.test(e)) | ||
var notDir = !(/\/$/.test(e)) | ||
var c = self.cache[e] || self.cache[makeAbs(self, e)] | ||
if (notDir && c) | ||
notDir = c !== 'DIR' && !Array.isArray(c) | ||
return notDir | ||
}) | ||
@@ -206,2 +211,6 @@ } | ||
} | ||
if (process.platform === 'win32') | ||
abs = abs.replace(/\\/g, '/') | ||
return abs | ||
@@ -208,0 +217,0 @@ } |
@@ -583,6 +583,7 @@ // Approach: | ||
case 'ENOTDIR': // totally normal. means it *does* exist. | ||
this.cache[this._makeAbs(f)] = 'FILE' | ||
if (f === this.cwd) { | ||
var error = new Error(er.code + ' invalid cwd ' + f) | ||
error.path = f | ||
var abs = this._makeAbs(f) | ||
this.cache[abs] = 'FILE' | ||
if (abs === this.cwdAbs) { | ||
var error = new Error(er.code + ' invalid cwd ' + this.cwd) | ||
error.path = this.cwd | ||
error.code = er.code | ||
@@ -589,0 +590,0 @@ this.emit('error', error) |
@@ -5,3 +5,3 @@ { | ||
"description": "a little globber", | ||
"version": "7.0.1", | ||
"version": "7.0.3", | ||
"repository": { | ||
@@ -30,3 +30,3 @@ "type": "git", | ||
"rimraf": "^2.2.8", | ||
"tap": "^5.0.0", | ||
"tap": "^5.7.0", | ||
"tick": "0.0.6" | ||
@@ -33,0 +33,0 @@ }, |
@@ -308,6 +308,7 @@ module.exports = globSync | ||
case 'ENOTDIR': // totally normal. means it *does* exist. | ||
this.cache[this._makeAbs(f)] = 'FILE' | ||
if (f === this.cwd) { | ||
var error = new Error(er.code + ' invalid cwd ' + f) | ||
error.path = f | ||
var abs = this._makeAbs(f) | ||
this.cache[abs] = 'FILE' | ||
if (abs === this.cwdAbs) { | ||
var error = new Error(er.code + ' invalid cwd ' + this.cwd) | ||
error.path = this.cwd | ||
error.code = er.code | ||
@@ -314,0 +315,0 @@ throw error |
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
54462
1224