( url: string | undefined, )
| 101 | } |
| 102 | |
| 103 | const apiUrlOptions = ( |
| 104 | url: string | undefined, |
| 105 | ): { apiHostname?: string; port?: number; https?: boolean } => { |
| 106 | if (!url) return {}; |
| 107 | const parsed = new URL(url); |
| 108 | return { |
| 109 | apiHostname: parsed.hostname, |
| 110 | ...(parsed.port ? { port: Number(parsed.port) } : {}), |
| 111 | https: parsed.protocol === "https:", |
| 112 | }; |
| 113 | }; |
| 114 | |
| 115 | interface WorkOSVaultUseOptions { |
| 116 | readonly expectedErrorStatuses?: readonly number[]; |
no outgoing calls
no test coverage detected