@graphql-tools/merge
Advanced tools
Comparing version 9.0.5 to 9.0.6-rc-20240816015555-3530bdbfa367cc50b2b7a76f9d7d783c0ecece8b
@@ -12,6 +12,10 @@ "use strict"; | ||
function applyExtensionObject(obj, extensions) { | ||
if (!obj) { | ||
if (!obj || !extensions || extensions === obj.extensions) { | ||
return; | ||
} | ||
obj.extensions = (0, utils_1.mergeDeep)([obj.extensions || {}, extensions || {}], false, true); | ||
if (!obj.extensions) { | ||
obj.extensions = extensions; | ||
return; | ||
} | ||
obj.extensions = (0, utils_1.mergeDeep)([obj.extensions, extensions], false, true); | ||
} | ||
@@ -18,0 +22,0 @@ function applyExtensions(schema, extensions) { |
@@ -7,6 +7,10 @@ import { mergeDeep } from '@graphql-tools/utils'; | ||
function applyExtensionObject(obj, extensions) { | ||
if (!obj) { | ||
if (!obj || !extensions || extensions === obj.extensions) { | ||
return; | ||
} | ||
obj.extensions = mergeDeep([obj.extensions || {}, extensions || {}], false, true); | ||
if (!obj.extensions) { | ||
obj.extensions = extensions; | ||
return; | ||
} | ||
obj.extensions = mergeDeep([obj.extensions, extensions], false, true); | ||
} | ||
@@ -13,0 +17,0 @@ export function applyExtensions(schema, extensions) { |
{ | ||
"name": "@graphql-tools/merge", | ||
"version": "9.0.5", | ||
"version": "9.0.6-rc-20240816015555-3530bdbfa367cc50b2b7a76f9d7d783c0ecece8b", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,3 +10,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/utils": "^10.4.0", | ||
"@graphql-tools/utils": "10.5.4-rc-20240816015555-3530bdbfa367cc50b2b7a76f9d7d783c0ecece8b", | ||
"tslib": "^2.4.0" | ||
@@ -13,0 +13,0 @@ }, |
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
96847
1935
2