This commit is contained in:
seb
2026-10-18 15:41:21 +02:00
parent 36d62138d4
commit 9c50d9efc3
4 changed files with 340 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ Applets run in an isolated worker thread pool sandbox.
- **No `require()` or `import`**: Attempting to import modules throws an error.
- **Pre-injected Globals**:
- `fetch(path, options)`: Authenticated `fetch` pre-configured with a JWT scoped to the current user and selected company. Use root-relative API routes, e.g. `fetch('/article/42000009')`.
- `fs` / `vfs`: Sandboxed VFS filesystem interface for reading/writing local company files.
- `fs`: Sandboxed filesystem interface for reading/writing local company files.
- `ExcelJS`: Pre-injected spreadsheet library.
- `PDFDocument`: Pre-injected PDFKit library.
- `sharp`: Pre-injected image manipulation library.