@cj-tech-master/excelts 1.5.0-canary.20251213004040.f1236e6 → 1.5.0-canary.20251214115917.a4dd706

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @cj-tech-master/excelts v1.5.0-canary.20251213004040.f1236e6
2
+ * @cj-tech-master/excelts v1.5.0-canary.20251214115917.a4dd706
3
3
  * TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
4
4
  * (c) 2025 cjnoname
5
5
  * Released under the MIT License
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @cj-tech-master/excelts v1.5.0-canary.20251213004040.f1236e6
2
+ * @cj-tech-master/excelts v1.5.0-canary.20251214115917.a4dd706
3
3
  * TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
4
4
  * (c) 2025 cjnoname
5
5
  * Released under the MIT License
@@ -181,7 +181,7 @@ function parseZipEntries(data, options = {}) {
181
181
  reader.skip(2); // disk where central dir starts
182
182
  reader.skip(2); // entries on this disk
183
183
  let totalEntries = reader.readUint16(); // total entries
184
- let centralDirSize = reader.readUint32();
184
+ reader.skip(4); // central directory size (unused)
185
185
  let centralDirOffset = reader.readUint32();
186
186
  // Check for ZIP64
187
187
  const zip64LocatorOffset = findZip64EOCDLocator(data, eocdOffset);
@@ -200,15 +200,12 @@ function parseZipEntries(data, options = {}) {
200
200
  zip64Reader.skip(4); // disk number
201
201
  zip64Reader.skip(4); // disk with central dir
202
202
  const zip64TotalEntries = Number(zip64Reader.readBigUint64());
203
- const zip64CentralDirSize = Number(zip64Reader.readBigUint64());
203
+ zip64Reader.skip(8); // central directory size (unused)
204
204
  const zip64CentralDirOffset = Number(zip64Reader.readBigUint64());
205
205
  // Use ZIP64 values if standard values are maxed out
206
206
  if (totalEntries === 0xffff) {
207
207
  totalEntries = zip64TotalEntries;
208
208
  }
209
- if (centralDirSize === 0xffffffff) {
210
- centralDirSize = zip64CentralDirSize;
211
- }
212
209
  if (centralDirOffset === 0xffffffff) {
213
210
  centralDirOffset = zip64CentralDirOffset;
214
211
  }
@@ -175,7 +175,7 @@ export function parseZipEntries(data, options = {}) {
175
175
  reader.skip(2); // disk where central dir starts
176
176
  reader.skip(2); // entries on this disk
177
177
  let totalEntries = reader.readUint16(); // total entries
178
- let centralDirSize = reader.readUint32();
178
+ reader.skip(4); // central directory size (unused)
179
179
  let centralDirOffset = reader.readUint32();
180
180
  // Check for ZIP64
181
181
  const zip64LocatorOffset = findZip64EOCDLocator(data, eocdOffset);
@@ -194,15 +194,12 @@ export function parseZipEntries(data, options = {}) {
194
194
  zip64Reader.skip(4); // disk number
195
195
  zip64Reader.skip(4); // disk with central dir
196
196
  const zip64TotalEntries = Number(zip64Reader.readBigUint64());
197
- const zip64CentralDirSize = Number(zip64Reader.readBigUint64());
197
+ zip64Reader.skip(8); // central directory size (unused)
198
198
  const zip64CentralDirOffset = Number(zip64Reader.readBigUint64());
199
199
  // Use ZIP64 values if standard values are maxed out
200
200
  if (totalEntries === 0xffff) {
201
201
  totalEntries = zip64TotalEntries;
202
202
  }
203
- if (centralDirSize === 0xffffffff) {
204
- centralDirSize = zip64CentralDirSize;
205
- }
206
203
  if (centralDirOffset === 0xffffffff) {
207
204
  centralDirOffset = zip64CentralDirOffset;
208
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cj-tech-master/excelts",
3
- "version": "1.5.0-canary.20251213004040.f1236e6",
3
+ "version": "1.5.0-canary.20251214115917.a4dd706",
4
4
  "description": "TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.",
5
5
  "private": false,
6
6
  "publishConfig": {