Comparing version 1.3.0-alpha.1 to 1.3.0-alpha.2
@@ -8,7 +8,29 @@ import type { PriorityName } from './constants'; | ||
export type Options = { | ||
/** | ||
* Merge array object attributes? | ||
*/ | ||
array: boolean; | ||
/** | ||
* Remove duplicates in array. | ||
*/ | ||
arrayDistinct: boolean; | ||
/** | ||
* Strategy to merge different object keys. | ||
* | ||
* @param target | ||
* @param key | ||
* @param value | ||
*/ | ||
strategy?: (target: Record<string, any>, key: string, value: unknown) => Record<string, any> | undefined; | ||
modifyTarget?: boolean; | ||
cloneSource?: boolean; | ||
/** | ||
* Merge sources in place. | ||
*/ | ||
inPlace?: boolean; | ||
/** | ||
* Deep clone input arrays/objects. | ||
*/ | ||
clone?: boolean; | ||
/** | ||
* Merge sources from left-right or left-right. | ||
*/ | ||
priority: `${PriorityName}`; | ||
@@ -15,0 +37,0 @@ }; |
export * from './array'; | ||
export * from './check'; | ||
export * from './clone'; | ||
export * from './cut'; | ||
export * from './has-own-property'; | ||
export * from './options'; |
{ | ||
"name": "smob", | ||
"version": "1.3.0-alpha.1", | ||
"version": "1.3.0-alpha.2", | ||
"description": "Zero dependency library to safe merge objects.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
72753
18
668
0