@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.
@@ -289,7 +289,7 @@ function sendMessage(message, { worker, writer, onTaskFinished, transferStreams
289
289
  const transferables = [];
290
290
  if (value) {
291
291
  if (value.byteLength < value.buffer.byteLength) {
292
- message.value = value.buffer.slice(0, value.byteLength);
292
+ message.value = value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength);
293
293
  }
294
294
  else {
295
295
  message.value = value.buffer;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "2.8.5",
6
+ "version": "2.8.6",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",