@zip.js/zip.js 2.7.25 → 2.7.27

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.
@@ -5838,6 +5838,7 @@
5838
5838
  "vnd.gdl": "gdl",
5839
5839
  "vnd.gtw": "gtw",
5840
5840
  "vnd.mts": "mts",
5841
+ "vnd.usdz+zip": "usdz",
5841
5842
  "vnd.vtu": "vtu"
5842
5843
  },
5843
5844
  "text": {
@@ -9522,6 +9523,10 @@
9522
9523
  readExtraFieldExtendedTimestamp(extraFieldExtendedTimestamp, directory, localDirectory);
9523
9524
  directory.extraFieldExtendedTimestamp = extraFieldExtendedTimestamp;
9524
9525
  }
9526
+ const extraFieldUSDZ = extraField.get(EXTRAFIELD_TYPE_USDZ);
9527
+ if (extraFieldUSDZ) {
9528
+ directory.extraFieldUSDZ = extraFieldUSDZ;
9529
+ }
9525
9530
  }
9526
9531
 
9527
9532
  function readExtraFieldZip64(extraFieldZip64, directory) {
@@ -10023,7 +10028,7 @@
10023
10028
  writingEntryData = true;
10024
10029
  fileEntry.diskNumberStart = diskNumber;
10025
10030
  if (usdz) {
10026
- appendExtraFieldUSDZ(entryInfo, zipWriter.offset);
10031
+ appendExtraFieldUSDZ(entryInfo, zipWriter.offset - diskOffset);
10027
10032
  }
10028
10033
  fileEntry = await createFileEntry(reader, fileWriter, fileEntry, entryInfo, zipWriter.config, options);
10029
10034
  writingEntryData = false;