@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 +2 -3
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +2 -3
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +3 -3
- package/index.cjs.js +2 -3
- package/index.cjs.js.map +1 -1
- package/index.esm.js +2 -3
- package/index.esm.js.map +1 -1
- package/package.json +3 -3
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:
|
|
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(
|
|
959
|
+
visitTypeSources(type, allNodes);
|
|
961
960
|
}
|
|
962
961
|
else if (isSchema(type)) {
|
|
963
962
|
var documentNode = getDocumentNodeFromSchema(type);
|