@graphql-tools/utils
Advanced tools
Comparing version 10.3.3 to 10.3.4-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4
@@ -10,2 +10,5 @@ "use strict"; | ||
function mapAsyncIterator(iterator, onNext, onError, onEnd) { | ||
if (Symbol.asyncIterator in iterator) { | ||
iterator = iterator[Symbol.asyncIterator](); | ||
} | ||
let $return; | ||
@@ -12,0 +15,0 @@ let abruptClose; |
@@ -7,2 +7,5 @@ import { isPromise } from './jsutils.js'; | ||
export function mapAsyncIterator(iterator, onNext, onError, onEnd) { | ||
if (Symbol.asyncIterator in iterator) { | ||
iterator = iterator[Symbol.asyncIterator](); | ||
} | ||
let $return; | ||
@@ -9,0 +12,0 @@ let abruptClose; |
{ | ||
"name": "@graphql-tools/utils", | ||
"version": "10.3.3", | ||
"version": "10.3.4-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4", | ||
"description": "Common package containing utils and types for GraphQL tools", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -6,2 +6,2 @@ import type { MaybePromise } from './executor.js'; | ||
*/ | ||
export declare function mapAsyncIterator<T, U>(iterator: AsyncIterator<T>, onNext: (value: T) => MaybePromise<U>, onError?: any, onEnd?: () => MaybePromise<void>): AsyncIterableIterator<U>; | ||
export declare function mapAsyncIterator<T, U>(iterator: AsyncIterable<T> | AsyncIterator<T>, onNext: (value: T) => MaybePromise<U>, onError?: any, onEnd?: () => MaybePromise<void>): AsyncIterableIterator<U>; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
505653
10942
2