(c: Context)
| 86 | } |
| 87 | |
| 88 | function queryParams(c: Context): Record<string, string | string[]> { |
| 89 | return Object.fromEntries( |
| 90 | Object.entries(c.req.queries()).map(([key, values]) => [ |
| 91 | key, |
| 92 | redactQueryParam(key, values.length === 1 ? values[0] : values), |
| 93 | ]), |
| 94 | ); |
| 95 | } |
| 96 | |
| 97 | function redactQueryParam( |
| 98 | key: string, |
no test coverage detected