ooxml-core 1.27.2 → 1.28.0
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/{PptxHandler-WRJXTPGV.mjs → PptxHandler-AFVUHNJO.mjs} +3 -3
- package/dist/PptxHandler-EZW4YAWL.mjs +4 -0
- package/dist/{PptxHandler-FRQKHTCM.cjs → PptxHandler-WI23AJHM.cjs} +3 -3
- package/dist/{PresentationBuilder-POXKHTV7.mjs → PresentationBuilder-DYEHCRHX.mjs} +2 -2
- package/dist/{PresentationBuilder-YO5YOTA3.cjs → PresentationBuilder-KUNPJTRL.cjs} +5 -5
- package/dist/{PresentationBuilder-LWR5X3JA.mjs → PresentationBuilder-WGTZPVOG.mjs} +3 -3
- package/dist/automation/index.cjs +16 -7
- package/dist/automation/index.mjs +16 -7
- package/dist/chart/index.cjs +16 -7
- package/dist/chart/index.mjs +16 -7
- package/dist/{chunk-36TR3PER.cjs → chunk-A2PC3CBO.cjs} +28 -7
- package/dist/{chunk-XW4XB6P4.mjs → chunk-D7CAHL6J.mjs} +1 -1
- package/dist/{chunk-JJ37PCNR.mjs → chunk-EYCM7RVL.mjs} +28 -7
- package/dist/{chunk-K6DNX3YC.cjs → chunk-IQ7CB7BJ.cjs} +1581 -1232
- package/dist/{chunk-G67MARDL.mjs → chunk-LGSBK3BV.mjs} +258 -258
- package/dist/{chunk-I57SMSU6.mjs → chunk-LNPVKKR5.mjs} +28 -7
- package/dist/{chunk-RNUYMB73.mjs → chunk-N5ROEHEQ.mjs} +509 -160
- package/dist/{chunk-TIQWSSGI.mjs → chunk-RCEHCVLC.mjs} +1 -1
- package/dist/{chunk-3VIPI6IA.mjs → chunk-V33RUK4D.mjs} +5 -5
- package/dist/{chunk-6LCBTFNL.mjs → chunk-YNGMSNF4.mjs} +528 -159
- package/dist/docx/embedded.cjs +16 -7
- package/dist/docx/embedded.mjs +16 -7
- package/dist/docx/index.cjs +16 -7
- package/dist/docx/index.mjs +16 -7
- package/dist/docx/load/index.cjs +16 -7
- package/dist/docx/load/index.mjs +16 -7
- package/dist/index.cjs +16 -7
- package/dist/index.mjs +16 -7
- package/dist/opc/index.cjs +16 -7
- package/dist/opc/index.mjs +16 -7
- package/dist/opc/zip-limits.d.ts +8 -1
- package/dist/opc/zip-limits.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +807 -418
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -6
- package/dist/pptx/chunks/{index-D_d4NTVP.d.ts → index-0slnMhMO.d.ts} +126 -10
- package/dist/pptx/chunks/index-0slnMhMO.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-CdRlUz-v.d.ts → index-DP-R2qY1.d.ts} +3 -3
- package/dist/pptx/chunks/{index-CdRlUz-v.d.ts.map → index-DP-R2qY1.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-lwMA6pP5.d.ts → index-OQwOyNYK.d.ts} +4 -4
- package/dist/pptx/chunks/{index-lwMA6pP5.d.ts.map → index-OQwOyNYK.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CNfUj45U.d.ts → text-operations-dyvh8gyE.d.ts} +23 -1
- package/dist/pptx/chunks/{text-operations-CNfUj45U.d.ts.map → text-operations-dyvh8gyE.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +632 -246
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +5 -5
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +3 -3
- package/dist/pptx/editor/render/find-replace.cjs +14 -14
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +8 -8
- package/dist/pptx/editor/render/slide-operations.mjs +2 -2
- package/dist/pptx/index.cjs +1047 -639
- package/dist/pptx/index.d.ts +5 -5
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/signature-node/index.cjs +28 -7
- package/dist/pptx/signature-node/index.mjs +2 -2
- package/dist/visio/index.cjs +14 -6
- package/dist/visio/index.mjs +14 -6
- package/dist/visio/ui/index.cjs +14 -6
- package/dist/visio/ui/index.mjs +14 -6
- package/dist/xlsx/index.cjs +14 -6
- package/dist/xlsx/index.mjs +14 -6
- package/dist/xlsx/load/index.cjs +14 -6
- package/dist/xlsx/load/index.mjs +14 -6
- package/dist/xlsx/ui/index.cjs +14 -6
- package/dist/xlsx/ui/index.mjs +14 -6
- package/package.json +5 -5
- package/dist/PptxHandler-RETSKQ5E.mjs +0 -4
- package/dist/pptx/chunks/index-D_d4NTVP.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XMLDSIG_NS, ENTERPRISE_TRUST_ROOTS_PEM_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, OPC_RELATIONSHIP_TRANSFORM, SUPPORTED_XML_CANON_TRANSFORMS, DIGEST_ALGORITHM_TO_HASH, resolveReferenceUriToPart, PPTX_VIEWER_MANIFEST_NS, openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, extractAllTagText, extractFirstTagText, extractTagAttribute, computeDetailStatus, computeVerificationStatus, DIGITAL_SIGNATURE_REL_TYPE, normalizePartPath, escapeXmlAttr, escapeXmlText, isValidBase64 } from '../../chunk-
|
|
2
|
-
export { DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, OPC_RELATIONSHIP_TRANSFORM, PPTX_VIEWER_MANIFEST_NS, SUPPORTED_XML_CANON_TRANSFORMS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, computeDetailStatus, computeDigestBase64 as computeDigestBase64WebCrypto, computeVerificationStatus, escapeXmlAttr, escapeXmlText, extractAllTagText, extractFirstTagText, extractTagAttribute, isValidBase64, normalizePartPath, resolveReferenceUriToPart } from '../../chunk-
|
|
1
|
+
import { XMLDSIG_NS, ENTERPRISE_TRUST_ROOTS_PEM_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, OPC_RELATIONSHIP_TRANSFORM, SUPPORTED_XML_CANON_TRANSFORMS, DIGEST_ALGORITHM_TO_HASH, resolveReferenceUriToPart, PPTX_VIEWER_MANIFEST_NS, openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, extractAllTagText, extractFirstTagText, extractTagAttribute, computeDetailStatus, computeVerificationStatus, DIGITAL_SIGNATURE_REL_TYPE, normalizePartPath, escapeXmlAttr, escapeXmlText, isValidBase64 } from '../../chunk-EYCM7RVL.mjs';
|
|
2
|
+
export { DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, OPC_RELATIONSHIP_TRANSFORM, PPTX_VIEWER_MANIFEST_NS, SUPPORTED_XML_CANON_TRANSFORMS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, computeDetailStatus, computeDigestBase64 as computeDigestBase64WebCrypto, computeVerificationStatus, escapeXmlAttr, escapeXmlText, extractAllTagText, extractFirstTagText, extractTagAttribute, isValidBase64, normalizePartPath, resolveReferenceUriToPart } from '../../chunk-EYCM7RVL.mjs';
|
|
3
3
|
import '../../chunk-7P6ASYW6.mjs';
|
|
4
4
|
import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
|
|
5
5
|
import { SignedXml } from 'xml-crypto';
|
package/dist/visio/index.cjs
CHANGED
|
@@ -10398,11 +10398,14 @@ var ZipLimitError = class extends Error {
|
|
|
10398
10398
|
limit;
|
|
10399
10399
|
/** The check that failed (absent when the error was built without one). */
|
|
10400
10400
|
kind;
|
|
10401
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
10402
|
+
actual;
|
|
10401
10403
|
constructor(message, details) {
|
|
10402
10404
|
super(message);
|
|
10403
10405
|
this.name = "ZipLimitError";
|
|
10404
10406
|
this.limit = details.limit;
|
|
10405
10407
|
this.kind = details.kind;
|
|
10408
|
+
this.actual = details.actual;
|
|
10406
10409
|
}
|
|
10407
10410
|
};
|
|
10408
10411
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -10425,7 +10428,7 @@ function resolveLimits(limits) {
|
|
|
10425
10428
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
10426
10429
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
10427
10430
|
label: limits.label ?? "ZIP",
|
|
10428
|
-
fail: (message, limit3, kind) => create2 ? create2(message, { limit: limit3, kind }) : new ZipLimitError(message, { limit: limit3, kind })
|
|
10431
|
+
fail: (message, limit3, kind, actual) => create2 ? create2(message, { limit: limit3, kind, actual }) : new ZipLimitError(message, { limit: limit3, kind, actual })
|
|
10429
10432
|
};
|
|
10430
10433
|
}
|
|
10431
10434
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -10480,7 +10483,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
10480
10483
|
r.fail(
|
|
10481
10484
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
10482
10485
|
r.maxEntryBytes,
|
|
10483
|
-
size3 > declared ? "declaredSize" : "maxEntryBytes"
|
|
10486
|
+
size3 > declared ? "declaredSize" : "maxEntryBytes",
|
|
10487
|
+
size3
|
|
10484
10488
|
)
|
|
10485
10489
|
);
|
|
10486
10490
|
if (alreadyRead + size3 > r.maxTotalBytes)
|
|
@@ -10488,7 +10492,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
10488
10492
|
r.fail(
|
|
10489
10493
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
10490
10494
|
r.maxTotalBytes,
|
|
10491
|
-
"maxTotalBytes"
|
|
10495
|
+
"maxTotalBytes",
|
|
10496
|
+
alreadyRead + size3
|
|
10492
10497
|
)
|
|
10493
10498
|
);
|
|
10494
10499
|
queue.push(chunk);
|
|
@@ -10535,7 +10540,8 @@ function guardZip(zip, limits = {}) {
|
|
|
10535
10540
|
throw r.fail(
|
|
10536
10541
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
10537
10542
|
r.maxEntries,
|
|
10538
|
-
"maxEntries"
|
|
10543
|
+
"maxEntries",
|
|
10544
|
+
entries.length
|
|
10539
10545
|
);
|
|
10540
10546
|
let declared = 0;
|
|
10541
10547
|
for (const entry3 of entries) {
|
|
@@ -10548,7 +10554,8 @@ function guardZip(zip, limits = {}) {
|
|
|
10548
10554
|
throw r.fail(
|
|
10549
10555
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
10550
10556
|
r.maxEntryBytes,
|
|
10551
|
-
"maxEntryBytes"
|
|
10557
|
+
"maxEntryBytes",
|
|
10558
|
+
size3
|
|
10552
10559
|
);
|
|
10553
10560
|
declared += size3;
|
|
10554
10561
|
}
|
|
@@ -10556,7 +10563,8 @@ function guardZip(zip, limits = {}) {
|
|
|
10556
10563
|
throw r.fail(
|
|
10557
10564
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
10558
10565
|
r.maxTotalBytes,
|
|
10559
|
-
"maxTotalBytes"
|
|
10566
|
+
"maxTotalBytes",
|
|
10567
|
+
declared
|
|
10560
10568
|
);
|
|
10561
10569
|
const produced = /* @__PURE__ */ new Map();
|
|
10562
10570
|
let total = 0;
|
package/dist/visio/index.mjs
CHANGED
|
@@ -10392,11 +10392,14 @@ var ZipLimitError = class extends Error {
|
|
|
10392
10392
|
limit;
|
|
10393
10393
|
/** The check that failed (absent when the error was built without one). */
|
|
10394
10394
|
kind;
|
|
10395
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
10396
|
+
actual;
|
|
10395
10397
|
constructor(message, details) {
|
|
10396
10398
|
super(message);
|
|
10397
10399
|
this.name = "ZipLimitError";
|
|
10398
10400
|
this.limit = details.limit;
|
|
10399
10401
|
this.kind = details.kind;
|
|
10402
|
+
this.actual = details.actual;
|
|
10400
10403
|
}
|
|
10401
10404
|
};
|
|
10402
10405
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -10419,7 +10422,7 @@ function resolveLimits(limits) {
|
|
|
10419
10422
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
10420
10423
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
10421
10424
|
label: limits.label ?? "ZIP",
|
|
10422
|
-
fail: (message, limit3, kind) => create2 ? create2(message, { limit: limit3, kind }) : new ZipLimitError(message, { limit: limit3, kind })
|
|
10425
|
+
fail: (message, limit3, kind, actual) => create2 ? create2(message, { limit: limit3, kind, actual }) : new ZipLimitError(message, { limit: limit3, kind, actual })
|
|
10423
10426
|
};
|
|
10424
10427
|
}
|
|
10425
10428
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -10474,7 +10477,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
10474
10477
|
r.fail(
|
|
10475
10478
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
10476
10479
|
r.maxEntryBytes,
|
|
10477
|
-
size3 > declared ? "declaredSize" : "maxEntryBytes"
|
|
10480
|
+
size3 > declared ? "declaredSize" : "maxEntryBytes",
|
|
10481
|
+
size3
|
|
10478
10482
|
)
|
|
10479
10483
|
);
|
|
10480
10484
|
if (alreadyRead + size3 > r.maxTotalBytes)
|
|
@@ -10482,7 +10486,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
10482
10486
|
r.fail(
|
|
10483
10487
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
10484
10488
|
r.maxTotalBytes,
|
|
10485
|
-
"maxTotalBytes"
|
|
10489
|
+
"maxTotalBytes",
|
|
10490
|
+
alreadyRead + size3
|
|
10486
10491
|
)
|
|
10487
10492
|
);
|
|
10488
10493
|
queue.push(chunk);
|
|
@@ -10529,7 +10534,8 @@ function guardZip(zip, limits = {}) {
|
|
|
10529
10534
|
throw r.fail(
|
|
10530
10535
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
10531
10536
|
r.maxEntries,
|
|
10532
|
-
"maxEntries"
|
|
10537
|
+
"maxEntries",
|
|
10538
|
+
entries.length
|
|
10533
10539
|
);
|
|
10534
10540
|
let declared = 0;
|
|
10535
10541
|
for (const entry3 of entries) {
|
|
@@ -10542,7 +10548,8 @@ function guardZip(zip, limits = {}) {
|
|
|
10542
10548
|
throw r.fail(
|
|
10543
10549
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
10544
10550
|
r.maxEntryBytes,
|
|
10545
|
-
"maxEntryBytes"
|
|
10551
|
+
"maxEntryBytes",
|
|
10552
|
+
size3
|
|
10546
10553
|
);
|
|
10547
10554
|
declared += size3;
|
|
10548
10555
|
}
|
|
@@ -10550,7 +10557,8 @@ function guardZip(zip, limits = {}) {
|
|
|
10550
10557
|
throw r.fail(
|
|
10551
10558
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
10552
10559
|
r.maxTotalBytes,
|
|
10553
|
-
"maxTotalBytes"
|
|
10560
|
+
"maxTotalBytes",
|
|
10561
|
+
declared
|
|
10554
10562
|
);
|
|
10555
10563
|
const produced = /* @__PURE__ */ new Map();
|
|
10556
10564
|
let total = 0;
|
package/dist/visio/ui/index.cjs
CHANGED
|
@@ -13545,11 +13545,14 @@ var ZipLimitError = class extends Error {
|
|
|
13545
13545
|
limit;
|
|
13546
13546
|
/** The check that failed (absent when the error was built without one). */
|
|
13547
13547
|
kind;
|
|
13548
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
13549
|
+
actual;
|
|
13548
13550
|
constructor(message, details) {
|
|
13549
13551
|
super(message);
|
|
13550
13552
|
this.name = "ZipLimitError";
|
|
13551
13553
|
this.limit = details.limit;
|
|
13552
13554
|
this.kind = details.kind;
|
|
13555
|
+
this.actual = details.actual;
|
|
13553
13556
|
}
|
|
13554
13557
|
};
|
|
13555
13558
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -13572,7 +13575,7 @@ function resolveLimits(limits) {
|
|
|
13572
13575
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
13573
13576
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
13574
13577
|
label: limits.label ?? "ZIP",
|
|
13575
|
-
fail: (message, limit2, kind) => create2 ? create2(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
13578
|
+
fail: (message, limit2, kind, actual) => create2 ? create2(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
13576
13579
|
};
|
|
13577
13580
|
}
|
|
13578
13581
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -13627,7 +13630,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
13627
13630
|
r.fail(
|
|
13628
13631
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
13629
13632
|
r.maxEntryBytes,
|
|
13630
|
-
size3 > declared ? "declaredSize" : "maxEntryBytes"
|
|
13633
|
+
size3 > declared ? "declaredSize" : "maxEntryBytes",
|
|
13634
|
+
size3
|
|
13631
13635
|
)
|
|
13632
13636
|
);
|
|
13633
13637
|
if (alreadyRead + size3 > r.maxTotalBytes)
|
|
@@ -13635,7 +13639,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
13635
13639
|
r.fail(
|
|
13636
13640
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
13637
13641
|
r.maxTotalBytes,
|
|
13638
|
-
"maxTotalBytes"
|
|
13642
|
+
"maxTotalBytes",
|
|
13643
|
+
alreadyRead + size3
|
|
13639
13644
|
)
|
|
13640
13645
|
);
|
|
13641
13646
|
queue.push(chunk);
|
|
@@ -13682,7 +13687,8 @@ function guardZip(zip, limits = {}) {
|
|
|
13682
13687
|
throw r.fail(
|
|
13683
13688
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
13684
13689
|
r.maxEntries,
|
|
13685
|
-
"maxEntries"
|
|
13690
|
+
"maxEntries",
|
|
13691
|
+
entries.length
|
|
13686
13692
|
);
|
|
13687
13693
|
let declared = 0;
|
|
13688
13694
|
for (const entry3 of entries) {
|
|
@@ -13695,7 +13701,8 @@ function guardZip(zip, limits = {}) {
|
|
|
13695
13701
|
throw r.fail(
|
|
13696
13702
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
13697
13703
|
r.maxEntryBytes,
|
|
13698
|
-
"maxEntryBytes"
|
|
13704
|
+
"maxEntryBytes",
|
|
13705
|
+
size3
|
|
13699
13706
|
);
|
|
13700
13707
|
declared += size3;
|
|
13701
13708
|
}
|
|
@@ -13703,7 +13710,8 @@ function guardZip(zip, limits = {}) {
|
|
|
13703
13710
|
throw r.fail(
|
|
13704
13711
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
13705
13712
|
r.maxTotalBytes,
|
|
13706
|
-
"maxTotalBytes"
|
|
13713
|
+
"maxTotalBytes",
|
|
13714
|
+
declared
|
|
13707
13715
|
);
|
|
13708
13716
|
const produced = /* @__PURE__ */ new Map();
|
|
13709
13717
|
let total = 0;
|
package/dist/visio/ui/index.mjs
CHANGED
|
@@ -13539,11 +13539,14 @@ var ZipLimitError = class extends Error {
|
|
|
13539
13539
|
limit;
|
|
13540
13540
|
/** The check that failed (absent when the error was built without one). */
|
|
13541
13541
|
kind;
|
|
13542
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
13543
|
+
actual;
|
|
13542
13544
|
constructor(message, details) {
|
|
13543
13545
|
super(message);
|
|
13544
13546
|
this.name = "ZipLimitError";
|
|
13545
13547
|
this.limit = details.limit;
|
|
13546
13548
|
this.kind = details.kind;
|
|
13549
|
+
this.actual = details.actual;
|
|
13547
13550
|
}
|
|
13548
13551
|
};
|
|
13549
13552
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -13566,7 +13569,7 @@ function resolveLimits(limits) {
|
|
|
13566
13569
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
13567
13570
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
13568
13571
|
label: limits.label ?? "ZIP",
|
|
13569
|
-
fail: (message, limit2, kind) => create2 ? create2(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
13572
|
+
fail: (message, limit2, kind, actual) => create2 ? create2(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
13570
13573
|
};
|
|
13571
13574
|
}
|
|
13572
13575
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -13621,7 +13624,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
13621
13624
|
r.fail(
|
|
13622
13625
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
13623
13626
|
r.maxEntryBytes,
|
|
13624
|
-
size3 > declared ? "declaredSize" : "maxEntryBytes"
|
|
13627
|
+
size3 > declared ? "declaredSize" : "maxEntryBytes",
|
|
13628
|
+
size3
|
|
13625
13629
|
)
|
|
13626
13630
|
);
|
|
13627
13631
|
if (alreadyRead + size3 > r.maxTotalBytes)
|
|
@@ -13629,7 +13633,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
13629
13633
|
r.fail(
|
|
13630
13634
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
13631
13635
|
r.maxTotalBytes,
|
|
13632
|
-
"maxTotalBytes"
|
|
13636
|
+
"maxTotalBytes",
|
|
13637
|
+
alreadyRead + size3
|
|
13633
13638
|
)
|
|
13634
13639
|
);
|
|
13635
13640
|
queue.push(chunk);
|
|
@@ -13676,7 +13681,8 @@ function guardZip(zip, limits = {}) {
|
|
|
13676
13681
|
throw r.fail(
|
|
13677
13682
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
13678
13683
|
r.maxEntries,
|
|
13679
|
-
"maxEntries"
|
|
13684
|
+
"maxEntries",
|
|
13685
|
+
entries.length
|
|
13680
13686
|
);
|
|
13681
13687
|
let declared = 0;
|
|
13682
13688
|
for (const entry3 of entries) {
|
|
@@ -13689,7 +13695,8 @@ function guardZip(zip, limits = {}) {
|
|
|
13689
13695
|
throw r.fail(
|
|
13690
13696
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
13691
13697
|
r.maxEntryBytes,
|
|
13692
|
-
"maxEntryBytes"
|
|
13698
|
+
"maxEntryBytes",
|
|
13699
|
+
size3
|
|
13693
13700
|
);
|
|
13694
13701
|
declared += size3;
|
|
13695
13702
|
}
|
|
@@ -13697,7 +13704,8 @@ function guardZip(zip, limits = {}) {
|
|
|
13697
13704
|
throw r.fail(
|
|
13698
13705
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
13699
13706
|
r.maxTotalBytes,
|
|
13700
|
-
"maxTotalBytes"
|
|
13707
|
+
"maxTotalBytes",
|
|
13708
|
+
declared
|
|
13701
13709
|
);
|
|
13702
13710
|
const produced = /* @__PURE__ */ new Map();
|
|
13703
13711
|
let total = 0;
|
package/dist/xlsx/index.cjs
CHANGED
|
@@ -16897,11 +16897,14 @@ var ZipLimitError = class extends Error {
|
|
|
16897
16897
|
limit;
|
|
16898
16898
|
/** The check that failed (absent when the error was built without one). */
|
|
16899
16899
|
kind;
|
|
16900
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
16901
|
+
actual;
|
|
16900
16902
|
constructor(message, details) {
|
|
16901
16903
|
super(message);
|
|
16902
16904
|
this.name = "ZipLimitError";
|
|
16903
16905
|
this.limit = details.limit;
|
|
16904
16906
|
this.kind = details.kind;
|
|
16907
|
+
this.actual = details.actual;
|
|
16905
16908
|
}
|
|
16906
16909
|
};
|
|
16907
16910
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -16924,7 +16927,7 @@ function resolveLimits(limits) {
|
|
|
16924
16927
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
16925
16928
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
16926
16929
|
label: limits.label ?? "ZIP",
|
|
16927
|
-
fail: (message, limit2, kind) => create ? create(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
16930
|
+
fail: (message, limit2, kind, actual) => create ? create(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
16928
16931
|
};
|
|
16929
16932
|
}
|
|
16930
16933
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -16979,7 +16982,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
16979
16982
|
r.fail(
|
|
16980
16983
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
16981
16984
|
r.maxEntryBytes,
|
|
16982
|
-
size > declared ? "declaredSize" : "maxEntryBytes"
|
|
16985
|
+
size > declared ? "declaredSize" : "maxEntryBytes",
|
|
16986
|
+
size
|
|
16983
16987
|
)
|
|
16984
16988
|
);
|
|
16985
16989
|
if (alreadyRead + size > r.maxTotalBytes)
|
|
@@ -16987,7 +16991,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
16987
16991
|
r.fail(
|
|
16988
16992
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
16989
16993
|
r.maxTotalBytes,
|
|
16990
|
-
"maxTotalBytes"
|
|
16994
|
+
"maxTotalBytes",
|
|
16995
|
+
alreadyRead + size
|
|
16991
16996
|
)
|
|
16992
16997
|
);
|
|
16993
16998
|
queue.push(chunk);
|
|
@@ -17034,7 +17039,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17034
17039
|
throw r.fail(
|
|
17035
17040
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
17036
17041
|
r.maxEntries,
|
|
17037
|
-
"maxEntries"
|
|
17042
|
+
"maxEntries",
|
|
17043
|
+
entries.length
|
|
17038
17044
|
);
|
|
17039
17045
|
let declared = 0;
|
|
17040
17046
|
for (const entry3 of entries) {
|
|
@@ -17047,7 +17053,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17047
17053
|
throw r.fail(
|
|
17048
17054
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
17049
17055
|
r.maxEntryBytes,
|
|
17050
|
-
"maxEntryBytes"
|
|
17056
|
+
"maxEntryBytes",
|
|
17057
|
+
size
|
|
17051
17058
|
);
|
|
17052
17059
|
declared += size;
|
|
17053
17060
|
}
|
|
@@ -17055,7 +17062,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17055
17062
|
throw r.fail(
|
|
17056
17063
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
17057
17064
|
r.maxTotalBytes,
|
|
17058
|
-
"maxTotalBytes"
|
|
17065
|
+
"maxTotalBytes",
|
|
17066
|
+
declared
|
|
17059
17067
|
);
|
|
17060
17068
|
const produced = /* @__PURE__ */ new Map();
|
|
17061
17069
|
let total2 = 0;
|
package/dist/xlsx/index.mjs
CHANGED
|
@@ -16891,11 +16891,14 @@ var ZipLimitError = class extends Error {
|
|
|
16891
16891
|
limit;
|
|
16892
16892
|
/** The check that failed (absent when the error was built without one). */
|
|
16893
16893
|
kind;
|
|
16894
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
16895
|
+
actual;
|
|
16894
16896
|
constructor(message, details) {
|
|
16895
16897
|
super(message);
|
|
16896
16898
|
this.name = "ZipLimitError";
|
|
16897
16899
|
this.limit = details.limit;
|
|
16898
16900
|
this.kind = details.kind;
|
|
16901
|
+
this.actual = details.actual;
|
|
16899
16902
|
}
|
|
16900
16903
|
};
|
|
16901
16904
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -16918,7 +16921,7 @@ function resolveLimits(limits) {
|
|
|
16918
16921
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
16919
16922
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
16920
16923
|
label: limits.label ?? "ZIP",
|
|
16921
|
-
fail: (message, limit2, kind) => create ? create(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
16924
|
+
fail: (message, limit2, kind, actual) => create ? create(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
16922
16925
|
};
|
|
16923
16926
|
}
|
|
16924
16927
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -16973,7 +16976,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
16973
16976
|
r.fail(
|
|
16974
16977
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
16975
16978
|
r.maxEntryBytes,
|
|
16976
|
-
size > declared ? "declaredSize" : "maxEntryBytes"
|
|
16979
|
+
size > declared ? "declaredSize" : "maxEntryBytes",
|
|
16980
|
+
size
|
|
16977
16981
|
)
|
|
16978
16982
|
);
|
|
16979
16983
|
if (alreadyRead + size > r.maxTotalBytes)
|
|
@@ -16981,7 +16985,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
16981
16985
|
r.fail(
|
|
16982
16986
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
16983
16987
|
r.maxTotalBytes,
|
|
16984
|
-
"maxTotalBytes"
|
|
16988
|
+
"maxTotalBytes",
|
|
16989
|
+
alreadyRead + size
|
|
16985
16990
|
)
|
|
16986
16991
|
);
|
|
16987
16992
|
queue.push(chunk);
|
|
@@ -17028,7 +17033,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17028
17033
|
throw r.fail(
|
|
17029
17034
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
17030
17035
|
r.maxEntries,
|
|
17031
|
-
"maxEntries"
|
|
17036
|
+
"maxEntries",
|
|
17037
|
+
entries.length
|
|
17032
17038
|
);
|
|
17033
17039
|
let declared = 0;
|
|
17034
17040
|
for (const entry3 of entries) {
|
|
@@ -17041,7 +17047,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17041
17047
|
throw r.fail(
|
|
17042
17048
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
17043
17049
|
r.maxEntryBytes,
|
|
17044
|
-
"maxEntryBytes"
|
|
17050
|
+
"maxEntryBytes",
|
|
17051
|
+
size
|
|
17045
17052
|
);
|
|
17046
17053
|
declared += size;
|
|
17047
17054
|
}
|
|
@@ -17049,7 +17056,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17049
17056
|
throw r.fail(
|
|
17050
17057
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
17051
17058
|
r.maxTotalBytes,
|
|
17052
|
-
"maxTotalBytes"
|
|
17059
|
+
"maxTotalBytes",
|
|
17060
|
+
declared
|
|
17053
17061
|
);
|
|
17054
17062
|
const produced = /* @__PURE__ */ new Map();
|
|
17055
17063
|
let total2 = 0;
|
package/dist/xlsx/load/index.cjs
CHANGED
|
@@ -3897,11 +3897,14 @@ var ZipLimitError = class extends Error {
|
|
|
3897
3897
|
limit;
|
|
3898
3898
|
/** The check that failed (absent when the error was built without one). */
|
|
3899
3899
|
kind;
|
|
3900
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
3901
|
+
actual;
|
|
3900
3902
|
constructor(message, details) {
|
|
3901
3903
|
super(message);
|
|
3902
3904
|
this.name = "ZipLimitError";
|
|
3903
3905
|
this.limit = details.limit;
|
|
3904
3906
|
this.kind = details.kind;
|
|
3907
|
+
this.actual = details.actual;
|
|
3905
3908
|
}
|
|
3906
3909
|
};
|
|
3907
3910
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -3924,7 +3927,7 @@ function resolveLimits(limits) {
|
|
|
3924
3927
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
3925
3928
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
3926
3929
|
label: limits.label ?? "ZIP",
|
|
3927
|
-
fail: (message, limit2, kind) => create ? create(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
3930
|
+
fail: (message, limit2, kind, actual) => create ? create(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
3928
3931
|
};
|
|
3929
3932
|
}
|
|
3930
3933
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -3979,7 +3982,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
3979
3982
|
r.fail(
|
|
3980
3983
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
3981
3984
|
r.maxEntryBytes,
|
|
3982
|
-
size > declared ? "declaredSize" : "maxEntryBytes"
|
|
3985
|
+
size > declared ? "declaredSize" : "maxEntryBytes",
|
|
3986
|
+
size
|
|
3983
3987
|
)
|
|
3984
3988
|
);
|
|
3985
3989
|
if (alreadyRead + size > r.maxTotalBytes)
|
|
@@ -3987,7 +3991,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
3987
3991
|
r.fail(
|
|
3988
3992
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
3989
3993
|
r.maxTotalBytes,
|
|
3990
|
-
"maxTotalBytes"
|
|
3994
|
+
"maxTotalBytes",
|
|
3995
|
+
alreadyRead + size
|
|
3991
3996
|
)
|
|
3992
3997
|
);
|
|
3993
3998
|
queue.push(chunk);
|
|
@@ -4034,7 +4039,8 @@ function guardZip(zip, limits = {}) {
|
|
|
4034
4039
|
throw r.fail(
|
|
4035
4040
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
4036
4041
|
r.maxEntries,
|
|
4037
|
-
"maxEntries"
|
|
4042
|
+
"maxEntries",
|
|
4043
|
+
entries.length
|
|
4038
4044
|
);
|
|
4039
4045
|
let declared = 0;
|
|
4040
4046
|
for (const entry3 of entries) {
|
|
@@ -4047,7 +4053,8 @@ function guardZip(zip, limits = {}) {
|
|
|
4047
4053
|
throw r.fail(
|
|
4048
4054
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
4049
4055
|
r.maxEntryBytes,
|
|
4050
|
-
"maxEntryBytes"
|
|
4056
|
+
"maxEntryBytes",
|
|
4057
|
+
size
|
|
4051
4058
|
);
|
|
4052
4059
|
declared += size;
|
|
4053
4060
|
}
|
|
@@ -4055,7 +4062,8 @@ function guardZip(zip, limits = {}) {
|
|
|
4055
4062
|
throw r.fail(
|
|
4056
4063
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
4057
4064
|
r.maxTotalBytes,
|
|
4058
|
-
"maxTotalBytes"
|
|
4065
|
+
"maxTotalBytes",
|
|
4066
|
+
declared
|
|
4059
4067
|
);
|
|
4060
4068
|
const produced = /* @__PURE__ */ new Map();
|
|
4061
4069
|
let total2 = 0;
|
package/dist/xlsx/load/index.mjs
CHANGED
|
@@ -3891,11 +3891,14 @@ var ZipLimitError = class extends Error {
|
|
|
3891
3891
|
limit;
|
|
3892
3892
|
/** The check that failed (absent when the error was built without one). */
|
|
3893
3893
|
kind;
|
|
3894
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
3895
|
+
actual;
|
|
3894
3896
|
constructor(message, details) {
|
|
3895
3897
|
super(message);
|
|
3896
3898
|
this.name = "ZipLimitError";
|
|
3897
3899
|
this.limit = details.limit;
|
|
3898
3900
|
this.kind = details.kind;
|
|
3901
|
+
this.actual = details.actual;
|
|
3899
3902
|
}
|
|
3900
3903
|
};
|
|
3901
3904
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -3918,7 +3921,7 @@ function resolveLimits(limits) {
|
|
|
3918
3921
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
3919
3922
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
3920
3923
|
label: limits.label ?? "ZIP",
|
|
3921
|
-
fail: (message, limit2, kind) => create ? create(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
3924
|
+
fail: (message, limit2, kind, actual) => create ? create(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
3922
3925
|
};
|
|
3923
3926
|
}
|
|
3924
3927
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -3973,7 +3976,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
3973
3976
|
r.fail(
|
|
3974
3977
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
3975
3978
|
r.maxEntryBytes,
|
|
3976
|
-
size > declared ? "declaredSize" : "maxEntryBytes"
|
|
3979
|
+
size > declared ? "declaredSize" : "maxEntryBytes",
|
|
3980
|
+
size
|
|
3977
3981
|
)
|
|
3978
3982
|
);
|
|
3979
3983
|
if (alreadyRead + size > r.maxTotalBytes)
|
|
@@ -3981,7 +3985,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
3981
3985
|
r.fail(
|
|
3982
3986
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
3983
3987
|
r.maxTotalBytes,
|
|
3984
|
-
"maxTotalBytes"
|
|
3988
|
+
"maxTotalBytes",
|
|
3989
|
+
alreadyRead + size
|
|
3985
3990
|
)
|
|
3986
3991
|
);
|
|
3987
3992
|
queue.push(chunk);
|
|
@@ -4028,7 +4033,8 @@ function guardZip(zip, limits = {}) {
|
|
|
4028
4033
|
throw r.fail(
|
|
4029
4034
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
4030
4035
|
r.maxEntries,
|
|
4031
|
-
"maxEntries"
|
|
4036
|
+
"maxEntries",
|
|
4037
|
+
entries.length
|
|
4032
4038
|
);
|
|
4033
4039
|
let declared = 0;
|
|
4034
4040
|
for (const entry3 of entries) {
|
|
@@ -4041,7 +4047,8 @@ function guardZip(zip, limits = {}) {
|
|
|
4041
4047
|
throw r.fail(
|
|
4042
4048
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
4043
4049
|
r.maxEntryBytes,
|
|
4044
|
-
"maxEntryBytes"
|
|
4050
|
+
"maxEntryBytes",
|
|
4051
|
+
size
|
|
4045
4052
|
);
|
|
4046
4053
|
declared += size;
|
|
4047
4054
|
}
|
|
@@ -4049,7 +4056,8 @@ function guardZip(zip, limits = {}) {
|
|
|
4049
4056
|
throw r.fail(
|
|
4050
4057
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
4051
4058
|
r.maxTotalBytes,
|
|
4052
|
-
"maxTotalBytes"
|
|
4059
|
+
"maxTotalBytes",
|
|
4060
|
+
declared
|
|
4053
4061
|
);
|
|
4054
4062
|
const produced = /* @__PURE__ */ new Map();
|
|
4055
4063
|
let total2 = 0;
|
package/dist/xlsx/ui/index.cjs
CHANGED
|
@@ -16928,11 +16928,14 @@ var ZipLimitError = class extends Error {
|
|
|
16928
16928
|
limit;
|
|
16929
16929
|
/** The check that failed (absent when the error was built without one). */
|
|
16930
16930
|
kind;
|
|
16931
|
+
/** The observed value, when known (a lower bound for a size found while inflating). */
|
|
16932
|
+
actual;
|
|
16931
16933
|
constructor(message, details) {
|
|
16932
16934
|
super(message);
|
|
16933
16935
|
this.name = "ZipLimitError";
|
|
16934
16936
|
this.limit = details.limit;
|
|
16935
16937
|
this.kind = details.kind;
|
|
16938
|
+
this.actual = details.actual;
|
|
16936
16939
|
}
|
|
16937
16940
|
};
|
|
16938
16941
|
var mib = (bytes) => Math.round(bytes / 1048576);
|
|
@@ -16955,7 +16958,7 @@ function resolveLimits(limits) {
|
|
|
16955
16958
|
maxEntryBytes: limits.maxEntryBytes ?? DEFAULT_ZIP_LIMITS.maxEntryBytes,
|
|
16956
16959
|
maxTotalBytes: limits.maxTotalBytes ?? DEFAULT_ZIP_LIMITS.maxTotalBytes,
|
|
16957
16960
|
label: limits.label ?? "ZIP",
|
|
16958
|
-
fail: (message, limit2, kind) => create ? create(message, { limit: limit2, kind }) : new ZipLimitError(message, { limit: limit2, kind })
|
|
16961
|
+
fail: (message, limit2, kind, actual) => create ? create(message, { limit: limit2, kind, actual }) : new ZipLimitError(message, { limit: limit2, kind, actual })
|
|
16959
16962
|
};
|
|
16960
16963
|
}
|
|
16961
16964
|
async function inflateEntryGuarded(entry3, alreadyRead, limits) {
|
|
@@ -17010,7 +17013,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
17010
17013
|
r.fail(
|
|
17011
17014
|
`${r.label} part ${entry3.name} inflates past its declared size`,
|
|
17012
17015
|
r.maxEntryBytes,
|
|
17013
|
-
size > declared ? "declaredSize" : "maxEntryBytes"
|
|
17016
|
+
size > declared ? "declaredSize" : "maxEntryBytes",
|
|
17017
|
+
size
|
|
17014
17018
|
)
|
|
17015
17019
|
);
|
|
17016
17020
|
if (alreadyRead + size > r.maxTotalBytes)
|
|
@@ -17018,7 +17022,8 @@ async function* streamEntryGuarded(entry3, alreadyRead, limits) {
|
|
|
17018
17022
|
r.fail(
|
|
17019
17023
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
17020
17024
|
r.maxTotalBytes,
|
|
17021
|
-
"maxTotalBytes"
|
|
17025
|
+
"maxTotalBytes",
|
|
17026
|
+
alreadyRead + size
|
|
17022
17027
|
)
|
|
17023
17028
|
);
|
|
17024
17029
|
queue.push(chunk);
|
|
@@ -17065,7 +17070,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17065
17070
|
throw r.fail(
|
|
17066
17071
|
`${r.label} package exceeds the ${r.maxEntries.toLocaleString("en-US")} part limit`,
|
|
17067
17072
|
r.maxEntries,
|
|
17068
|
-
"maxEntries"
|
|
17073
|
+
"maxEntries",
|
|
17074
|
+
entries.length
|
|
17069
17075
|
);
|
|
17070
17076
|
let declared = 0;
|
|
17071
17077
|
for (const entry3 of entries) {
|
|
@@ -17078,7 +17084,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17078
17084
|
throw r.fail(
|
|
17079
17085
|
`${r.label} part ${entry3.name} exceeds the uncompressed part size limit`,
|
|
17080
17086
|
r.maxEntryBytes,
|
|
17081
|
-
"maxEntryBytes"
|
|
17087
|
+
"maxEntryBytes",
|
|
17088
|
+
size
|
|
17082
17089
|
);
|
|
17083
17090
|
declared += size;
|
|
17084
17091
|
}
|
|
@@ -17086,7 +17093,8 @@ function guardZip(zip, limits = {}) {
|
|
|
17086
17093
|
throw r.fail(
|
|
17087
17094
|
`${r.label} package exceeds the ${mib(r.maxTotalBytes)} MiB uncompressed content limit`,
|
|
17088
17095
|
r.maxTotalBytes,
|
|
17089
|
-
"maxTotalBytes"
|
|
17096
|
+
"maxTotalBytes",
|
|
17097
|
+
declared
|
|
17090
17098
|
);
|
|
17091
17099
|
const produced = /* @__PURE__ */ new Map();
|
|
17092
17100
|
let total2 = 0;
|