kordoc 3.16.1 → 3.16.2

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 (39) hide show
  1. package/dist/{-YVONYEEN.js → -C4FVXHIP.js} +7 -7
  2. package/dist/{chunk-K4L563FA.js → chunk-4WI7QXEG.js} +2 -2
  3. package/dist/{chunk-VNIQK4AL.cjs → chunk-72LLOLFX.cjs} +2 -2
  4. package/dist/{chunk-VNIQK4AL.cjs.map → chunk-72LLOLFX.cjs.map} +1 -1
  5. package/dist/{chunk-CDFCA37S.js → chunk-E4Y73XRH.js} +3 -3
  6. package/dist/{chunk-QOPY6URE.js → chunk-EJ2ZIYTO.js} +2 -2
  7. package/dist/{chunk-I6T3DKYK.js → chunk-EUEKDZ7O.js} +7 -7
  8. package/dist/{chunk-IY3NX4FT.js → chunk-HECUYZZK.js} +2 -2
  9. package/dist/{chunk-F62GOZFB.js → chunk-IS3IK7UT.js} +2 -2
  10. package/dist/{chunk-7WUTJXKP.js → chunk-WR5LHRXO.js} +3 -3
  11. package/dist/cli.js +12 -12
  12. package/dist/index.cjs +128 -128
  13. package/dist/index.js +2 -2
  14. package/dist/mcp.js +8 -8
  15. package/dist/{parser-B4O7CW5Q.js → parser-CMPNM6ZL.js} +4 -4
  16. package/dist/parser-CMPNM6ZL.js.map +1 -0
  17. package/dist/{parser-BNEAMKUF.js → parser-GWL72XYS.js} +3 -3
  18. package/dist/parser-GWL72XYS.js.map +1 -0
  19. package/dist/{parser-3O2UF6VO.cjs → parser-YVRTKGKO.cjs} +15 -15
  20. package/dist/{parser-3O2UF6VO.cjs.map → parser-YVRTKGKO.cjs.map} +1 -1
  21. package/dist/render-A2LFMJCP.js +10 -0
  22. package/dist/seal-KA4VAV2Z.js +10 -0
  23. package/dist/{watch-RLF5F3TN.js → watch-WLI6K3IR.js} +7 -7
  24. package/package.json +1 -1
  25. package/dist/parser-B4O7CW5Q.js.map +0 -1
  26. package/dist/parser-BNEAMKUF.js.map +0 -1
  27. package/dist/render-QCNMRR7L.js +0 -10
  28. package/dist/seal-REDSMUI5.js +0 -10
  29. /package/dist/{-YVONYEEN.js.map → -C4FVXHIP.js.map} +0 -0
  30. /package/dist/{chunk-K4L563FA.js.map → chunk-4WI7QXEG.js.map} +0 -0
  31. /package/dist/{chunk-CDFCA37S.js.map → chunk-E4Y73XRH.js.map} +0 -0
  32. /package/dist/{chunk-QOPY6URE.js.map → chunk-EJ2ZIYTO.js.map} +0 -0
  33. /package/dist/{chunk-I6T3DKYK.js.map → chunk-EUEKDZ7O.js.map} +0 -0
  34. /package/dist/{chunk-IY3NX4FT.js.map → chunk-HECUYZZK.js.map} +0 -0
  35. /package/dist/{chunk-F62GOZFB.js.map → chunk-IS3IK7UT.js.map} +0 -0
  36. /package/dist/{chunk-7WUTJXKP.js.map → chunk-WR5LHRXO.js.map} +0 -0
  37. /package/dist/{render-QCNMRR7L.js.map → render-A2LFMJCP.js.map} +0 -0
  38. /package/dist/{seal-REDSMUI5.js.map → seal-KA4VAV2Z.js.map} +0 -0
  39. /package/dist/{watch-RLF5F3TN.js.map → watch-WLI6K3IR.js.map} +0 -0
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  sanitizeHref,
20
20
  stripDtd,
21
21
  toArrayBuffer
22
- } from "./chunk-QOPY6URE.js";
22
+ } from "./chunk-EJ2ZIYTO.js";
23
23
  import {
24
24
  parsePageRange
25
25
  } from "./chunk-GE43BE46.js";
