@zip.js/zip.js 2.7.31 → 2.7.32
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 +6 -1
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +6 -1
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +6 -1
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker-inflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +6 -1
- package/dist/zip.min.js +1 -1
- package/index.cjs +6 -1
- package/index.min.js +1 -1
- package/lib/core/codec-worker.js +6 -1
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -8019,7 +8019,12 @@
|
|
|
8019
8019
|
let { value, readable, writable } = message;
|
|
8020
8020
|
const transferables = [];
|
|
8021
8021
|
if (value) {
|
|
8022
|
-
|
|
8022
|
+
if (value.byteLength < value.buffer.byteLength) {
|
|
8023
|
+
message.value = value.buffer.slice(0, value.byteLength);
|
|
8024
|
+
}
|
|
8025
|
+
else {
|
|
8026
|
+
message.value = value.buffer;
|
|
8027
|
+
}
|
|
8023
8028
|
transferables.push(message.value);
|
|
8024
8029
|
}
|
|
8025
8030
|
if (transferStreams && transferStreamsSupported) {
|