@clazic/kordoc 2.4.0 → 2.4.1
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/{chunk-STIKJGEA.js → chunk-L5PTGU7H.js} +2 -2
- package/dist/{chunk-2GFJFTKS.js → chunk-SG2Q3XWV.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.js +2 -2
- package/dist/{utils-FFUQJTTI.js → utils-HZUX2SJQ.js} +2 -2
- package/dist/{watch-2O32L6IF.js → watch-G4XHPHGA.js} +3 -3
- package/package.json +2 -1
- /package/dist/{chunk-STIKJGEA.js.map → chunk-L5PTGU7H.js.map} +0 -0
- /package/dist/{chunk-2GFJFTKS.js.map → chunk-SG2Q3XWV.js.map} +0 -0
- /package/dist/{utils-FFUQJTTI.js.map → utils-HZUX2SJQ.js.map} +0 -0
- /package/dist/{watch-2O32L6IF.js.map → watch-G4XHPHGA.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/utils.ts
|
|
4
|
-
var VERSION = true ? "2.
|
|
4
|
+
var VERSION = true ? "2.4.0" : "0.0.0-dev";
|
|
5
5
|
function toArrayBuffer(buf) {
|
|
6
6
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
7
7
|
return buf.buffer;
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
sanitizeHref,
|
|
91
91
|
classifyError
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-L5PTGU7H.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
precheckZipSize,
|
|
7
7
|
sanitizeHref,
|
|
8
8
|
toArrayBuffer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L5PTGU7H.js";
|
|
10
10
|
import {
|
|
11
11
|
parsePageRange
|
|
12
12
|
} from "./chunk-MOL7MDBG.js";
|
|
@@ -9768,4 +9768,4 @@ export {
|
|
|
9768
9768
|
cfb/cfb.js:
|
|
9769
9769
|
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|
9770
9770
|
*/
|
|
9771
|
-
//# sourceMappingURL=chunk-
|
|
9771
|
+
//# sourceMappingURL=chunk-SG2Q3XWV.js.map
|
package/dist/cli.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
markdownToHwpx,
|
|
5
5
|
markdownToXlsx,
|
|
6
6
|
parse
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SG2Q3XWV.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION,
|
|
10
10
|
toArrayBuffer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L5PTGU7H.js";
|
|
12
12
|
import "./chunk-MOL7MDBG.js";
|
|
13
13
|
import "./chunk-7FMKAV4P.js";
|
|
14
14
|
import "./chunk-JOGAFNIL.js";
|
|
@@ -137,7 +137,7 @@ async function runParse(files, opts) {
|
|
|
137
137
|
saveImages(absPath);
|
|
138
138
|
}
|
|
139
139
|
} catch (err) {
|
|
140
|
-
const { sanitizeError } = await import("./utils-
|
|
140
|
+
const { sanitizeError } = await import("./utils-HZUX2SJQ.js");
|
|
141
141
|
process.stderr.write(`
|
|
142
142
|
[kordoc] ERROR: ${fileName} \u2014 ${sanitizeError(err)}
|
|
143
143
|
`);
|
|
@@ -221,7 +221,7 @@ program.command("convert <input>").description("\uB9C8\uD06C\uB2E4\uC6B4 \uD30C\
|
|
|
221
221
|
`));
|
|
222
222
|
}
|
|
223
223
|
} catch (err) {
|
|
224
|
-
const { sanitizeError } = await import("./utils-
|
|
224
|
+
const { sanitizeError } = await import("./utils-HZUX2SJQ.js");
|
|
225
225
|
process.stderr.write(` FAIL
|
|
226
226
|
`);
|
|
227
227
|
process.stderr.write(` \u2192 ${sanitizeError(err)}
|
|
@@ -230,7 +230,7 @@ program.command("convert <input>").description("\uB9C8\uD06C\uB2E4\uC6B4 \uD30C\
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
program.command("watch <dir>").description("\uB514\uB809\uD1A0\uB9AC \uAC10\uC2DC \u2014 \uC0C8 \uBB38\uC11C \uC790\uB3D9 \uBCC0\uD658").option("--webhook <url>", "\uACB0\uACFC \uC804\uC1A1 \uC6F9\uD6C5 URL").option("-d, --out-dir <dir>", "\uBCC0\uD658 \uACB0\uACFC \uCD9C\uB825 \uB514\uB809\uD1A0\uB9AC").option("-p, --pages <range>", "\uD398\uC774\uC9C0/\uC139\uC158 \uBC94\uC704").option("--format <type>", "\uCD9C\uB825 \uD615\uC2DD: markdown \uB610\uB294 json", "markdown").option("--silent", "\uC9C4\uD589 \uBA54\uC2DC\uC9C0 \uC228\uAE30\uAE30").action(async (dir, opts) => {
|
|
233
|
-
const { watchDirectory } = await import("./watch-
|
|
233
|
+
const { watchDirectory } = await import("./watch-G4XHPHGA.js");
|
|
234
234
|
await watchDirectory({
|
|
235
235
|
dir,
|
|
236
236
|
outDir: opts.outDir,
|
package/dist/index.cjs
CHANGED
|
@@ -2810,7 +2810,7 @@ var import_jszip2 = __toESM(require("jszip"), 1);
|
|
|
2810
2810
|
var import_xmldom = require("@xmldom/xmldom");
|
|
2811
2811
|
|
|
2812
2812
|
// src/utils.ts
|
|
2813
|
-
var VERSION = true ? "2.
|
|
2813
|
+
var VERSION = true ? "2.4.0" : "0.0.0-dev";
|
|
2814
2814
|
function toArrayBuffer(buf) {
|
|
2815
2815
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
2816
2816
|
return buf.buffer;
|
package/dist/index.js
CHANGED
|
@@ -2790,7 +2790,7 @@ import JSZip2 from "jszip";
|
|
|
2790
2790
|
import { DOMParser } from "@xmldom/xmldom";
|
|
2791
2791
|
|
|
2792
2792
|
// src/utils.ts
|
|
2793
|
-
var VERSION = true ? "2.
|
|
2793
|
+
var VERSION = true ? "2.4.0" : "0.0.0-dev";
|
|
2794
2794
|
function toArrayBuffer(buf) {
|
|
2795
2795
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
2796
2796
|
return buf.buffer;
|
package/dist/mcp.js
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
markdownToHwpx,
|
|
11
11
|
markdownToXlsx,
|
|
12
12
|
parse
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SG2Q3XWV.js";
|
|
14
14
|
import {
|
|
15
15
|
KordocError,
|
|
16
16
|
VERSION,
|
|
17
17
|
sanitizeError,
|
|
18
18
|
toArrayBuffer
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L5PTGU7H.js";
|
|
20
20
|
import "./chunk-MOL7MDBG.js";
|
|
21
21
|
import "./chunk-7FMKAV4P.js";
|
|
22
22
|
import "./chunk-JOGAFNIL.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sanitizeError,
|
|
9
9
|
sanitizeHref,
|
|
10
10
|
toArrayBuffer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L5PTGU7H.js";
|
|
12
12
|
import "./chunk-ZWE3DS7E.js";
|
|
13
13
|
export {
|
|
14
14
|
KordocError,
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
sanitizeHref,
|
|
21
21
|
toArrayBuffer
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=utils-
|
|
23
|
+
//# sourceMappingURL=utils-HZUX2SJQ.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
detectFormat,
|
|
4
4
|
parse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SG2Q3XWV.js";
|
|
6
6
|
import {
|
|
7
7
|
toArrayBuffer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L5PTGU7H.js";
|
|
9
9
|
import "./chunk-MOL7MDBG.js";
|
|
10
10
|
import "./chunk-7FMKAV4P.js";
|
|
11
11
|
import "./chunk-JOGAFNIL.js";
|
|
@@ -129,4 +129,4 @@ async function sendWebhook(url, payload) {
|
|
|
129
129
|
export {
|
|
130
130
|
watchDirectory
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=watch-
|
|
132
|
+
//# sourceMappingURL=watch-G4XHPHGA.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clazic/kordoc",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Parse Korean documents (HWP, HWPX, PDF, XLSX, DOCX) to Markdown",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"commander": "^14.0.3",
|
|
63
63
|
"exceljs": "^4.4.0",
|
|
64
64
|
"jszip": "^3.10.1",
|
|
65
|
+
"pdfjs-dist": "^5.6.205",
|
|
65
66
|
"tesseract.js": "^7.0.0",
|
|
66
67
|
"zod": "^4.3.6"
|
|
67
68
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|