@graphql-tools/executor 1.3.0 → 1.3.1-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/execution/execute.js
CHANGED
|
@@ -878,7 +878,7 @@ function mapSourceToResponse(exeContext, resultOrStream) {
|
|
|
878
878
|
// the GraphQL specification. The `execute` function provides the
|
|
879
879
|
// "ExecuteSubscriptionEvent" algorithm, as it is nearly identical to the
|
|
880
880
|
// "ExecuteQuery" algorithm, for which `execute` is also used.
|
|
881
|
-
return (0, flattenAsyncIterable_js_1.flattenAsyncIterable)((0, utils_1.mapAsyncIterator)(resultOrStream
|
|
881
|
+
return (0, flattenAsyncIterable_js_1.flattenAsyncIterable)((0, utils_1.mapAsyncIterator)(resultOrStream, async (payload) => ensureAsyncIterable(await executeImpl(buildPerEventExecutionContext(exeContext, payload))), (error) => {
|
|
882
882
|
if (error instanceof AggregateError) {
|
|
883
883
|
throw new AggregateError(error.errors.map(e => wrapError(e, exeContext.operation)), error.message);
|
|
884
884
|
}
|
package/esm/execution/execute.js
CHANGED
|
@@ -866,7 +866,7 @@ function mapSourceToResponse(exeContext, resultOrStream) {
|
|
|
866
866
|
// the GraphQL specification. The `execute` function provides the
|
|
867
867
|
// "ExecuteSubscriptionEvent" algorithm, as it is nearly identical to the
|
|
868
868
|
// "ExecuteQuery" algorithm, for which `execute` is also used.
|
|
869
|
-
return flattenAsyncIterable(mapAsyncIterator(resultOrStream
|
|
869
|
+
return flattenAsyncIterable(mapAsyncIterator(resultOrStream, async (payload) => ensureAsyncIterable(await executeImpl(buildPerEventExecutionContext(exeContext, payload))), (error) => {
|
|
870
870
|
if (error instanceof AggregateError) {
|
|
871
871
|
throw new AggregateError(error.errors.map(e => wrapError(e, exeContext.operation)), error.message);
|
|
872
872
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/executor",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-tools/utils": "
|
|
9
|
+
"@graphql-tools/utils": "10.3.4-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4",
|
|
10
10
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
11
11
|
"@repeaterjs/repeater": "^3.0.4",
|
|
12
12
|
"tslib": "^2.4.0",
|