formatferry 1.0.4 → 1.0.8
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/index.js +26 -2
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -21128,6 +21128,30 @@ 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") {
|
|
21132
|
+
const proxyProcess = process;
|
|
21133
|
+
if (typeof proxyProcess.getBuiltinModule !== "function") {
|
|
21134
|
+
let requireWorker;
|
|
21135
|
+
try {
|
|
21136
|
+
const moduleName = "module";
|
|
21137
|
+
const mod = await import(
|
|
21138
|
+
/* @vite-ignore */
|
|
21139
|
+
moduleName
|
|
21140
|
+
);
|
|
21141
|
+
if (mod && typeof mod.createRequire === "function") {
|
|
21142
|
+
requireWorker = mod.createRequire(import.meta.url);
|
|
21143
|
+
}
|
|
21144
|
+
} catch {
|
|
21145
|
+
}
|
|
21146
|
+
proxyProcess.getBuiltinModule = (name) => {
|
|
21147
|
+
try {
|
|
21148
|
+
return requireWorker ? requireWorker(name) : void 0;
|
|
21149
|
+
} catch {
|
|
21150
|
+
return void 0;
|
|
21151
|
+
}
|
|
21152
|
+
};
|
|
21153
|
+
}
|
|
21154
|
+
}
|
|
21131
21155
|
return import("pdfjs-dist/legacy/build/pdf.mjs");
|
|
21132
21156
|
}
|
|
21133
21157
|
async function loadLibraryInternal(format) {
|
|
@@ -23105,8 +23129,8 @@ import { readFileSync as readFileSync4 } from "fs";
|
|
|
23105
23129
|
import { resolve, dirname as dirname3 } from "path";
|
|
23106
23130
|
import { fileURLToPath } from "url";
|
|
23107
23131
|
var getVersion = () => {
|
|
23108
|
-
if ("1.0.
|
|
23109
|
-
return "1.0.
|
|
23132
|
+
if ("1.0.8") {
|
|
23133
|
+
return "1.0.8";
|
|
23110
23134
|
}
|
|
23111
23135
|
try {
|
|
23112
23136
|
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.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "FormatFerry CLI — Convert HTML, DOCX, PDF, XLSX, CSV to Markdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"node": ">=18"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
25
26
|
"build": "node build.mjs",
|
|
26
27
|
"test": "vitest --run"
|
|
27
28
|
},
|