(baseUrl: string, route: string)
| 5 | } |
| 6 | |
| 7 | export function buildDaemonHttpUrl(baseUrl: string, route: string): string { |
| 8 | const normalizedBase = baseUrl.endsWith('/') ? baseUrl : `${baseUrl}/`; |
| 9 | return new URL(route.replace(/^\/+/, ''), normalizedBase).toString(); |
| 10 | } |
| 11 | |
| 12 | export function buildDaemonHttpAuthHeaders(token: string | undefined): Record<string, string> { |
| 13 | const normalizedToken = token?.trim(); |
no outgoing calls
no test coverage detected