@zip.js/zip.js 2.6.73 → 2.6.75
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-full.js +6 -6
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +6 -6
- package/dist/zip-fs.min.js +1 -1
- package/index.cjs +6 -6
- package/lib/core/zip-fs-core.js +3 -3
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -10255,15 +10255,15 @@
|
|
|
10255
10255
|
|
|
10256
10256
|
clone(deepClone) {
|
|
10257
10257
|
const zipEntry = this;
|
|
10258
|
-
const
|
|
10258
|
+
const clonedEntry = new ZipDirectoryEntry(zipEntry.fs, zipEntry.name);
|
|
10259
10259
|
if (deepClone) {
|
|
10260
|
-
|
|
10261
|
-
const
|
|
10262
|
-
|
|
10263
|
-
return
|
|
10260
|
+
clonedEntry.children = zipEntry.children.map(child => {
|
|
10261
|
+
const childClone = child.clone(deepClone);
|
|
10262
|
+
childClone.parent = clonedEntry;
|
|
10263
|
+
return childClone;
|
|
10264
10264
|
});
|
|
10265
10265
|
}
|
|
10266
|
-
return
|
|
10266
|
+
return clonedEntry;
|
|
10267
10267
|
}
|
|
10268
10268
|
|
|
10269
10269
|
addDirectory(name) {
|