modern-pdf-lib 0.12.0 → 0.13.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.
@@ -75,7 +75,7 @@ async function initDeflateWasm(wasmBytes) {
75
75
  let bytes;
76
76
  if (wasmBytes) bytes = wasmBytes;
77
77
  else {
78
- const { loadWasmModule } = await import("./loader-D9LTYmrX.mjs");
78
+ const { loadWasmModule } = await import("./loader-CQfoGFp9.mjs");
79
79
  bytes = await loadWasmModule("libdeflate");
80
80
  }
81
81
  const compiled = await WebAssembly.compile(new Uint8Array(bytes));
@@ -217,4 +217,4 @@ var LibdeflateWasm = class {
217
217
 
218
218
  //#endregion
219
219
  export { isAvailable as n, libdeflateWasm_exports as r, deflateSync as t };
220
- //# sourceMappingURL=libdeflateWasm-QVHmuzw-.mjs.map
220
+ //# sourceMappingURL=libdeflateWasm-DlHgU5oy.mjs.map
@@ -75,7 +75,7 @@ async function initDeflateWasm(wasmBytes) {
75
75
  let bytes;
76
76
  if (wasmBytes) bytes = wasmBytes;
77
77
  else {
78
- const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-mwt5wRJz.cjs"));
78
+ const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-_fqS-TmT.cjs"));
79
79
  bytes = await loadWasmModule("libdeflate");
80
80
  }
81
81
  const compiled = await WebAssembly.compile(new Uint8Array(bytes));
@@ -234,4 +234,4 @@ Object.defineProperty(exports, 'libdeflateWasm_exports', {
234
234
  return libdeflateWasm_exports;
235
235
  }
236
236
  });
237
- //# sourceMappingURL=libdeflateWasm-to2bG6NG.cjs.map
237
+ //# sourceMappingURL=libdeflateWasm-OkNoqBnO.cjs.map
@@ -4,7 +4,8 @@ const DEFAULT_FILENAMES = {
4
4
  libdeflate: "modern_pdf_deflate_bg.wasm",
5
5
  png: "modern_pdf_png_bg.wasm",
6
6
  ttf: "modern_pdf_ttf_bg.wasm",
7
- shaping: "modern_pdf_shaping_bg.wasm"
7
+ shaping: "modern_pdf_shaping_bg.wasm",
8
+ jbig2: "modern_pdf_jbig2_bg.wasm"
8
9
  };
9
10
  /** Cached loaded WASM modules. */
10
11
  const moduleCache = /* @__PURE__ */ new Map();
@@ -113,7 +114,7 @@ function resolveModulePath(name, config, runtime) {
113
114
  * Results are cached -- subsequent calls for the same module name
114
115
  * return the cached bytes without re-fetching.
115
116
  *
116
- * @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`.
117
+ * @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`, `'jbig2'`.
117
118
  * @returns The raw WASM bytes.
118
119
  * @throws If the module cannot be loaded in the current runtime.
119
120
  *
@@ -159,4 +160,4 @@ async function loadWasmModule(name) {
159
160
 
160
161
  //#endregion
161
162
  export { getWasmLoaderConfig, loadWasmModule };
162
- //# sourceMappingURL=loader-D9LTYmrX.mjs.map
163
+ //# sourceMappingURL=loader-CQfoGFp9.mjs.map
@@ -5,7 +5,8 @@ const DEFAULT_FILENAMES = {
5
5
  libdeflate: "modern_pdf_deflate_bg.wasm",
6
6
  png: "modern_pdf_png_bg.wasm",
7
7
  ttf: "modern_pdf_ttf_bg.wasm",
8
- shaping: "modern_pdf_shaping_bg.wasm"
8
+ shaping: "modern_pdf_shaping_bg.wasm",
9
+ jbig2: "modern_pdf_jbig2_bg.wasm"
9
10
  };
10
11
  /** Cached loaded WASM modules. */
11
12
  const moduleCache = /* @__PURE__ */ new Map();
@@ -114,7 +115,7 @@ function resolveModulePath(name, config, runtime) {
114
115
  * Results are cached -- subsequent calls for the same module name
115
116
  * return the cached bytes without re-fetching.
116
117
  *
117
- * @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`.
118
+ * @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`, `'jbig2'`.
118
119
  * @returns The raw WASM bytes.
119
120
  * @throws If the module cannot be loaded in the current runtime.
120
121
  *
@@ -161,4 +162,4 @@ async function loadWasmModule(name) {
161
162
  //#endregion
162
163
  exports.getWasmLoaderConfig = getWasmLoaderConfig;
163
164
  exports.loadWasmModule = loadWasmModule;
164
- //# sourceMappingURL=loader-mwt5wRJz.cjs.map
165
+ //# sourceMappingURL=loader-_fqS-TmT.cjs.map