@@ -26863,7 +26863,7 @@ async function parseHwp(buffer, options) {
26863
26863
  async function parsePdf(buffer, options) {
26864
26864
  let parsePdfDocument;
26865
26865
  try {
26866
- const mod = await import("./parser-BNEAMKUF.js");
26866
+ const mod = await import("./parser-GWL72XYS.js");
26867
26867
  parsePdfDocument = mod.parsePdfDocument;
26868
26868
  } catch {
26869
26869
  return {
package/dist/mcp.js CHANGED
@@ -11,24 +11,24 @@ import {
11
11
  parse,
12
12
  patchHwp,
13
13
  patchHwpx
14
- } from "./chunk-I6T3DKYK.js";
14
+ } from "./chunk-EUEKDZ7O.js";
15
15
  import {
16
16
  blocksToMarkdown
17
- } from "./chunk-F62GOZFB.js";
17
+ } from "./chunk-IS3IK7UT.js";
18
18
  import {
19
19
  detectFormat,
20
20
  detectZipFormat
21
21
  } from "./chunk-MEPHGCPQ.js";
22
22
  import "./chunk-MOL7MDBG.js";
23
- import "./chunk-7WUTJXKP.js";
24
- import "./chunk-CDFCA37S.js";
25
- import "./chunk-IY3NX4FT.js";
23
+ import "./chunk-WR5LHRXO.js";
24
+ import "./chunk-E4Y73XRH.js";
25
+ import "./chunk-HECUYZZK.js";
26
26
  import {
27
27
  KordocError,
28
28
  VERSION,
29
29
  sanitizeError,
30
30
  toArrayBuffer
31
- } from "./chunk-K4L563FA.js";
31
+ } from "./chunk-4WI7QXEG.js";
32
32
 
33
33
  // src/mcp.ts
34
34
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -199,7 +199,7 @@ server.tool(
199
199
  break;
200
200
  case "pdf":
201
201
  try {
202
- const { extractPdfMetadataOnly } = await import("./parser-B4O7CW5Q.js");
202
+ const { extractPdfMetadataOnly } = await import("./parser-CMPNM6ZL.js");
203
203
  metadata = await extractPdfMetadataOnly(buffer);
204
204
  } catch {
205
205
  metadata = void 0;
@@ -551,7 +551,7 @@ server.tool(
551
551
  }
552
552
  const image = new Uint8Array(readFileSync(imgResolved));
553
553
  const ext = extname(image_path).slice(1).toLowerCase() || "png";
554
- const { placeSealHwpx } = await import("./seal-REDSMUI5.js");
554
+ const { placeSealHwpx } = await import("./seal-KA4VAV2Z.js");
555
555
  const result = await placeSealHwpx(buffer, [{
556
556
  anchor,
557
557
  occurrence,
@@ -4,7 +4,7 @@ import {
4
4
  HEADING_RATIO_H2,
5
5
  HEADING_RATIO_H3,
6
6
  blocksToMarkdown
7
- } from "./chunk-F62GOZFB.js";
7
+ } from "./chunk-IS3IK7UT.js";
8
8
  import {
9
9
  parsePageRange
10
10
  } from "./chunk-MOL7MDBG.js";
@@ -12,7 +12,7 @@ import {
12
12
  KordocError,
13
13
  safeMax,
14
14
  safeMin
15
- } from "./chunk-K4L563FA.js";
15
+ } from "./chunk-4WI7QXEG.js";
16
16
 
17
17
  // src/pdf/line-extract.ts
18
18
  import { OPS } from "pdfjs-dist/legacy/build/pdf.mjs";
@@ -2393,7 +2393,7 @@ function shouldDemoteTable(table) {
2393
2393
  const t = c.text.trim();
2394
2394
  return t.length > 0 && t.length <= 12 && !/[□■◆○●▶ㅇ<>]/.test(t);
2395
2395
  }) && table.cells.slice(1).some((row) => row.some((c) => c.text.trim() !== ""))) return false;
2396
- if (table.rows <= 3 && table.cols <= 3) {
2396
+ if (table.rows <= 3 && table.cols <= 3 && allText.length <= 200) {
2397
2397
  const totalCells2 = table.rows * table.cols;
2398
2398
  const emptyCells2 = totalCells2 - allCells.length;
2399
2399
  if (emptyCells2 >= totalCells2 * 0.3) return true;
@@ -3587,4 +3587,4 @@ export {
3587
3587
  parsePdfDocument,
3588
3588
  removeHeaderFooterBlocks
3589
3589
  };
3590
- //# sourceMappingURL=parser-B4O7CW5Q.js.map
3590
+ //# sourceMappingURL=parser-CMPNM6ZL.js.map