MCPcopy Create free account
hub / github.com/anomalyco/opencode / redactionSet

Function redactionSet

packages/http-recorder/src/redaction.ts:63–64  ·  view source on GitHub ↗
(values: ReadonlyArray<string> | undefined, defaults: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

61}
62
63const redactionSet = (values: ReadonlyArray<string> | undefined, defaults: ReadonlyArray<string>) =>
64 new Set([...defaults, ...(values ?? [])].map((value) => value.toLowerCase()))
65
66export type UrlRedactor = (url: string) => string
67

Callers 2

redactUrlFunction · 0.85
redactHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected