(path: string)
| 63 | |
| 64 | // Helper to normalize path similar to Python's os.path.normpath |
| 65 | function normalizePath(path: string): string { |
| 66 | return path |
| 67 | .split("/") |
| 68 | .filter(Boolean) |
| 69 | .join("/") |
| 70 | .replace(/\/+/g, "/"); |
| 71 | } |
| 72 | function cleanBasePath(apiBasePath: string | null | undefined){ |
| 73 | |
| 74 | if (typeof apiBasePath === "string") { |
no test coverage detected