@graphql-tools/delegate 7.0.9-alpha-08ab8c06.0 → 7.0.9

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/es5/index.esm.js CHANGED
@@ -522,12 +522,11 @@ var buildDelegationPlan = memoize3(function (mergedTypeInfo, fieldNodes, proxiab
522
522
  return;
523
523
  }
524
524
  nonUniqueSubschemas = nonUniqueSubschemas.filter(function (s) { return proxiableSubschemas.includes(s); });
525
- if (nonUniqueSubschemas == null) {
525
+ if (!nonUniqueSubschemas.length) {
526
526
  unproxiableFieldNodes.push(fieldNode);
527
527
  return;
528
528
  }
529
- var subschemas = Array.from(delegationMap.keys());
530
- var existingSubschema = nonUniqueSubschemas.find(function (s) { return subschemas.includes(s); });
529
+ var existingSubschema = nonUniqueSubschemas.find(function (s) { return delegationMap.has(s); });
531
530
  if (existingSubschema != null) {
532
531
  delegationMap.get(existingSubschema).push(fieldNode);
533
532
  }