( externalAddress: string, ...parts: string[] )
| 714 | }; |
| 715 | |
| 716 | export const makeExternalURL = ( |
| 717 | externalAddress: string, |
| 718 | ...parts: string[] |
| 719 | ): string => { |
| 720 | const externalURL = new URL(externalAddress); |
| 721 | |
| 722 | return new URL(path.join(externalURL.pathname, ...parts), externalAddress) |
| 723 | .href; |
| 724 | }; |
| 725 | |
| 726 | export class BadRequest extends Error { |
| 727 | constructor(message: string) { |
no outgoing calls
no test coverage detected