@zip.js/zip.js 2.8.5 → 2.8.7

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.js CHANGED
@@ -2193,13 +2193,8 @@
2193
2193
  const { value, readable, writable } = message;
2194
2194
  const transferables = [];
2195
2195
  if (value) {
2196
- if (value.byteLength < value.buffer.byteLength) {
2197
- message.value = value.buffer.slice(0, value.byteLength);
2198
- }
2199
- else {
2200
- message.value = value.buffer;
2201
- }
2202
- transferables.push(message.value);
2196
+ message.value = value;
2197
+ transferables.push(message.value.buffer);
2203
2198
  }
2204
2199
  if (transferStreams && transferStreamsSupported) {
2205
2200
  if (readable) {