formatferry 1.0.6 → 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 +22 -19
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -21128,26 +21128,29 @@ 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
|
-
|
|
21133
|
-
|
|
21134
|
-
|
|
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) => {
|
|
21131
|
+
if (typeof process !== "undefined") {
|
|
21132
|
+
const proxyProcess = process;
|
|
21133
|
+
if (typeof proxyProcess.getBuiltinModule !== "function") {
|
|
21134
|
+
let requireWorker;
|
|
21145
21135
|
try {
|
|
21146
|
-
|
|
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
|
+
}
|
|
21147
21144
|
} catch {
|
|
21148
|
-
return void 0;
|
|
21149
21145
|
}
|
|
21150
|
-
|
|
21146
|
+
proxyProcess.getBuiltinModule = (name) => {
|
|
21147
|
+
try {
|
|
21148
|
+
return requireWorker ? requireWorker(name) : void 0;
|
|
21149
|
+
} catch {
|
|
21150
|
+
return void 0;
|
|
21151
|
+
}
|
|
21152
|
+
};
|
|
21153
|
+
}
|
|
21151
21154
|
}
|
|
21152
21155
|
return import("pdfjs-dist/legacy/build/pdf.mjs");
|
|
21153
21156
|
}
|
|
@@ -23126,8 +23129,8 @@ import { readFileSync as readFileSync4 } from "fs";
|
|
|
23126
23129
|
import { resolve, dirname as dirname3 } from "path";
|
|
23127
23130
|
import { fileURLToPath } from "url";
|
|
23128
23131
|
var getVersion = () => {
|
|
23129
|
-
if ("1.0.
|
|
23130
|
-
return "1.0.
|
|
23132
|
+
if ("1.0.8") {
|
|
23133
|
+
return "1.0.8";
|
|
23131
23134
|
}
|
|
23132
23135
|
try {
|
|
23133
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
|
},
|