(path: string)
| 92 | } |
| 93 | |
| 94 | private buildUrl(path: string): string { |
| 95 | if (!this.baseUrl) { |
| 96 | return path |
| 97 | } |
| 98 | try { |
| 99 | return new URL(path, this.baseUrl).toString() |
| 100 | } catch { |
| 101 | return path |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | private async request<T>( |
| 106 | path: string, |
no outgoing calls
no test coverage detected