@zip.js/zip.js 2.7.27 → 2.7.29
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/zip-fs-full.js +10 -3
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +10 -3
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +3 -3
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +3 -3
- package/dist/zip.min.js +1 -1
- package/index.cjs +10 -3
- package/index.min.js +1 -1
- package/lib/core/zip-fs-core.js +7 -0
- package/lib/core/zip-writer.js +3 -3
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -10020,6 +10020,9 @@
|
|
|
10020
10020
|
await writeData(writable, signatureArray);
|
|
10021
10021
|
zipWriter.offset += 4;
|
|
10022
10022
|
}
|
|
10023
|
+
if (usdz) {
|
|
10024
|
+
appendExtraFieldUSDZ(entryInfo, zipWriter.offset - diskOffset);
|
|
10025
|
+
}
|
|
10023
10026
|
if (!bufferedWrite) {
|
|
10024
10027
|
await lockPreviousFileEntry;
|
|
10025
10028
|
await skipDiskIfNeeded(writable);
|
|
@@ -10027,9 +10030,6 @@
|
|
|
10027
10030
|
const { diskNumber } = writer;
|
|
10028
10031
|
writingEntryData = true;
|
|
10029
10032
|
fileEntry.diskNumberStart = diskNumber;
|
|
10030
|
-
if (usdz) {
|
|
10031
|
-
appendExtraFieldUSDZ(entryInfo, zipWriter.offset - diskOffset);
|
|
10032
|
-
}
|
|
10033
10033
|
fileEntry = await createFileEntry(reader, fileWriter, fileEntry, entryInfo, zipWriter.config, options);
|
|
10034
10034
|
writingEntryData = false;
|
|
10035
10035
|
files.set(name, fileEntry);
|
|
@@ -11183,6 +11183,9 @@
|
|
|
11183
11183
|
|
|
11184
11184
|
async exportZip(writer, options) {
|
|
11185
11185
|
const zipEntry = this;
|
|
11186
|
+
if (options.bufferedWrite === undefined) {
|
|
11187
|
+
options.bufferedWrite = true;
|
|
11188
|
+
}
|
|
11186
11189
|
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
|
|
11187
11190
|
const zipWriter = new ZipWriter(writer, options);
|
|
11188
11191
|
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
|
|
@@ -11290,6 +11293,10 @@
|
|
|
11290
11293
|
return this.root.addData64URI(name, dataURI, options);
|
|
11291
11294
|
}
|
|
11292
11295
|
|
|
11296
|
+
addUint8Array(name, array, options) {
|
|
11297
|
+
return this.root.addUint8Array(name, array, options);
|
|
11298
|
+
}
|
|
11299
|
+
|
|
11293
11300
|
addHttpContent(name, url, options) {
|
|
11294
11301
|
return this.root.addHttpContent(name, url, options);
|
|
11295
11302
|
}
|