@graphql-tools/delegate 9.0.10 → 9.0.11-alpha-20221031181646-cd48ed2f

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.
@@ -55,9 +55,9 @@ async function executeDelegationStage(mergedTypeInfo, delegationMap, object, con
55
55
  source = error;
56
56
  }
57
57
  if (source instanceof Error || source == null) {
58
- const fieldNodeResponseKeyMap = (0, utils_1.collectFields)(schema, EMPTY_OBJECT, EMPTY_OBJECT, type, selectionSet, new Map(), new Set());
58
+ const { fields } = (0, utils_1.collectFields)(schema, EMPTY_OBJECT, EMPTY_OBJECT, type, selectionSet);
59
59
  const nullResult = {};
60
- for (const [responseKey, fieldNodes] of fieldNodeResponseKeyMap) {
60
+ for (const [responseKey, fieldNodes] of fields) {
61
61
  const combinedPath = [...path, responseKey];
62
62
  if (source instanceof graphql_1.GraphQLError) {
63
63
  nullResult[responseKey] = (0, utils_1.relocatedError)(source, combinedPath);
@@ -47,9 +47,9 @@ async function executeDelegationStage(mergedTypeInfo, delegationMap, object, con
47
47
  source = error;
48
48
  }
49
49
  if (source instanceof Error || source == null) {
50
- const fieldNodeResponseKeyMap = collectFields(schema, EMPTY_OBJECT, EMPTY_OBJECT, type, selectionSet, new Map(), new Set());
50
+ const { fields } = collectFields(schema, EMPTY_OBJECT, EMPTY_OBJECT, type, selectionSet);
51
51
  const nullResult = {};
52
- for (const [responseKey, fieldNodes] of fieldNodeResponseKeyMap) {
52
+ for (const [responseKey, fieldNodes] of fields) {
53
53
  const combinedPath = [...path, responseKey];
54
54
  if (source instanceof GraphQLError) {
55
55
  nullResult[responseKey] = relocatedError(source, combinedPath);
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@graphql-tools/delegate",
3
- "version": "9.0.10",
3
+ "version": "9.0.11-alpha-20221031181646-cd48ed2f",
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/batch-execute": "8.5.8",
11
- "@graphql-tools/executor": "0.0.2",
12
- "@graphql-tools/schema": "9.0.6",
13
- "@graphql-tools/utils": "8.13.1",
10
+ "@graphql-tools/batch-execute": "8.5.9-alpha-20221031181646-cd48ed2f",
11
+ "@graphql-tools/executor": "0.0.3-alpha-20221031181646-cd48ed2f",
12
+ "@graphql-tools/schema": "9.0.7-alpha-20221031181646-cd48ed2f",
13
+ "@graphql-tools/utils": "9.0.0-alpha-20221031181646-cd48ed2f",
14
14
  "dataloader": "2.1.0",
15
15
  "tslib": "~2.4.0",
16
16
  "value-or-promise": "1.0.11"