@augment-vir/common
Advanced tools
Comparing version 21.3.1 to 21.3.2
@@ -46,3 +46,8 @@ "use strict"; | ||
else { | ||
result = individualInput; | ||
if ((0, runtime_type_of_1.isRuntimeTypeOf)(individualInput, 'array')) { | ||
result = [...individualInput]; | ||
} | ||
else { | ||
result = { ...individualInput }; | ||
} | ||
} | ||
@@ -49,0 +54,0 @@ } |
@@ -43,3 +43,8 @@ import { isRuntimeTypeOf } from '../runtime-type-of'; | ||
else { | ||
result = individualInput; | ||
if (isRuntimeTypeOf(individualInput, 'array')) { | ||
result = [...individualInput]; | ||
} | ||
else { | ||
result = { ...individualInput }; | ||
} | ||
} | ||
@@ -46,0 +51,0 @@ } |
@@ -7,4 +7,4 @@ import { PartialDeep } from 'type-fest'; | ||
*/ | ||
export declare function mergeDeep<T extends object>(...inputs: (T | PartialDeep<T, { | ||
export declare function mergeDeep<const T extends object>(...inputs: (Readonly<T> | Readonly<PartialDeep<T, { | ||
recurseIntoArrays: true; | ||
}>)[]): T; | ||
}>> | Readonly<Partial<T>>)[]): T; |
{ | ||
"name": "@augment-vir/common", | ||
"version": "21.3.1", | ||
"version": "21.3.2", | ||
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common", | ||
@@ -5,0 +5,0 @@ "bugs": { |
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
171634
4157