@augment-vir/common
Advanced tools
Comparing version 19.4.1 to 19.4.2
@@ -21,15 +21,20 @@ "use strict"; | ||
inputs.forEach((individualInput) => { | ||
result = { | ||
...result, | ||
...individualInput, | ||
}; | ||
Object.entries(individualInput).forEach(([key, value,]) => { | ||
if ((0, runtime_type_of_1.isRuntimeTypeOf)(value, 'object')) { | ||
const mergePropsArray = mergeProps[key] || []; | ||
if (!mergeProps[key]) { | ||
mergeProps[key] = mergePropsArray; | ||
try { | ||
Object.entries(individualInput).forEach(([key, value,]) => { | ||
if ((0, runtime_type_of_1.isRuntimeTypeOf)(value, 'object')) { | ||
const mergePropsArray = mergeProps[key] || []; | ||
if (!mergeProps[key]) { | ||
mergeProps[key] = mergePropsArray; | ||
} | ||
mergePropsArray.push(value); | ||
} | ||
mergePropsArray.push(value); | ||
} | ||
}); | ||
}); | ||
result = { | ||
...result, | ||
...individualInput, | ||
}; | ||
} | ||
catch (error) { | ||
/** Ignore errors, such as individualInput not actually being an object. */ | ||
} | ||
}); | ||
@@ -36,0 +41,0 @@ Object.entries(mergeProps).forEach(([key, mergeValues,]) => { |
@@ -18,15 +18,20 @@ import { isRuntimeTypeOf } from '../runtime-type-of'; | ||
inputs.forEach((individualInput) => { | ||
result = { | ||
...result, | ||
...individualInput, | ||
}; | ||
Object.entries(individualInput).forEach(([key, value,]) => { | ||
if (isRuntimeTypeOf(value, 'object')) { | ||
const mergePropsArray = mergeProps[key] || []; | ||
if (!mergeProps[key]) { | ||
mergeProps[key] = mergePropsArray; | ||
try { | ||
Object.entries(individualInput).forEach(([key, value,]) => { | ||
if (isRuntimeTypeOf(value, 'object')) { | ||
const mergePropsArray = mergeProps[key] || []; | ||
if (!mergeProps[key]) { | ||
mergeProps[key] = mergePropsArray; | ||
} | ||
mergePropsArray.push(value); | ||
} | ||
mergePropsArray.push(value); | ||
} | ||
}); | ||
}); | ||
result = { | ||
...result, | ||
...individualInput, | ||
}; | ||
} | ||
catch (error) { | ||
/** Ignore errors, such as individualInput not actually being an object. */ | ||
} | ||
}); | ||
@@ -33,0 +38,0 @@ Object.entries(mergeProps).forEach(([key, mergeValues,]) => { |
{ | ||
"name": "@augment-vir/common", | ||
"version": "19.4.1", | ||
"version": "19.4.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
155206
3750