@ai-matrx/print 0.8.70 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/document.js CHANGED
@@ -47039,6 +47039,12 @@ function templateParts(template, s) {
47039
47039
  return out;
47040
47040
  }
47041
47041
 
47042
+ // src/zip.ts
47043
+ async function loadJSZip() {
47044
+ const mod = await import("jszip");
47045
+ return mod.default ?? mod;
47046
+ }
47047
+
47042
47048
  // src/document/docx.ts
47043
47049
  var TW = 20;
47044
47050
  function strip(o) {
@@ -47589,8 +47595,7 @@ function renumberBookmarkXml(xml) {
47589
47595
  });
47590
47596
  }
47591
47597
  async function renumberBookmarks(bytes) {
47592
- const JSZipMod = await import("jszip");
47593
- const JSZip = JSZipMod.default ?? JSZipMod;
47598
+ const JSZip = await loadJSZip();
47594
47599
  const zip = await JSZip.loadAsync(bytes);
47595
47600
  const entry = zip.file("word/document.xml");
47596
47601
  if (!entry) return bytes;
@@ -47977,8 +47982,7 @@ function uuid() {
47977
47982
  });
47978
47983
  }
47979
47984
  async function documentToEpub(tree, options = {}) {
47980
- const JSZipMod = await import("jszip");
47981
- const JSZip = JSZipMod.default ?? JSZipMod;
47985
+ const JSZip = await loadJSZip();
47982
47986
  const s = tree.settings;
47983
47987
  const lang = s.lang || "en";
47984
47988
  const levels = [];