MCPcopy Index your code
hub / github.com/simstudioai/sim / isSafeKey

Function isSafeKey

apps/sim/tools/safe-assign.ts:6–8  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

4 * Checks if a key is safe to use in object assignment (not a prototype pollution vector)
5 */
6export function isSafeKey(key: string): boolean {
7 return !DANGEROUS_KEYS.has(key)
8}
9
10/**
11 * Safely assigns properties from source to target, filtering out prototype pollution keys.

Callers 2

safeAssignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected