@graphql-tools/executor-http 1.3.2-rc-326c6f0d075bea0aa8fb4a541b4a6f3c5264736b → 1.3.2
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 +4 -2
- package/dist/index.cjs +9 -0
- package/dist/index.js +9 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @graphql-tools/executor-http
|
|
2
2
|
|
|
3
|
-
## 1.3.2
|
|
3
|
+
## 1.3.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
- Added dependency [`@graphql-hive/signal@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/signal/v/workspace:^) (to `dependencies`)
|
|
14
14
|
|
|
15
|
+
- [#929](https://github.com/graphql-hive/gateway/pull/929) [`dbfb0f7`](https://github.com/graphql-hive/gateway/commit/dbfb0f7d6906d99b07b959bb6254d10e2fe2adf0) Thanks [@ardatan](https://github.com/ardatan)! - Throw an understandable error with HTTP details when the response is empty
|
|
16
|
+
|
|
15
17
|
- Updated dependencies [[`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106)]:
|
|
16
|
-
- @graphql-hive/signal@1.0.0
|
|
18
|
+
- @graphql-hive/signal@1.0.0
|
|
17
19
|
|
|
18
20
|
## 1.3.1
|
|
19
21
|
|
package/dist/index.cjs
CHANGED
|
@@ -570,6 +570,7 @@ function buildHTTPExecutor(options) {
|
|
|
570
570
|
}
|
|
571
571
|
const signal$1 = signal.abortSignalAny(signals);
|
|
572
572
|
const upstreamErrorExtensions = {
|
|
573
|
+
code: "DOWNSTREAM_SERVICE_ERROR",
|
|
573
574
|
serviceName,
|
|
574
575
|
request: {
|
|
575
576
|
method
|
|
@@ -769,6 +770,14 @@ function buildHTTPExecutor(options) {
|
|
|
769
770
|
]
|
|
770
771
|
};
|
|
771
772
|
}
|
|
773
|
+
} else {
|
|
774
|
+
return {
|
|
775
|
+
errors: [
|
|
776
|
+
utils.createGraphQLError("No response returned", {
|
|
777
|
+
extensions: upstreamErrorExtensions
|
|
778
|
+
})
|
|
779
|
+
]
|
|
780
|
+
};
|
|
772
781
|
}
|
|
773
782
|
} else {
|
|
774
783
|
return result;
|
package/dist/index.js
CHANGED
|
@@ -568,6 +568,7 @@ function buildHTTPExecutor(options) {
|
|
|
568
568
|
}
|
|
569
569
|
const signal = abortSignalAny(signals);
|
|
570
570
|
const upstreamErrorExtensions = {
|
|
571
|
+
code: "DOWNSTREAM_SERVICE_ERROR",
|
|
571
572
|
serviceName,
|
|
572
573
|
request: {
|
|
573
574
|
method
|
|
@@ -767,6 +768,14 @@ function buildHTTPExecutor(options) {
|
|
|
767
768
|
]
|
|
768
769
|
};
|
|
769
770
|
}
|
|
771
|
+
} else {
|
|
772
|
+
return {
|
|
773
|
+
errors: [
|
|
774
|
+
createGraphQLError("No response returned", {
|
|
775
|
+
extensions: upstreamErrorExtensions
|
|
776
|
+
})
|
|
777
|
+
]
|
|
778
|
+
};
|
|
770
779
|
}
|
|
771
780
|
} else {
|
|
772
781
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/executor-http",
|
|
3
|
-
"version": "1.3.2
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +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
|
|
42
|
+
"@graphql-hive/signal": "^1.0.0",
|
|
43
43
|
"@graphql-tools/executor-common": "^0.0.4",
|
|
44
44
|
"@graphql-tools/utils": "^10.8.1",
|
|
45
45
|
"@repeaterjs/repeater": "^3.0.4",
|