@zip.js/zip.js 2.7.8 → 2.7.10

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.
@@ -740,12 +740,12 @@ async function exportZip(zipWriter, entry, totalSize, options) {
740
740
  }
741
741
 
742
742
  async function addFileSystemHandle(zipEntry, handle, options) {
743
- await addFile(zipEntry, handle, []);
743
+ return addFile(zipEntry, handle, []);
744
744
 
745
745
  async function addFile(parentEntry, handle, addedEntries) {
746
746
  try {
747
747
  if (handle.isFile || handle.isDirectory) {
748
- handle = transformToFileSystemhandle(handle);
748
+ handle = await transformToFileSystemhandle(handle);
749
749
  }
750
750
  if (handle.kind == "file") {
751
751
  const file = await handle.getFile();
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.7.8",
6
+ "version": "2.7.10",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",