asynciterator
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
@@ -498,2 +498,3 @@ /** | ||
protected _source?: Source<S>; | ||
protected _sourcePromise?: Promise<Source<S>>; | ||
protected _destroySource: boolean; | ||
@@ -511,3 +512,3 @@ protected _optional: boolean; | ||
*/ | ||
constructor(source?: AsyncIterator<S>, options?: TransformIteratorOptions<S>); | ||
constructor(source?: AsyncIterator<S> | Promise<AsyncIterator<S>>, options?: TransformIteratorOptions<S>); | ||
/** | ||
@@ -520,2 +521,7 @@ The source this iterator generates items from. | ||
/** | ||
Initializes a source that was set through a promise | ||
@protected | ||
*/ | ||
protected _loadSourceAsync(): void; | ||
/** | ||
Validates whether the given iterator can be used as a source. | ||
@@ -622,2 +628,9 @@ @protected | ||
set source(value: AsyncIterator<T> | undefined); | ||
/** | ||
Validates whether the given iterator can be used as a source. | ||
@protected | ||
@param {object} source The source to validate | ||
@param {boolean} allowDestination Whether the source can already have a destination | ||
*/ | ||
protected _validateSource(source?: AsyncIterator<T>, allowDestination?: boolean): Source<T>; | ||
getProperty<P>(propertyName: string, callback?: (value: P) => void): P | undefined; | ||
@@ -661,3 +674,3 @@ protected _getSourceProperty<P>(propertyName: string, callback: (value: P) => void): void; | ||
export interface TransformIteratorOptions<S> extends BufferedIteratorOptions { | ||
source?: AsyncIterator<S>; | ||
source?: AsyncIterator<S> | Promise<AsyncIterator<S>>; | ||
optional?: boolean; | ||
@@ -664,0 +677,0 @@ destroySource?: boolean; |
{ | ||
"name": "asynciterator", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0-beta.2", | ||
"description": "An asynchronous iterator library for advanced object pipelines.", | ||
@@ -5,0 +5,0 @@ "author": "Ruben Verborgh <ruben@verborgh.org>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
156441
3634
0