Add offline detection, chunked uploads, and security tests (#9, #10, #12, #15)

- Add offline detection with navigator.onLine and auto-pause/resume
- Implement chunked upload for files >100MB with localStorage persistence
- Add download by artifact ID input field in PackagePage
- Add 10 security tests for path traversal and malformed requests
- Fix test setup globalThis reference
This commit is contained in:
Mondo Diaz
2026-01-07 14:24:44 -06:00
parent b9b4334393
commit 0302e5b21a
6 changed files with 689 additions and 37 deletions

View File

@@ -18,7 +18,7 @@ class MockDataTransfer implements DataTransfer {
setDragImage(): void {}
}
Object.defineProperty(global, 'DataTransfer', {
Object.defineProperty(globalThis, 'DataTransfer', {
value: MockDataTransfer,
});