Comparing version 0.2.1 to 0.2.2
@@ -5,3 +5,3 @@ { | ||
"description": "Recursive version of fs.readdir with streaming api.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "https://github.com/thlorenz/readdirp", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -79,3 +79,3 @@ 'use strict'; | ||
opts.directoryFilter = opts.directoryFilter || function() { return true; }; | ||
opts.depth = opts.depth || 999999999; | ||
opts.depth = typeof opts.depth === 'undefined' ? 999999999 : opts.depth | ||
@@ -82,0 +82,0 @@ if (isUndefined(callback2)) { |
@@ -17,2 +17,3 @@ /*jshint asi:true */ | ||
, depth1Files = 8 | ||
, depth0Files = 3 | ||
; | ||
@@ -178,2 +179,11 @@ | ||
test('\nreading root with no recursion', function (t) { | ||
t.test('\n# depth 0', function (t) { | ||
t.plan(1); | ||
readdirp(opts( { depth: 0 } ), function (err, res) { | ||
t.equals(res.files.length, depth0Files, 'does not return files at depth 0'); | ||
}) | ||
}) | ||
}) | ||
test('\nprogress callbacks', function (t) { | ||
@@ -180,0 +190,0 @@ t.plan(2); |
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
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
249937
144
4571
1
1
14
2