@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/dist/zip-fs.js CHANGED
@@ -2194,7 +2194,7 @@
2194
2194
  const transferables = [];
2195
2195
  if (value) {
2196
2196
  if (value.byteLength < value.buffer.byteLength) {
2197
- message.value = value.buffer.slice(0, value.byteLength);
2197
+ message.value = value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength);
2198
2198
  }
2199
2199
  else {
2200
2200
  message.value = value.buffer;