@zip.js/zip.js 2.8.13 → 2.8.15
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/.github/workflows/publish.yml +6 -10
- package/deno.json +1 -1
- package/dist/zip-core.js +15 -12
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core.js +15 -12
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-native.js +15 -12
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +15 -12
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +15 -12
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +15 -12
- package/dist/zip-native.min.js +1 -1
- package/dist/zip.js +15 -12
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +15 -12
- package/index-native.min.js +1 -1
- package/index.cjs +15 -12
- package/index.d.ts +4 -4
- package/index.min.js +1 -1
- package/lib/core/zip-writer.js +15 -12
- package/package.json +2 -2
package/dist/zip-fs.js
CHANGED
|
@@ -5248,6 +5248,9 @@
|
|
|
5248
5248
|
setUint32(rawExtraFieldZip64View, rawExtraFieldZip64Offset, diskNumberStart);
|
|
5249
5249
|
rawExtraFieldZip64Offset += 4;
|
|
5250
5250
|
}
|
|
5251
|
+
if (rawLocalExtraFieldZip64Offset == 4) {
|
|
5252
|
+
rawLocalExtraFieldZip64 = new Uint8Array();
|
|
5253
|
+
}
|
|
5251
5254
|
}
|
|
5252
5255
|
} else {
|
|
5253
5256
|
rawExtraFieldZip64 = new Uint8Array();
|
|
@@ -5559,22 +5562,22 @@
|
|
|
5559
5562
|
if (!encrypted) {
|
|
5560
5563
|
setUint32(localHeaderView, HEADER_OFFSET_SIGNATURE + 4, signature);
|
|
5561
5564
|
}
|
|
5562
|
-
if (!
|
|
5565
|
+
if (!zip64CompressedSize) {
|
|
5563
5566
|
setUint32(localHeaderView, HEADER_OFFSET_COMPRESSED_SIZE + 4, compressedSize);
|
|
5567
|
+
}
|
|
5568
|
+
if (!zip64UncompressedSize) {
|
|
5564
5569
|
setUint32(localHeaderView, HEADER_OFFSET_UNCOMPRESSED_SIZE + 4, uncompressedSize);
|
|
5565
5570
|
}
|
|
5566
5571
|
}
|
|
5567
|
-
if (zip64) {
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
localHeaderOffset += 8;
|
|
5577
|
-
}
|
|
5572
|
+
if (zip64 && localExtraFieldZip64Length) {
|
|
5573
|
+
let localHeaderOffset = HEADER_SIZE + getLength(rawFilename) + 4;
|
|
5574
|
+
if (zip64UncompressedSize) {
|
|
5575
|
+
setBigUint64(localHeaderView, localHeaderOffset, BigInt(uncompressedSize));
|
|
5576
|
+
localHeaderOffset += 8;
|
|
5577
|
+
}
|
|
5578
|
+
if (zip64CompressedSize) {
|
|
5579
|
+
setBigUint64(localHeaderView, localHeaderOffset, BigInt(compressedSize));
|
|
5580
|
+
localHeaderOffset += 8;
|
|
5578
5581
|
}
|
|
5579
5582
|
}
|
|
5580
5583
|
}
|