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