@graphql-tools/merge
Advanced tools
Comparing version 9.0.5 to 9.0.6-alpha-20240816015725-ce463274e52be80999ac43adf98ff1e4095f1ae5
@@ -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-alpha-20240816015725-ce463274e52be80999ac43adf98ff1e4095f1ae5", | ||
"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-alpha-20240816015725-ce463274e52be80999ac43adf98ff1e4095f1ae5", | ||
"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
96853
1935
2