@zip.js/zip.js 2.6.69 → 2.6.71

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.
@@ -10253,8 +10253,16 @@
10253
10253
  this.directory = true;
10254
10254
  }
10255
10255
 
10256
- clone() {
10257
- return new ZipDirectoryEntry(this.fs, this.name);
10256
+ clone(deepClone) {
10257
+ const zipEntry = this;
10258
+ const clone = new ZipDirectoryEntry(zipEntry.fs, zipEntry.name);
10259
+ if (deepClone) {
10260
+ clone.children = zipEntry.children.map(child => {
10261
+ child.clone(deepClone);
10262
+ child.parent = this;
10263
+ });
10264
+ }
10265
+ return clone;
10258
10266
  }
10259
10267
 
10260
10268
  addDirectory(name) {