@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.
@@ -8019,7 +8019,12 @@
8019
8019
  let { value, readable, writable } = message;
8020
8020
  const transferables = [];
8021
8021
  if (value) {
8022
- message.value = value.buffer;
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) {