@zip.js/zip.js 2.6.69 → 2.6.70
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 +7 -2
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +7 -2
- package/dist/zip-fs.min.js +1 -1
- package/index.cjs +7 -2
- package/index.d.ts +3 -1
- package/lib/core/zip-fs-core.js +7 -2
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -10253,8 +10253,13 @@
|
|
|
10253
10253
|
this.directory = true;
|
|
10254
10254
|
}
|
|
10255
10255
|
|
|
10256
|
-
clone() {
|
|
10257
|
-
|
|
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 => child.clone(deepClone));
|
|
10261
|
+
}
|
|
10262
|
+
return clone;
|
|
10258
10263
|
}
|
|
10259
10264
|
|
|
10260
10265
|
addDirectory(name) {
|