MCPcopy
hub / github.com/infinitered/reactotron / redactAsyncStorageData

Function redactAsyncStorageData

lib/reactotron-mcp/src/redaction.ts:432–435  ·  view source on GitHub ↗
(data: unknown, rules: McpRedactionRules)

Source from the content-addressed store, hash-verified

430 * sensitiveKeys before redacting the corresponding value.
431 */
432export function redactAsyncStorageData(data: unknown, rules: McpRedactionRules): unknown {
433 if (data === null || data === undefined) return data
434 return redactAsyncStorageWithParsed(data, parseRules(rules))
435}
436
437function redactAsyncStorageWithParsed(data: unknown, parsed: ParsedRules): unknown {
438 if (parsed.sensitiveKeysLower.size === 0) return data

Callers 1

redaction.test.tsFile · 0.90

Calls 2

parseRulesFunction · 0.85

Tested by

no test coverage detected