(p: string)
| 294 | } |
| 295 | |
| 296 | const normalizePlatformPath = (p: string): string => { |
| 297 | const n = path.normalize(p) |
| 298 | return process.platform === 'win32' ? n.toLowerCase() : n |
| 299 | } |
| 300 | |
| 301 | const isPathWithinAllowedSQLiteDirs = (resolvedPath: string, allowedDirs: string[]): boolean => { |
| 302 | const normalizedResolved = normalizePlatformPath(resolvedPath) |
no outgoing calls
no test coverage detected