(apiBasePath: string | null | undefined)
| 99 | } |
| 100 | |
| 101 | function cleanBasePath(apiBasePath: string | null | undefined){ |
| 102 | |
| 103 | if (typeof apiBasePath === "string") { |
| 104 | let path = apiBasePath ? normalizePath(apiBasePath) : ""; |
| 105 | |
| 106 | if (path === ".") { |
| 107 | path = ""; |
| 108 | } else if (path) { |
| 109 | if (!path.startsWith("/")) { |
| 110 | path = "/" + path; |
| 111 | } |
| 112 | if (path.endsWith("/")) { |
| 113 | path = path.slice(0, -1); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | return path; |
| 118 | } |
| 119 | return '' |
| 120 | |
| 121 | } |
| 122 | const negativeValues = new Set(["false", "no", "n", "0", "nah", "nope", "never", "negative", "f"]); |
| 123 | const affirmativeValues = new Set(["true", "yes", "y", "1", "yeah", "yep", "sure", "ok", "okay", "affirmative", "t"]); |
| 124 |
no test coverage detected