(value: string)
| 293 | } |
| 294 | |
| 295 | function normalizePublicBaseUrl(value: string): string { |
| 296 | const trimmed = value.trim(); |
| 297 | const parsed = new URL(trimmed); |
| 298 | parsed.hash = ""; |
| 299 | parsed.search = ""; |
| 300 | parsed.pathname = parsed.pathname.replace(/\/+$/, ""); |
| 301 | return parsed.toString().replace(/\/$/, ""); |
| 302 | } |
| 303 | |
| 304 | type TextPromptOptions = Omit<Parameters<typeof prompts.text>[0], "validate"> & { |
| 305 | defaultValue: string; |
no outgoing calls
no test coverage detected