MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isAllowedTable

Function isAllowedTable

packages/core/sdk/src/fuma-runtime.ts:137–138  ·  view source on GitHub ↗
(tables: ReadonlySet<string> | undefined, table: PropertyKey)

Source from the content-addressed store, hash-verified

135}
136
137const isAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): boolean =>
138 tables === undefined || (typeof table === "string" && tables.has(table));
139
140const assertAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): void => {
141 if (isAllowedTable(tables, table)) return;

Callers 1

assertAllowedTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected