(name: string)
| 41 | * @internal |
| 42 | */ |
| 43 | export function validateUsername(name: string): void { |
| 44 | const result = v.safeParse(UsernameSchema, name) |
| 45 | if (!result.success) { |
| 46 | throw new Error(`Invalid username: ${name}`) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Validates an npm org name (without the @ prefix) |
no outgoing calls
no test coverage detected