You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

maximize-iterator

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maximize-iterator - npm Package Compare versions

Comparing version
2.5.1
to
2.6.0
+1
-1
index.js

@@ -21,3 +21,3 @@ var nextCallback = require('iterator-next-callback');

each: fn,
async: options.async,
callbacks: options.callbacks || options.async,
concurrency: options.concurrency || DEFAULT_CONCURRENCY,

@@ -24,0 +24,0 @@ limit: options.limit || DEFAULT_LIMIT,

@@ -46,3 +46,3 @@ var compat = require('async-compat');

}
compat.asyncFunction(options.each, options.async, value, function (err, keep) {
compat.asyncFunction(options.each, options.callbacks, value, function (err, keep) {
return !processResult(err, keep, options, callback) && !isProcessing ? processor() : undefined;

@@ -49,0 +49,0 @@ });

{
"name": "maximize-iterator",
"version": "2.5.1",
"version": "2.6.0",
"description": "Maximize the parallel calls of an iterator supporting asyncIterator interface",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,1 +20,8 @@ ## maximize-iterator

```
**forEach Options**:
- bool: callbacks - use an each function with a callback `function(entry, callback)` (default: false)
- number: concurrency - parallelism of processing. (default: Infinity)
- number: limit - maximum number to process. (default: Infinity)
- number: batch - per batch count to limit expansion. (default: 10)