combine-async-iterators
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -1,5 +0,1 @@ | ||
declare function combineAsyncIterators( | ||
...iterators: AsyncIterableIterator<any>[] | ||
): AsyncIterableIterator<any>; | ||
declare namespace combineAsyncIterators { | ||
@@ -12,7 +8,11 @@ interface CombineOptions { | ||
declare function combineAsyncIterators( | ||
declare function combineAsyncIterators<T = any>( | ||
...iterators: AsyncIterableIterator<T>[] | ||
): AsyncIterableIterator<T>; | ||
declare function combineAsyncIterators<T = any>( | ||
options: combineAsyncIterators.CombineOptions, | ||
...iterators: AsyncIterableIterator<any>[] | ||
): AsyncIterableIterator<any>; | ||
...iterators: AsyncIterableIterator<T>[] | ||
): AsyncIterableIterator<T>; | ||
export = combineAsyncIterators; |
{ | ||
"name": "combine-async-iterators", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Combine Multiple Asynchronous Iterators in one (not a sequence)", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=20" | ||
}, | ||
@@ -44,4 +44,4 @@ "repository": { | ||
"@types/node": "^20.6.0", | ||
"c8": "^8.0.1" | ||
"c8": "^9.1.0" | ||
} | ||
} |
@@ -13,3 +13,3 @@ # Combine-async-iterators | ||
## Requirements | ||
- [Node.js](https://nodejs.org/en/) version 16 or higher | ||
- [Node.js](https://nodejs.org/en/) version 20 or higher | ||
@@ -55,3 +55,7 @@ ## Getting Started | ||
const iteratorOptions = { errorCallback, throwError: false }; | ||
const asyncIterator = combineAsyncIterators(iteratorOptions, getValues("first"), getValues("second")); | ||
const asyncIterator = combineAsyncIterators( | ||
iteratorOptions, | ||
getValues("first"), | ||
getValues("second") | ||
); | ||
for await (const value of asyncIterator) { | ||
@@ -58,0 +62,0 @@ console.log(value); |
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
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
9144
115