fix: address Cubic round 5 issues — prototype-pollution guard, URL-encode, JSONC preservation, config-context warning, dynamic config path
This commit is contained in:
@@ -5,6 +5,7 @@ export function deepMergeRecord<TTarget extends Record<string, unknown>>(
|
||||
const result: TTarget = { ...target }
|
||||
|
||||
for (const key of Object.keys(source) as Array<keyof TTarget>) {
|
||||
if (key === "__proto__" || key === "constructor" || key === "prototype") continue
|
||||
const sourceValue = source[key]
|
||||
const targetValue = result[key]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user