You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cc22724
Browse filesBrowse the repository at this point in the historyBrowse files
* chore(deps): upgrade docx to 9.15.2
docx 9.15 packs with fflate and encodes base64 with the global btoa, which
the isolated-vm sandbox does not provide, so the docx-generate finalize
(Packer.toBase64String + hand-rolled decode) threw ReferenceError. Pack with
Packer.toArrayBuffer instead, like the pptx/pdf tasks, and cover the real
bundle + bootstrap + finalize in a bare isolate-shaped context.
docx now drops XML-1.0-illegal control characters itself, so the Word
block's pre-strip before Markdown parsing is removed. Regenerated the
docx sandbox bundle.
* fix(word): keep stripping control characters before Markdown parsing
* fix(sandbox): provide btoa and atob to sandbox tasks
docx 9.15 encodes base64 through the global btoa/atob, so in the task
isolate Packer.toBase64String and patchDocument's base64 output (which
worked on 9.7.1) and password protection threw ReferenceError. The worker
now bridges btoa/atob to Node's native WHATWG implementations, like the
text codecs, and the bare verification context mirrors them.
throw new Error('No document created. Use addSection({ children: [...] }) for chunked writes, or set globalThis.doc = new docx.Document({...}) for a single write.');
0 commit comments