(entry: string, rootName: string)
| 128 | } |
| 129 | |
| 130 | function validateArchiveEntryPath(entry: string, rootName: string): void { |
| 131 | if (entry !== rootName && !entry.startsWith(`${rootName}/`)) { |
| 132 | throw new AppError( |
| 133 | 'INVALID_ARGS', |
| 134 | `Archive entry must stay inside top-level "${rootName}" bundle: ${entry}`, |
| 135 | ); |
| 136 | } |
| 137 | } |
no test coverage detected
searching dependent graphs…