MCPcopy Index your code
hub / github.com/TanStack/db / assertSafeAliasSegments

Function assertSafeAliasSegments

packages/db/src/query/compiler/select.ts:47–53  ·  view source on GitHub ↗
(segments: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

45const UNSAFE_ALIAS_SEGMENTS = new Set([`__proto__`, `prototype`, `constructor`])
46
47function assertSafeAliasSegments(segments: ReadonlyArray<string>): void {
48 for (const seg of segments) {
49 if (UNSAFE_ALIAS_SEGMENTS.has(seg)) {
50 throw new UnsafeAliasPathError(seg)
51 }
52 }
53}
54
55/**
56 * Processes a merge operation by merging source values into the target path

Callers 3

processMergeFunction · 0.85
processNonMergeOpFunction · 0.85
addFromObjectFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…