(relPath: string, isBinary: boolean)
| 638 | }; |
| 639 | |
| 640 | function guessMime(relPath: string, isBinary: boolean): string { |
| 641 | const ext = path.extname(relPath).toLowerCase(); |
| 642 | const mapped = EXT_TO_MIME[ext]; |
| 643 | if (mapped !== undefined) return mapped; |
| 644 | return isBinary ? 'application/octet-stream' : 'text/plain'; |
| 645 | } |
| 646 | |
| 647 | const EXT_TO_LANGUAGE: Readonly<Record<string, string>> = { |
| 648 | '.ts': 'typescript', |
no outgoing calls
no test coverage detected