@graphql-tools/executor-http 3.1.3 → 3.1.4-alpha-dd3f331ef2ee3626170a8c47e7b63ac5d56129e5
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 +7 -0
- package/dist/index.cjs +15 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @graphql-tools/executor-http
|
|
2
2
|
|
|
3
|
+
## 3.1.4-alpha-dd3f331ef2ee3626170a8c47e7b63ac5d56129e5
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2194](https://github.com/graphql-hive/gateway/pull/2194) [`f9d2f0e`](https://github.com/graphql-hive/gateway/commit/f9d2f0ea9e7f172b8270c17961a98bc52a7ba49d) Thanks [@ManrajSingh6](https://github.com/ManrajSingh6)! - Prevent reusing the cached inflight requests
|
|
9
|
+
|
|
3
10
|
## 3.1.3
|
|
4
11
|
### Patch Changes
|
|
5
12
|
|
package/dist/index.cjs
CHANGED
|
@@ -815,7 +815,21 @@ function buildHTTPExecutor(options) {
|
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
return
|
|
818
|
+
return promiseHelpers.handleMaybePromise(
|
|
819
|
+
() => inflightRequest,
|
|
820
|
+
(result) => {
|
|
821
|
+
if (result == null || !result.data) {
|
|
822
|
+
return result;
|
|
823
|
+
}
|
|
824
|
+
const clonedResult = {
|
|
825
|
+
...result
|
|
826
|
+
};
|
|
827
|
+
if (result.data) {
|
|
828
|
+
clonedResult.data = structuredClone(result.data);
|
|
829
|
+
}
|
|
830
|
+
return clonedResult;
|
|
831
|
+
}
|
|
832
|
+
);
|
|
819
833
|
}
|
|
820
834
|
return promiseHelpers.handleMaybePromise(
|
|
821
835
|
() => serializeFn(),
|
package/dist/index.js
CHANGED
|
@@ -813,7 +813,21 @@ function buildHTTPExecutor(options) {
|
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
return
|
|
816
|
+
return handleMaybePromise(
|
|
817
|
+
() => inflightRequest,
|
|
818
|
+
(result) => {
|
|
819
|
+
if (result == null || !result.data) {
|
|
820
|
+
return result;
|
|
821
|
+
}
|
|
822
|
+
const clonedResult = {
|
|
823
|
+
...result
|
|
824
|
+
};
|
|
825
|
+
if (result.data) {
|
|
826
|
+
clonedResult.data = structuredClone(result.data);
|
|
827
|
+
}
|
|
828
|
+
return clonedResult;
|
|
829
|
+
}
|
|
830
|
+
);
|
|
817
831
|
}
|
|
818
832
|
return handleMaybePromise(
|
|
819
833
|
() => serializeFn(),
|
package/package.json
CHANGED