(path: string, rootDir: string)
| 76 | } |
| 77 | |
| 78 | function isInsideRoot(path: string, rootDir: string): boolean { |
| 79 | const normalized = normalizePath(path) |
| 80 | const normalizedRootDir = normalizePath(rootDir) |
| 81 | if (!normalizedRootDir) |
| 82 | return true |
| 83 | return normalized.startsWith(`${normalizedRootDir}/`) |
| 84 | } |
| 85 | |
| 86 | function readYaml(file: HttpImportFile, warnings: HttpImportWarning[]) { |
| 87 | try { |
no test coverage detected