@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.cjs.js CHANGED
@@ -528,12 +528,11 @@ var buildDelegationPlan = memoize3(function (mergedTypeInfo, fieldNodes, proxiab
528
528
  return;
529
529
  }
530
530
  nonUniqueSubschemas = nonUniqueSubschemas.filter(function (s) { return proxiableSubschemas.includes(s); });
531
- if (nonUniqueSubschemas == null) {
531
+ if (!nonUniqueSubschemas.length) {
532
532
  unproxiableFieldNodes.push(fieldNode);
533
533
  return;
534
534
  }
535
- var subschemas = Array.from(delegationMap.keys());
536
- var existingSubschema = nonUniqueSubschemas.find(function (s) { return subschemas.includes(s); });
535
+ var existingSubschema = nonUniqueSubschemas.find(function (s) { return delegationMap.has(s); });
537
536
  if (existingSubschema != null) {
538
537
  delegationMap.get(existingSubschema).push(fieldNode);
539
538
  }