@clazic/kordoc 2.1.3 → 2.1.5

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 CHANGED
@@ -137,7 +137,7 @@ import JSZip2 from "jszip";
137
137
  import { DOMParser } from "@xmldom/xmldom";
138
138
 
139
139
  // src/utils.ts
140
- var VERSION = true ? "2.1.3" : "0.0.0-dev";
140
+ var VERSION = true ? "2.1.5" : "0.0.0-dev";
141
141
  function toArrayBuffer(buf) {
142
142
  if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
143
143
  return buf.buffer;
@@ -469,7 +469,7 @@ var HEADING_RATIO_H3 = 1.15;
469
469
 
470
470
  // src/hwpx/parser.ts
471
471
  init_page_range();
472
- var MAX_DECOMPRESS_SIZE = 100 * 1024 * 1024;
472
+ var MAX_DECOMPRESS_SIZE = 500 * 1024 * 1024;
473
473
  var MAX_ZIP_ENTRIES = 500;
474
474
  function clampSpan(val, max) {
475
475
  return Math.max(1, Math.min(val, max));
@@ -1282,7 +1282,7 @@ function readRecords(data) {
1282
1282
  }
1283
1283
  return records;
1284
1284
  }
1285
- var MAX_DECOMPRESS_SIZE2 = 100 * 1024 * 1024;
1285
+ var MAX_DECOMPRESS_SIZE2 = 500 * 1024 * 1024;
1286
1286
  function decompressStream(data) {
1287
1287
  const opts = { maxOutputLength: MAX_DECOMPRESS_SIZE2 };
1288
1288
  if (data.length >= 2 && data[0] === 120) {
@@ -2116,7 +2116,7 @@ var END_OF_CHAIN = 4294967294;
2116
2116
  var FREE_SECT = 4294967295;
2117
2117
  var MAX_CHAIN_LENGTH = 1e6;
2118
2118
  var MAX_DIR_ENTRIES = 1e5;
2119
- var MAX_STREAM_SIZE = 100 * 1024 * 1024;
2119
+ var MAX_STREAM_SIZE = 500 * 1024 * 1024;
2120
2120
  function parseLenientCfb(data) {
2121
2121
  if (data.length < 512) throw new Error("CFB \uD30C\uC77C\uC774 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4 (\uCD5C\uC18C 512\uBC14\uC774\uD2B8)");
2122
2122
  if (!data.subarray(0, 8).equals(CFB_MAGIC)) throw new Error("CFB \uB9E4\uC9C1 \uBC14\uC774\uD2B8 \uBD88\uC77C\uCE58");
@@ -2295,7 +2295,7 @@ import { createRequire } from "module";
2295
2295
  var require2 = createRequire(import.meta.url);
2296
2296
  var CFB = require2("cfb");
2297
2297
  var MAX_SECTIONS = 100;
2298
- var MAX_TOTAL_DECOMPRESS = 100 * 1024 * 1024;
2298
+ var MAX_TOTAL_DECOMPRESS = 500 * 1024 * 1024;
2299
2299
  function parseHwp5Document(buffer, options) {
2300
2300
  let cfb = null;
2301
2301
  let lenientCfb = null;
@@ -3547,7 +3547,7 @@ g.pdfjsWorker = pdfjsWorker;
3547
3547
  import { getDocument, GlobalWorkerOptions } from "pdfjs-dist/legacy/build/pdf.mjs";
3548
3548
  GlobalWorkerOptions.workerSrc = "";
3549
3549
  var MAX_PAGES = 5e3;
3550
- var MAX_TOTAL_TEXT = 100 * 1024 * 1024;
3550
+ var MAX_TOTAL_TEXT = 500 * 1024 * 1024;
3551
3551
  var PDF_LOAD_TIMEOUT_MS = 3e4;
3552
3552
  async function loadPdfWithTimeout(buffer) {
3553
3553
  const loadingTask = getDocument({
@@ -4498,7 +4498,7 @@ function mergeKoreanLines(text) {
4498
4498
  import JSZip3 from "jszip";
4499
4499
  import { DOMParser as DOMParser2 } from "@xmldom/xmldom";
4500
4500
  var MAX_SHEETS = 100;
4501
- var MAX_DECOMPRESS_SIZE3 = 100 * 1024 * 1024;
4501
+ var MAX_DECOMPRESS_SIZE3 = 500 * 1024 * 1024;
4502
4502
  var MAX_ROWS2 = 1e4;
4503
4503
  var MAX_COLS2 = 200;
4504
4504
  function cleanNumericValue(raw) {
@@ -4778,7 +4778,7 @@ async function parseXlsxDocument(buffer, options) {
4778
4778
  // src/docx/parser.ts
4779
4779
  import JSZip4 from "jszip";
4780
4780
  import { DOMParser as DOMParser3 } from "@xmldom/xmldom";
4781
- var MAX_DECOMPRESS_SIZE4 = 100 * 1024 * 1024;
4781
+ var MAX_DECOMPRESS_SIZE4 = 500 * 1024 * 1024;
4782
4782
  function getChildElements(parent, localName) {
4783
4783
  const result = [];
4784
4784
  const children = parent.childNodes;