formatferry 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +23 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21128,6 +21128,27 @@ async function importXlsx() {
21128
21128
  return import("xlsx/dist/xlsx.mini.min.js");
21129
21129
  }
21130
21130
  async function importPdfjs() {
21131
+ if (typeof process !== "undefined" && typeof process.getBuiltinModule !== "function") {
21132
+ let requireWorker;
21133
+ try {
21134
+ const moduleName = "module";
21135
+ const mod = await import(
21136
+ /* @vite-ignore */
21137
+ moduleName
21138
+ );
21139
+ if (mod && mod.createRequire) {
21140
+ requireWorker = mod.createRequire(import.meta.url);
21141
+ }
21142
+ } catch {
21143
+ }
21144
+ process.getBuiltinModule = (name) => {
21145
+ try {
21146
+ return requireWorker ? requireWorker(name) : void 0;
21147
+ } catch {
21148
+ return void 0;
21149
+ }
21150
+ };
21151
+ }
21131
21152
  return import("pdfjs-dist/legacy/build/pdf.mjs");
21132
21153
  }
21133
21154
  async function loadLibraryInternal(format) {
@@ -23105,8 +23126,8 @@ import { readFileSync as readFileSync4 } from "fs";
23105
23126
  import { resolve, dirname as dirname3 } from "path";
23106
23127
  import { fileURLToPath } from "url";
23107
23128
  var getVersion = () => {
23108
- if ("1.0.4") {
23109
- return "1.0.4";
23129
+ if ("1.0.6") {
23130
+ return "1.0.6";
23110
23131
  }
23111
23132
  try {
23112
23133
  const __dirname = dirname3(fileURLToPath(import.meta.url));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formatferry",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "FormatFerry CLI — Convert HTML, DOCX, PDF, XLSX, CSV to Markdown",
5
5
  "keywords": [
6
6
  "markdown",