Socket
Socket
Sign inDemoInstall

combine-async-iterators

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 3.0.0

14

index.d.ts

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc