MCPcopy Create free account
hub / github.com/hashintel/hash / sanitizeProxyLogArgs

Function sanitizeProxyLogArgs

apps/hash-api/src/index.ts:259–262  ·  view source on GitHub ↗
(args: unknown[])

Source from the content-addressed store, hash-verified

257 .replace(/\?[^#\s]*/g, "?[REDACTED_QUERY]");
258
259const sanitizeProxyLogArgs = (args: unknown[]): unknown[] =>
260 args.map((arg) =>
261 typeof arg === "string" ? redactAuthQueryParams(arg) : arg,
262 );
263
264/**
265 * Forward a `http-proxy-middleware` variadic log call to the

Callers 1

forwardProxyLogFunction · 0.85

Calls 2

redactAuthQueryParamsFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected