@graphql-tools/executor-http 1.3.1 → 1.3.2-alpha-4659be006152a34db1932d13b51bc770d34232c6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @graphql-tools/executor-http
2
2
 
3
+ ## 1.3.2-alpha-4659be006152a34db1932d13b51bc770d34232c6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#922](https://github.com/graphql-hive/gateway/pull/922) [`4659be0`](https://github.com/graphql-hive/gateway/commit/4659be006152a34db1932d13b51bc770d34232c6) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
8
+
9
+ - Added dependency [`@graphql-hive/signal@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/signal/v/workspace:^) (to `dependencies`)
10
+
11
+ - Updated dependencies [[`c565cd2`](https://github.com/graphql-hive/gateway/commit/c565cd227c8a5c8e958931bb5308a9ad4bb1e801)]:
12
+ - @graphql-hive/signal@1.0.0-alpha-4659be006152a34db1932d13b51bc770d34232c6
13
+
3
14
  ## 1.3.1
4
15
 
5
16
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var signal = require('@graphql-hive/signal');
3
4
  var executorCommon = require('@graphql-tools/executor-common');
4
5
  var utils = require('@graphql-tools/utils');
5
6
  var disposablestack = require('@whatwg-node/disposablestack');
@@ -567,7 +568,7 @@ function buildHTTPExecutor(options) {
567
568
  if (subscriptionCtrl) {
568
569
  signals.push(subscriptionCtrl.signal);
569
570
  }
570
- const signal = AbortSignal.any(signals);
571
+ const signal$1 = signal.abortSignalAny(signals);
571
572
  const upstreamErrorExtensions = {
572
573
  serviceName,
573
574
  request: {
@@ -609,7 +610,7 @@ function buildHTTPExecutor(options) {
609
610
  return {
610
611
  errors: e.errors.map(
611
612
  (e2) => coerceFetchError(e2, {
612
- signal,
613
+ signal: signal$1,
613
614
  endpoint,
614
615
  upstreamErrorExtensions
615
616
  })
@@ -619,7 +620,7 @@ function buildHTTPExecutor(options) {
619
620
  return {
620
621
  errors: [
621
622
  coerceFetchError(e, {
622
- signal,
623
+ signal: signal$1,
623
624
  endpoint,
624
625
  upstreamErrorExtensions
625
626
  })
@@ -639,7 +640,7 @@ function buildHTTPExecutor(options) {
639
640
  const fetchOptions = {
640
641
  method: "GET",
641
642
  headers,
642
- signal
643
+ signal: signal$1
643
644
  };
644
645
  if (options?.credentials != null) {
645
646
  fetchOptions.credentials = options.credentials;
@@ -668,7 +669,7 @@ function buildHTTPExecutor(options) {
668
669
  method: "POST",
669
670
  body: body2,
670
671
  headers,
671
- signal
672
+ signal: signal$1
672
673
  };
673
674
  if (options?.credentials != null) {
674
675
  fetchOptions.credentials = options.credentials;
@@ -709,7 +710,7 @@ function buildHTTPExecutor(options) {
709
710
  return handleEventStreamResponse(
710
711
  fetchResult,
711
712
  subscriptionCtrl,
712
- signal
713
+ signal$1
713
714
  );
714
715
  } else if (contentType?.includes("multipart/mixed")) {
715
716
  return handleMultipartMixedResponse(fetchResult);
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { abortSignalAny } from '@graphql-hive/signal';
1
2
  import { defaultPrintFn, serializeExecutionRequest } from '@graphql-tools/executor-common';
2
3
  import { isAsyncIterable, createGraphQLError, inspect, mapAsyncIterator, mergeIncrementalResult, memoize1, getOperationASTFromRequest } from '@graphql-tools/utils';
3
4
  import { DisposableSymbols } from '@whatwg-node/disposablestack';
@@ -565,7 +566,7 @@ function buildHTTPExecutor(options) {
565
566
  if (subscriptionCtrl) {
566
567
  signals.push(subscriptionCtrl.signal);
567
568
  }
568
- const signal = AbortSignal.any(signals);
569
+ const signal = abortSignalAny(signals);
569
570
  const upstreamErrorExtensions = {
570
571
  serviceName,
571
572
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/executor-http",
3
- "version": "1.3.1",
3
+ "version": "1.3.2-alpha-4659be006152a34db1932d13b51bc770d34232c6",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {
@@ -39,6 +39,7 @@
39
39
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
40
40
  },
41
41
  "dependencies": {
42
+ "@graphql-hive/signal": "1.0.0-alpha-4659be006152a34db1932d13b51bc770d34232c6",
42
43
  "@graphql-tools/executor-common": "^0.0.4",
43
44
  "@graphql-tools/utils": "^10.8.1",
44
45
  "@repeaterjs/repeater": "^3.0.4",