Comparing version 1.0.0 to 1.0.1
11
index.js
@@ -83,3 +83,3 @@ 'use strict'; | ||
files = files.filter(function (file) { | ||
return file.name === self.name() && !file.stats.isDirectory(); | ||
return !file.stats.isDirectory(); | ||
}); | ||
@@ -101,2 +101,3 @@ | ||
var items = []; | ||
var self = this; | ||
@@ -110,2 +111,10 @@ each(this.where(), function (dir, i, done) { | ||
files = files.filter(function (file) { | ||
return path.basename(file) === self.name(); | ||
}); | ||
files = files.map(function (file) { | ||
return path.join(dir, file); | ||
}); | ||
items = items.concat(files); | ||
@@ -112,0 +121,0 @@ done(); |
{ | ||
"name": "find-file", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Search for a file in an array of paths", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4144
139