(store: string)
| 76 | * E1 fix: hardened against path traversal on Windows and POSIX. |
| 77 | */ |
| 78 | export function isValidStoreName(store: string): boolean { |
| 79 | try { |
| 80 | validateStoreName(store) |
| 81 | return true |
| 82 | } catch { |
| 83 | return false |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | function validateStoreName(store: string): void { |
| 88 | if (!store) { |
no test coverage detected