@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.esm.js CHANGED
@@ -854,8 +854,7 @@ function mergeOperationTypes(opNodeList, existingOpNodeList) {
854
854
  function mergeSchemaDefs(node, existingNode, config) {
855
855
  if (existingNode) {
856
856
  return {
857
- kind: (config === null || config === void 0 ? void 0 : config.convertExtensions) ||
858
- node.kind === Kind.SCHEMA_DEFINITION ||
857
+ kind: node.kind === Kind.SCHEMA_DEFINITION ||
859
858
  existingNode.kind === Kind.SCHEMA_DEFINITION
860
859
  ? Kind.SCHEMA_DEFINITION
861
860
  : Kind.SCHEMA_EXTENSION,
@@ -957,7 +956,7 @@ function visitTypeSources(types, allNodes) {
957
956
  var type = types_1_1.value;
958
957
  if (type) {
959
958
  if (Array.isArray(type)) {
960
- visitTypeSources(types, allNodes);
959
+ visitTypeSources(type, allNodes);
961
960
  }
962
961
  else if (isSchema(type)) {
963
962
  var documentNode = getDocumentNodeFromSchema(type);