@zip.js/zip.js 2.6.72 → 2.6.73
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/lib/core/zip-fs-core.js +4 -4
- package/package.json +1 -1
package/lib/core/zip-fs-core.js
CHANGED
|
@@ -218,15 +218,15 @@ class ZipDirectoryEntry extends ZipEntry {
|
|
|
218
218
|
|
|
219
219
|
clone(deepClone) {
|
|
220
220
|
const zipEntry = this;
|
|
221
|
-
const
|
|
221
|
+
const clonedEntry = new ZipDirectoryEntry(zipEntry.fs, zipEntry.name);
|
|
222
222
|
if (deepClone) {
|
|
223
|
-
|
|
223
|
+
clonedEntry.children = zipEntry.children.map(child => {
|
|
224
224
|
const clone = child.clone(deepClone);
|
|
225
225
|
clone.parent = zipEntry;
|
|
226
|
-
return
|
|
226
|
+
return clonedEntry;
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
return
|
|
229
|
+
return clonedEntry;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
addDirectory(name) {
|
package/package.json
CHANGED