formatferry 1.0.1 → 1.0.3

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 +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21128,7 +21128,7 @@ async function importXlsx() {
21128
21128
  return import("xlsx/dist/xlsx.mini.min.js");
21129
21129
  }
21130
21130
  async function importPdfjs() {
21131
- return import("pdfjs-dist");
21131
+ return import("pdfjs-dist/legacy/build/pdf.mjs");
21132
21132
  }
21133
21133
  async function loadLibraryInternal(format) {
21134
21134
  try {
@@ -21160,7 +21160,7 @@ async function loadLibraryInternal(format) {
21160
21160
  try {
21161
21161
  library = await importPdfjs();
21162
21162
  const pdfjs = library;
21163
- if (pdfjs.GlobalWorkerOptions) {
21163
+ if (pdfjs.GlobalWorkerOptions && (typeof process === "undefined" || !process.versions?.node)) {
21164
21164
  pdfjs.GlobalWorkerOptions.workerSrc = "/pdf.worker.min.mjs";
21165
21165
  }
21166
21166
  } catch {
@@ -23105,8 +23105,8 @@ import { readFileSync as readFileSync4 } from "fs";
23105
23105
  import { resolve, dirname as dirname3 } from "path";
23106
23106
  import { fileURLToPath } from "url";
23107
23107
  var getVersion = () => {
23108
- if ("1.0.1") {
23109
- return "1.0.1";
23108
+ if ("1.0.3") {
23109
+ return "1.0.3";
23110
23110
  }
23111
23111
  try {
23112
23112
  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.1",
3
+ "version": "1.0.3",
4
4
  "description": "FormatFerry CLI — Convert HTML, DOCX, PDF, XLSX, CSV to Markdown",
5
5
  "keywords": [
6
6
  "markdown",