@zip.js/zip.js 2.8.5 → 2.8.6

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/index.cjs CHANGED
@@ -2188,7 +2188,7 @@ function sendMessage(message, { worker, writer, onTaskFinished, transferStreams
2188
2188
  const transferables = [];
2189
2189
  if (value) {
2190
2190
  if (value.byteLength < value.buffer.byteLength) {
2191
- message.value = value.buffer.slice(0, value.byteLength);
2191
+ message.value = value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength);
2192
2192
  }
2193
2193
  else {
2194
2194
  message.value = value.buffer;