@bfwk/utils
Advanced tools
Comparing version 0.6.26 to 0.6.27
@@ -6,8 +6,8 @@ # Change Log | ||
## [0.6.26](https://github.com/salesforce/builder-framework/compare/v0.6.25...v0.6.26) (2021-06-04) | ||
## [0.6.27](https://github.com/salesforce/builder-framework/compare/v0.6.26...v0.6.27) (2021-06-07) | ||
### Features | ||
### Bug Fixes | ||
* property sheet container handles drill in @W-9352967 ([#75](https://github.com/salesforce/builder-framework/issues/75)) ([808cb8f](https://github.com/salesforce/builder-framework/commit/808cb8fa72d67888b2a286f18ff3ea41c1d09d96)) | ||
* adapt complex types to new interface and some offcore fixes @W-9350897([#78](https://github.com/salesforce/builder-framework/issues/78)) ([a5cfb43](https://github.com/salesforce/builder-framework/commit/a5cfb437f8cd012b9b0d83a3ff9111fe96ff0cf5)) | ||
@@ -14,0 +14,0 @@ |
@@ -1202,18 +1202,19 @@ import { ValueChangedEvent } from '@lwc/wire-service'; | ||
} | ||
const toReturn = clone(target, true); | ||
Object.keys(source).forEach(key => { | ||
const targetValue = target[key]; | ||
const targetValue = toReturn[key]; | ||
const sourceValue = source[key]; | ||
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) { | ||
target[key] = targetValue.concat(sourceValue); | ||
toReturn[key] = sourceValue; | ||
} | ||
else if (isObject(targetValue) && isObject(sourceValue)) { | ||
target[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); | ||
toReturn[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); | ||
} | ||
else { | ||
target[key] = sourceValue; | ||
toReturn[key] = sourceValue; | ||
} | ||
}); | ||
return target; | ||
return toReturn; | ||
} | ||
export { Connection, ConnectionManager, CustomURLSearchParams, ExpressionServiceFactory, MessageChannelConnection, Observable, ObservableCreator, PostMessageConnection, Subscription, WireValueChangeObservers, clone, configureObservers, createWireAdapterFactory, formatLabel, generateAdapterId, generateGuid, inverse, isArray, isEqual, isFunction, isObject, isUndefined, isUndefinedOrNull, isValidNumber, labelComparator, labelFilter, mergeDeep, multiComparatorGenerator, nameComparator, scrubURLDomain, shallowCopy, stringPropertyComparator, throttle }; |
@@ -1693,18 +1693,19 @@ import { ValueChangedEvent } from '@lwc/wire-service'; | ||
} | ||
const toReturn = clone(target, true); | ||
Object.keys(source).forEach(key => { | ||
const targetValue = target[key]; | ||
const targetValue = toReturn[key]; | ||
const sourceValue = source[key]; | ||
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) { | ||
target[key] = targetValue.concat(sourceValue); | ||
toReturn[key] = sourceValue; | ||
} | ||
else if (isObject(targetValue) && isObject(sourceValue)) { | ||
target[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); | ||
toReturn[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); | ||
} | ||
else { | ||
target[key] = sourceValue; | ||
toReturn[key] = sourceValue; | ||
} | ||
}); | ||
return target; | ||
return toReturn; | ||
} | ||
export { Connection, ConnectionManager, CustomURLSearchParams, ExpressionServiceFactory, MessageChannelConnection, Observable, ObservableCreator, PostMessageConnection, ReactiveMembrane, Subscription, WireValueChangeObservers, clone, configureObservers, createWireAdapterFactory, formatLabel, generateAdapterId, generateGuid, inverse, isArray, isEqual, isFunction, isObject, isUndefined, isUndefinedOrNull, isValidNumber, labelComparator, labelFilter, mergeDeep, multiComparatorGenerator, nameComparator, scrubURLDomain, shallowCopy, stringPropertyComparator, throttle }; |
@@ -1,5 +0,1 @@ | ||
/** | ||
* Performs a deep merge of `source` into `target`. | ||
* Mutates `target` only but not its objects and arrays. | ||
*/ | ||
export declare function mergeDeep(target: any, source: any): any; |
{ | ||
"name": "@bfwk/utils", | ||
"version": "0.6.26", | ||
"version": "0.6.27", | ||
"description": "LBF Pub Sub", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
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
149084
3346