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

asyncreiterable

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyncreiterable - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

6

lib/AsyncReiterableArray.d.ts

@@ -16,3 +16,3 @@ import { AsyncIterator, BufferedIterator } from "asynciterator";

*/
static forFixedData<T>(array: T[]): AsyncReiterableArray<T>;
static fromFixedData<T>(array: T[]): AsyncReiterableArray<T>;
/**

@@ -24,7 +24,7 @@ * Create a new {@link AsyncReiterableArray} with the given data elements

*/
static forInitialData<T>(initialData: T[]): AsyncReiterableArray<T>;
static fromInitialData<T>(initialData: T[]): AsyncReiterableArray<T>;
/**
* @return {AsyncReiterableArray<T>} A new open-ended {@link AsyncReiterableArray} without data elements.
*/
static forInitialEmpty<T>(): AsyncReiterableArray<T>;
static fromInitialEmpty<T>(): AsyncReiterableArray<T>;
protected static pushToIterator<T>(iterator: BufferedIterator<T>, data: T): void;

@@ -31,0 +31,0 @@ iterator(): AsyncIterator<T>;

@@ -21,3 +21,3 @@ "use strict";

*/
static forFixedData(array) {
static fromFixedData(array) {
return new AsyncReiterableArray(array, true);

@@ -31,3 +31,3 @@ }

*/
static forInitialData(initialData) {
static fromInitialData(initialData) {
return new AsyncReiterableArray(initialData, false);

@@ -38,4 +38,4 @@ }

*/
static forInitialEmpty() {
return AsyncReiterableArray.forInitialData([]);
static fromInitialEmpty() {
return AsyncReiterableArray.fromInitialData([]);
}

@@ -42,0 +42,0 @@ static pushToIterator(iterator, data) {

{
"name": "asyncreiterable",
"version": "1.0.0",
"version": "1.1.0",
"description": "An AsyncReiterable is an append-only collection that allows multiple asynchronous iterations.",

@@ -10,4 +10,7 @@ "main": "index.js",

"asynciterator",
"union",
"roundrobin"
"asyncreiterable",
"async",
"iteration",
"iterator",
"append-only"
],

@@ -14,0 +17,0 @@ "author": "Ruben Taelman <ruben.taelman@ugent.be>",

@@ -33,9 +33,9 @@ # AsyncReiterable

# Creates an ended AsyncReiterable with the given data elements
AsyncReiterableArray.forFixedData([1, 2, 3])
AsyncReiterableArray.fromFixedData([1, 2, 3])
# Creates an open-ended AsyncReiterable with the given initial data elements
AsyncReiterableArray.forInitialData([1, 2, 3])
AsyncReiterableArray.fromInitialData([1, 2, 3])
# Creates an open-ended AsyncReiterable with no initial data elements
AsyncReiterableArray.forInitialEmpty()
AsyncReiterableArray.fromInitialEmpty()
```

@@ -51,3 +51,3 @@

```javascript
const iterable = AsyncReiterableArray.forInitialData([1, 2, 3])
const iterable = AsyncReiterableArray.fromInitialData([1, 2, 3])

@@ -72,3 +72,3 @@ # Add data elements

```javascript
const iterable = AsyncReiterableArray.forInitialData([1, 2])
const iterable = AsyncReiterableArray.fromInitialData([1, 2])

@@ -85,3 +85,3 @@ const it1 = iterable.iterator();

# Output:
# Output from both iterators:
# 1

@@ -88,0 +88,0 @@ # 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