@zip.js/zip.js 2.18.1 → 2.18.2
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/deno.json +1 -1
- package/dist/zip-core-external.js +6 -14
- package/dist/zip-core-external.min.js +1 -1
- package/dist/zip-core.js +6 -14
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core-external.js +6 -14
- package/dist/zip-fs-core-external.min.js +1 -1
- package/dist/zip-fs-core.js +6 -14
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-external.js +6 -14
- package/dist/zip-fs-external.min.js +1 -1
- package/dist/zip-fs-native.js +6 -14
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +6 -14
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +6 -14
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +6 -14
- package/dist/zip-native.min.js +1 -1
- package/dist/zip.js +6 -14
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +6 -14
- package/index-native.min.js +1 -1
- package/index.cjs +6 -14
- package/index.d.cts +6 -5
- package/index.d.ts +6 -5
- package/index.min.js +1 -1
- package/lib/core/version.js +1 -1
- package/lib/core/zip-reader.js +5 -13
- package/package.json +1 -1
package/deno.json
CHANGED
|
@@ -6041,19 +6041,11 @@ async function detectOverlappingEntry({
|
|
|
6041
6041
|
const zip64 = Boolean(extraFieldZip64);
|
|
6042
6042
|
const dataDescriptorArray = await readUint8Array(reader, dataOffset + compressedSize, DATA_DESCRIPTOR_RECORD_ZIP_64_LENGTH + DATA_DESCRIPTOR_RECORD_SIGNATURE_LENGTH);
|
|
6043
6043
|
const dataDescriptorView = getDataView(dataDescriptorArray);
|
|
6044
|
-
const
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
candidate.compressedSize == compressedSize && candidate.uncompressedSize == uncompressedSize) {
|
|
6050
|
-
localDataDescriptor = candidate;
|
|
6051
|
-
break;
|
|
6052
|
-
}
|
|
6053
|
-
}
|
|
6054
|
-
if (!localDataDescriptor) {
|
|
6055
|
-
localDataDescriptor = readDataDescriptor(dataDescriptorView, zip64, false);
|
|
6056
|
-
}
|
|
6044
|
+
const candidates = [[zip64, true], [zip64, false], [!zip64, true], [!zip64, false]]
|
|
6045
|
+
.map(([zip64Layout, signature]) => readDataDescriptor(dataDescriptorView, zip64Layout, signature))
|
|
6046
|
+
.filter(candidate => candidate && candidate.compressedSize == compressedSize && candidate.uncompressedSize == uncompressedSize);
|
|
6047
|
+
const localDataDescriptor = candidates.find(candidate => candidate.crc32 == crc32) || candidates[0] ||
|
|
6048
|
+
readDataDescriptor(dataDescriptorView, zip64, true) || readDataDescriptor(dataDescriptorView, zip64, false);
|
|
6057
6049
|
if (localDataDescriptor) {
|
|
6058
6050
|
fileEntry.localDirectory.dataDescriptor = localDataDescriptor;
|
|
6059
6051
|
dataDescriptorLength = getDataDescriptorLength(localDataDescriptor.zip64, localDataDescriptor.signature);
|
|
@@ -8970,7 +8962,7 @@ function formatSupported(StreamClass, format) {
|
|
|
8970
8962
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
8971
8963
|
*/
|
|
8972
8964
|
|
|
8973
|
-
const VERSION = "2.18.
|
|
8965
|
+
const VERSION = "2.18.2";
|
|
8974
8966
|
|
|
8975
8967
|
/*
|
|
8976
8968
|
Copyright (c) 2025 Gildas Lormeau. All rights reserved.
|