MCPcopy Create free account
hub / github.com/dailydotdev/apps / hasSensitiveQueryParam

Function hasSensitiveQueryParam

packages/shared/src/lib/sensitiveQuery.ts:15–18  ·  view source on GitHub ↗
(
  query: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

13export const REDACTED_VALUE = '[redacted]';
14
15export const hasSensitiveQueryParam = (
16 query: Record<string, unknown>,
17): boolean =>
18 SENSITIVE_QUERY_PARAMS.some((param) => typeof query[param] !== 'undefined');
19
20export const redactSensitiveQueryParams = <T extends Record<string, unknown>>(
21 query: T | null | undefined,

Callers 2

PixelsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected