@graphql-tools/merge
Advanced tools
Comparing version 9.0.6 to 9.0.7-rc-20240829161457-b6c4c6cb7c5f30b5497436c6d71b8a3b9b9547bd
@@ -5,3 +5,2 @@ "use strict"; | ||
const graphql_1 = require("graphql"); | ||
const ast_js_1 = require("graphql/language/ast.js"); | ||
const utils_1 = require("@graphql-tools/utils"); | ||
@@ -65,3 +64,3 @@ const directives_js_1 = require("./directives.js"); | ||
if (isInheritedFromPrototype) { | ||
if (!(0, ast_js_1.isNode)(mergedResultMap[name])) { | ||
if (!isASTNode(mergedResultMap[name])) { | ||
mergedResultMap[name] = undefined; | ||
@@ -84,1 +83,4 @@ } | ||
exports.mergeGraphQLNodes = mergeGraphQLNodes; | ||
function isASTNode(node) { | ||
return (node != null && typeof node === 'object' && 'kind' in node && typeof node.kind === 'string'); | ||
} |
import { Kind, } from 'graphql'; | ||
import { isNode } from 'graphql/language/ast.js'; | ||
import { collectComment } from '@graphql-tools/utils'; | ||
@@ -60,3 +59,3 @@ import { mergeDirective } from './directives.js'; | ||
if (isInheritedFromPrototype) { | ||
if (!isNode(mergedResultMap[name])) { | ||
if (!isASTNode(mergedResultMap[name])) { | ||
mergedResultMap[name] = undefined; | ||
@@ -78,1 +77,4 @@ } | ||
} | ||
function isASTNode(node) { | ||
return (node != null && typeof node === 'object' && 'kind' in node && typeof node.kind === 'string'); | ||
} |
{ | ||
"name": "@graphql-tools/merge", | ||
"version": "9.0.6", | ||
"version": "9.0.7-rc-20240829161457-b6c4c6cb7c5f30b5497436c6d71b8a3b9b9547bd", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96948
1939
2