Update affected dependency ranges without changing application permissions. Add bounded ZIP64 and XML probes plus real browser DOCX extraction coverage. Replace the earlier trainer fixture any cast so the full lint gate passes.
18 lines
640 B
HTML
18 lines
640 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head><meta charset="utf-8"><title>Document extraction proof</title></head>
|
|
<body>
|
|
<label>Document <input id="document" type="file"></label>
|
|
<output id="result" aria-live="polite"></output>
|
|
<script type="module">
|
|
import { extractText } from '/src/api/rag.ts';
|
|
document.querySelector('#document').addEventListener('change', async (event) => {
|
|
const file = event.target.files?.[0];
|
|
if (!file) return;
|
|
try { document.querySelector('#result').textContent = await extractText(file); }
|
|
catch { document.querySelector('#result').textContent = 'Document extraction failed.'; }
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|