@clazic/kordoc 2.4.5 → 2.4.6
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-CG3DV7QG.js → chunk-A2FNPGBS.js} +2 -2
- package/dist/{chunk-ATB6T3SG.js → chunk-L2CLLZ4S.js} +3 -2
- package/dist/chunk-L2CLLZ4S.js.map +1 -0
- package/dist/cli.js +5 -5
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +2 -2
- package/dist/{utils-LG2ALGSE.js → utils-RQ4S2RVN.js} +2 -2
- package/dist/{watch-Z3CENX4H.js → watch-3EIG5EVL.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ATB6T3SG.js.map +0 -1
- /package/dist/{chunk-CG3DV7QG.js.map → chunk-A2FNPGBS.js.map} +0 -0
- /package/dist/{utils-LG2ALGSE.js.map → utils-RQ4S2RVN.js.map} +0 -0
- /package/dist/{watch-Z3CENX4H.js.map → watch-3EIG5EVL.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -2820,7 +2820,7 @@ import JSZip2 from "jszip";
|
|
|
2820
2820
|
import { DOMParser } from "@xmldom/xmldom";
|
|
2821
2821
|
|
|
2822
2822
|
// src/utils.ts
|
|
2823
|
-
var VERSION = true ? "2.4.
|
|
2823
|
+
var VERSION = true ? "2.4.6" : "0.0.0-dev";
|
|
2824
2824
|
function toArrayBuffer(buf) {
|
|
2825
2825
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
2826
2826
|
return buf.buffer;
|
|
@@ -6426,6 +6426,7 @@ async function parsePdfDocument(buffer, options) {
|
|
|
6426
6426
|
} catch {
|
|
6427
6427
|
}
|
|
6428
6428
|
}
|
|
6429
|
+
allOcrBlocks.sort((a, b) => (a.pageNumber ?? 0) - (b.pageNumber ?? 0));
|
|
6429
6430
|
ocrBlocks = allOcrBlocks;
|
|
6430
6431
|
} else {
|
|
6431
6432
|
try {
|