@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.
@@ -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[Symbol.asyncIterator](), async (payload) => ensureAsyncIterable(await executeImpl(buildPerEventExecutionContext(exeContext, payload))), (error) => {
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
  }
@@ -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[Symbol.asyncIterator](), async (payload) => ensureAsyncIterable(await executeImpl(buildPerEventExecutionContext(exeContext, payload))), (error) => {
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.0",
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": "^10.2.3",
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",