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

Function parsedFor

lib/reactotron-mcp/src/redaction.ts:131–139  ·  view source on GitHub ↗
(clientId?: string)

Source from the content-addressed store, hash-verified

129 const cache = new Map<string, ParsedRules | null>()
130
131 function parsedFor(clientId?: string): ParsedRules | null {
132 const key = clientId ?? NO_CLIENT
133 if (cache.has(key)) return cache.get(key)!
134 const clientConfig = getClientRedactionConfig(server, clientId)
135 const rules = resolveEffectiveRules(serverRedactionConfig, clientConfig)
136 const parsed = rules ? parseRules(rules) : null
137 cache.set(key, parsed)
138 return parsed
139 }
140
141 return {
142 redact(data, clientId) {

Callers 3

redactFunction · 0.85
redactStateFunction · 0.85
redactAsyncStorageFunction · 0.85

Calls 3

getClientRedactionConfigFunction · 0.85
resolveEffectiveRulesFunction · 0.85
parseRulesFunction · 0.85

Tested by

no test coverage detected