@graphql-tools/delegate 8.4.1-alpha-c3063363.0 → 8.4.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/index.js +2 -1
- package/index.mjs +2 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1185,8 +1185,9 @@ function delegateRequest(options) {
|
|
|
1185
1185
|
return new valueOrPromise.ValueOrPromise(() => executor(processedRequest))
|
|
1186
1186
|
.then(originalResult => {
|
|
1187
1187
|
if (utils.isAsyncIterable(originalResult)) {
|
|
1188
|
+
const iterator = originalResult[Symbol.asyncIterator]();
|
|
1188
1189
|
// "subscribe" to the subscription result and map the result through the transforms
|
|
1189
|
-
return utils.mapAsyncIterator(
|
|
1190
|
+
return utils.mapAsyncIterator(iterator, result => transformer.transformResult(result));
|
|
1190
1191
|
}
|
|
1191
1192
|
return transformer.transformResult(originalResult);
|
|
1192
1193
|
})
|
package/index.mjs
CHANGED
|
@@ -1181,8 +1181,9 @@ function delegateRequest(options) {
|
|
|
1181
1181
|
return new ValueOrPromise(() => executor(processedRequest))
|
|
1182
1182
|
.then(originalResult => {
|
|
1183
1183
|
if (isAsyncIterable(originalResult)) {
|
|
1184
|
+
const iterator = originalResult[Symbol.asyncIterator]();
|
|
1184
1185
|
// "subscribe" to the subscription result and map the result through the transforms
|
|
1185
|
-
return mapAsyncIterator(
|
|
1186
|
+
return mapAsyncIterator(iterator, result => transformer.transformResult(result));
|
|
1186
1187
|
}
|
|
1187
1188
|
return transformer.transformResult(originalResult);
|
|
1188
1189
|
})
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/delegate",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/batch-execute": "8.3.1
|
|
11
|
-
"@graphql-tools/schema": "8.3.1
|
|
12
|
-
"@graphql-tools/utils": "8.
|
|
10
|
+
"@graphql-tools/batch-execute": "^8.3.1",
|
|
11
|
+
"@graphql-tools/schema": "^8.3.1",
|
|
12
|
+
"@graphql-tools/utils": "^8.5.3",
|
|
13
13
|
"dataloader": "2.0.0",
|
|
14
14
|
"tslib": "~2.3.0",
|
|
15
15
|
"value-or-promise": "1.0.11"
|