modern-pdf-lib 0.14.0 → 0.15.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-CQfoGFp9.mjs");
78
+ const { loadWasmModule } = await import("./loader-1VJXLlMZ.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-DlHgU5oy.mjs.map
220
+ //# sourceMappingURL=libdeflateWasm-82loOtIV.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-_fqS-TmT.cjs"));
78
+ const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-CKlBOHma.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-OkNoqBnO.cjs.map
237
+ //# sourceMappingURL=libdeflateWasm-Enus0G1k.cjs.map
@@ -5,7 +5,8 @@ const DEFAULT_FILENAMES = {
5
5
  png: "modern_pdf_png_bg.wasm",
6
6
  ttf: "modern_pdf_ttf_bg.wasm",
7
7
  shaping: "modern_pdf_shaping_bg.wasm",
8
- jbig2: "modern_pdf_jbig2_bg.wasm"
8
+ jbig2: "modern_pdf_jbig2_bg.wasm",
9
+ jpeg: "modern_pdf_jpeg_bg.wasm"
9
10
  };
10
11
  /** Cached loaded WASM modules. */
11
12
  const moduleCache = /* @__PURE__ */ new Map();
@@ -160,4 +161,4 @@ async function loadWasmModule(name) {
160
161
 
161
162
  //#endregion
162
163
  export { getWasmLoaderConfig, loadWasmModule };
163
- //# sourceMappingURL=loader-CQfoGFp9.mjs.map
164
+ //# sourceMappingURL=loader-1VJXLlMZ.mjs.map
@@ -6,7 +6,8 @@ const DEFAULT_FILENAMES = {
6
6
  png: "modern_pdf_png_bg.wasm",
7
7
  ttf: "modern_pdf_ttf_bg.wasm",
8
8
  shaping: "modern_pdf_shaping_bg.wasm",
9
- jbig2: "modern_pdf_jbig2_bg.wasm"
9
+ jbig2: "modern_pdf_jbig2_bg.wasm",
10
+ jpeg: "modern_pdf_jpeg_bg.wasm"
10
11
  };
11
12
  /** Cached loaded WASM modules. */
12
13
  const moduleCache = /* @__PURE__ */ new Map();
@@ -162,4 +163,4 @@ async function loadWasmModule(name) {
162
163
  //#endregion
163
164
  exports.getWasmLoaderConfig = getWasmLoaderConfig;
164
165
  exports.loadWasmModule = loadWasmModule;
165
- //# sourceMappingURL=loader-_fqS-TmT.cjs.map
166
+ //# sourceMappingURL=loader-CKlBOHma.cjs.map
@@ -146,7 +146,7 @@ async function initPngWasm(wasmSource) {
146
146
  const resp = await fetch(String(wasmSource));
147
147
  result = await WebAssembly.instantiateStreaming(resp, imports);
148
148
  } else {
149
- const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-_fqS-TmT.cjs"));
149
+ const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-CKlBOHma.cjs"));
150
150
  const bytes = await loadWasmModule("png");
151
151
  result = await WebAssembly.instantiate(bytes.buffer, imports);
152
152
  }
@@ -560,4 +560,4 @@ Object.defineProperty(exports, 'pngEmbed_exports', {
560
560
  return pngEmbed_exports;
561
561
  }
562
562
  });
563
- //# sourceMappingURL=pngEmbed-OYyOe_W0.cjs.map
563
+ //# sourceMappingURL=pngEmbed-10m4CfBU.cjs.map
@@ -146,7 +146,7 @@ async function initPngWasm(wasmSource) {
146
146
  const resp = await fetch(String(wasmSource));
147
147
  result = await WebAssembly.instantiateStreaming(resp, imports);
148
148
  } else {
149
- const { loadWasmModule } = await import("./loader-CQfoGFp9.mjs");
149
+ const { loadWasmModule } = await import("./loader-1VJXLlMZ.mjs");
150
150
  const bytes = await loadWasmModule("png");
151
151
  result = await WebAssembly.instantiate(bytes.buffer, imports);
152
152
  }
@@ -549,4 +549,4 @@ function embedComplexPng(ihdr, idatData, palette, transparency) {
549
549
 
550
550
  //#endregion
551
551
  export { pngEmbed_exports as n, embedPng as t };
552
- //# sourceMappingURL=pngEmbed-DTOqgEUC.mjs.map
552
+ //# sourceMappingURL=pngEmbed-gaJ9S2Dk.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modern-pdf-lib",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "A modern, WASM-accelerated PDF creation engine for every JavaScript runtime",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,6 +14,9 @@
14
14
  },
15
15
  "./wasm/*": "./dist/wasm/*"
16
16
  },
17
+ "bin": {
18
+ "modern-pdf": "./dist/cli/index.mjs"
19
+ },
17
20
  "main": "./dist/index.cjs",
18
21
  "module": "./dist/index.mjs",
19
22
  "types": "./dist/index.d.mts",