@graphql-tools/executor
Advanced tools
Comparing version 2.0.0-alpha-20240606144658-8963c8b8f661638eaee0e101a55f3b6e46cc03ff to 2.0.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee
@@ -59,3 +59,3 @@ "use strict"; | ||
this._context.signal?.addEventListener('abort', () => { | ||
isDone = true; | ||
this._incrementalGraph.completedIncrementalData().return(); | ||
}); | ||
@@ -78,5 +78,2 @@ const _next = async () => { | ||
while (!iteration.done) { | ||
if (this._context.signal?.aborted) { | ||
throw this._context.signal.reason; | ||
} | ||
for (const completedResult of iteration.value) { | ||
@@ -108,2 +105,5 @@ this._handleCompletedIncrementalData(completedResult, context); | ||
} | ||
if (this._context.signal?.aborted) { | ||
throw this._context.signal.reason; | ||
} | ||
await this._returnAsyncIteratorsIgnoringErrors(); | ||
@@ -110,0 +110,0 @@ return { value: undefined, done: true }; |
@@ -55,3 +55,3 @@ import { pathToArray } from '@graphql-tools/utils'; | ||
this._context.signal?.addEventListener('abort', () => { | ||
isDone = true; | ||
this._incrementalGraph.completedIncrementalData().return(); | ||
}); | ||
@@ -74,5 +74,2 @@ const _next = async () => { | ||
while (!iteration.done) { | ||
if (this._context.signal?.aborted) { | ||
throw this._context.signal.reason; | ||
} | ||
for (const completedResult of iteration.value) { | ||
@@ -104,2 +101,5 @@ this._handleCompletedIncrementalData(completedResult, context); | ||
} | ||
if (this._context.signal?.aborted) { | ||
throw this._context.signal.reason; | ||
} | ||
await this._returnAsyncIteratorsIgnoringErrors(); | ||
@@ -106,0 +106,0 @@ return { value: undefined, done: true }; |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "2.0.0-alpha-20240606144658-8963c8b8f661638eaee0e101a55f3b6e46cc03ff", | ||
"version": "2.0.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee", | ||
"sideEffects": false, | ||
@@ -9,3 +9,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-tools/utils": "10.3.0-alpha-20240606144658-8963c8b8f661638eaee0e101a55f3b6e46cc03ff", | ||
"@graphql-tools/utils": "10.3.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee", | ||
"@graphql-typed-document-node/core": "3.2.0", | ||
@@ -12,0 +12,0 @@ "@repeaterjs/repeater": "^3.0.4", |
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
255338
0
+ Added@graphql-tools/utils@10.3.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee(transitive)
- Removed@graphql-tools/utils@10.3.0-alpha-20240606144658-8963c8b8f661638eaee0e101a55f3b6e46cc03ff(transitive)
Updated@graphql-tools/utils@10.3.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee