@graphql-tools/url-loader 7.16.9 → 7.16.10
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.
|
@@ -27,9 +27,17 @@ async function handleMultipartMixedResponse(response, controller) {
|
|
|
27
27
|
}
|
|
28
28
|
const executionResult = {};
|
|
29
29
|
function handleResult(result) {
|
|
30
|
-
if (result.path
|
|
30
|
+
if (result.path) {
|
|
31
|
+
const path = ['data', ...result.path];
|
|
31
32
|
executionResult.data = executionResult.data || {};
|
|
32
|
-
|
|
33
|
+
if (result.items) {
|
|
34
|
+
for (const item of result.items) {
|
|
35
|
+
(0, merge_1.dset)(executionResult, path, item);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (result.data) {
|
|
39
|
+
(0, merge_1.dset)(executionResult, ['data', ...result.path], result.data);
|
|
40
|
+
}
|
|
33
41
|
}
|
|
34
42
|
else if (result.data) {
|
|
35
43
|
executionResult.data = executionResult.data || {};
|
|
@@ -24,9 +24,17 @@ export async function handleMultipartMixedResponse(response, controller) {
|
|
|
24
24
|
}
|
|
25
25
|
const executionResult = {};
|
|
26
26
|
function handleResult(result) {
|
|
27
|
-
if (result.path
|
|
27
|
+
if (result.path) {
|
|
28
|
+
const path = ['data', ...result.path];
|
|
28
29
|
executionResult.data = executionResult.data || {};
|
|
29
|
-
|
|
30
|
+
if (result.items) {
|
|
31
|
+
for (const item of result.items) {
|
|
32
|
+
dset(executionResult, path, item);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (result.data) {
|
|
36
|
+
dset(executionResult, ['data', ...result.path], result.data);
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
else if (result.data) {
|
|
32
40
|
executionResult.data = executionResult.data || {};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/url-loader",
|
|
3
|
-
"version": "7.16.
|
|
3
|
+
"version": "7.16.10",
|
|
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 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/delegate": "9.0.
|
|
11
|
-
"@graphql-tools/utils": "9.0.
|
|
12
|
-
"@graphql-tools/wrap": "9.2.
|
|
10
|
+
"@graphql-tools/delegate": "9.0.14",
|
|
11
|
+
"@graphql-tools/utils": "9.0.1",
|
|
12
|
+
"@graphql-tools/wrap": "9.2.9",
|
|
13
13
|
"@ardatan/sync-fetch": "0.0.1",
|
|
14
14
|
"@types/ws": "^8.0.0",
|
|
15
15
|
"@whatwg-node/fetch": "^0.5.0",
|