Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

readdirp

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readdirp - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

examples/node_modules/event-stream/.npmignore

2

package.json

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc