()
| 230 | export const toString = (self: UrlParams): string => new URLSearchParams(self as any).toString() |
| 231 | |
| 232 | const baseUrl = (): string | undefined => { |
| 233 | if ( |
| 234 | "location" in globalThis && |
| 235 | globalThis.location !== undefined && |
| 236 | globalThis.location.origin !== undefined && |
| 237 | globalThis.location.pathname !== undefined |
| 238 | ) { |
| 239 | return location.origin + location.pathname |
| 240 | } |
| 241 | return undefined |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * Builds a `Record` containing all the key-value pairs in the given `UrlParams` |
no outgoing calls
no test coverage detected
searching dependent graphs…