Comparing version 0.5.10 to 0.5.11
@@ -191,3 +191,3 @@ 'use strict'; | ||
function checkDirectory(dir, ignoreDirs, deps, devDeps, parsers, detectors) { | ||
function checkDirectory(dir, rootDir, ignoreDirs, deps, devDeps, parsers, detectors) { | ||
return new Promise(function (resolve) { | ||
@@ -198,7 +198,7 @@ var promises = []; | ||
finder.on('directory', function (subdir) { | ||
return ignoreDirs.indexOf(_path2.default.basename(subdir)) === -1 && promises.push(checkDirectory(subdir, ignoreDirs, deps, devDeps, parsers, detectors)); | ||
return ignoreDirs.indexOf(_path2.default.basename(subdir)) === -1 && promises.push(checkDirectory(subdir, rootDir, ignoreDirs, deps, devDeps, parsers, detectors)); | ||
}); | ||
finder.on('file', function (filename) { | ||
return promises.push.apply(promises, _toConsumableArray(checkFile(dir, filename, deps, devDeps, parsers, detectors))); | ||
return promises.push.apply(promises, _toConsumableArray(checkFile(rootDir, filename, deps, devDeps, parsers, detectors))); | ||
}); | ||
@@ -270,3 +270,3 @@ | ||
return checkDirectory(rootDir, ignoreDirs, deps, devDeps, parsers, detectors).then(cb); | ||
return checkDirectory(rootDir, rootDir, ignoreDirs, deps, devDeps, parsers, detectors).then(cb); | ||
} | ||
@@ -273,0 +273,0 @@ |
{ | ||
"name": "depcheck", | ||
"version": "0.5.10", | ||
"version": "0.5.11", | ||
"description": "Check dependencies in your node module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
52016
0