@graphql-tools/merge 6.2.12-alpha-2afd491c.0 → 6.2.13

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
@@ -857,8 +857,7 @@ function mergeOperationTypes(opNodeList, existingOpNodeList) {
857
857
  function mergeSchemaDefs(node, existingNode, config) {
858
858
  if (existingNode) {
859
859
  return {
860
- kind: (config === null || config === void 0 ? void 0 : config.convertExtensions) ||
861
- node.kind === graphql.Kind.SCHEMA_DEFINITION ||
860
+ kind: node.kind === graphql.Kind.SCHEMA_DEFINITION ||
862
861
  existingNode.kind === graphql.Kind.SCHEMA_DEFINITION
863
862
  ? graphql.Kind.SCHEMA_DEFINITION
864
863
  : graphql.Kind.SCHEMA_EXTENSION,
@@ -960,7 +959,7 @@ function visitTypeSources(types, allNodes) {
960
959
  var type = types_1_1.value;
961
960
  if (type) {
962
961
  if (Array.isArray(type)) {
963
- visitTypeSources(types, allNodes);
962
+ visitTypeSources(type, allNodes);
964
963
  }
965
964
  else if (graphql.isSchema(type)) {
966
965
  var documentNode = utils.getDocumentNodeFromSchema(type);