directory-walker
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -71,2 +71,3 @@ // third-party dependencies | ||
DirectoryWalker.prototype.walk = function(dir) { | ||
this._basedir = dir; | ||
this._visit(dir); | ||
@@ -132,5 +133,7 @@ return this; | ||
for (var i = 0; i < filenames.length; i++) { | ||
var filename = path.join(dir, filenames[i]); | ||
var relativePath = filename.substring(self._basedir.length); | ||
if (!self._exclusions.hasMatch(filename)) { | ||
if (!self._exclusions.hasMatch(relativePath)) { | ||
self._visit(filename, dir); | ||
@@ -137,0 +140,0 @@ } |
{ | ||
"name": "directory-walker", | ||
"description": "Directory walker", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"homepage": "https://github.com/philidem/node-directory-walker", | ||
@@ -6,0 +6,0 @@ "authors": [ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4645
115
0