@zip.js/zip.js 2.6.68 → 2.6.69
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 +16 -6
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +16 -6
- package/dist/zip-fs.min.js +1 -1
- package/index.cjs +16 -6
- package/index.d.ts +4 -0
- package/lib/core/zip-fs-core.js +16 -6
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -10162,6 +10162,10 @@
|
|
|
10162
10162
|
}
|
|
10163
10163
|
}
|
|
10164
10164
|
|
|
10165
|
+
clone() {
|
|
10166
|
+
return new ZipFileEntry(this.fs, this.name, this);
|
|
10167
|
+
}
|
|
10168
|
+
|
|
10165
10169
|
async getData(writer, options = {}) {
|
|
10166
10170
|
const zipEntry = this;
|
|
10167
10171
|
if (!writer || (writer.constructor == zipEntry.Writer && zipEntry.data)) {
|
|
@@ -10249,6 +10253,10 @@
|
|
|
10249
10253
|
this.directory = true;
|
|
10250
10254
|
}
|
|
10251
10255
|
|
|
10256
|
+
clone() {
|
|
10257
|
+
return new ZipDirectoryEntry(this.fs, this.name);
|
|
10258
|
+
}
|
|
10259
|
+
|
|
10252
10260
|
addDirectory(name) {
|
|
10253
10261
|
return addChild(this, name, null, true);
|
|
10254
10262
|
}
|
|
@@ -10569,12 +10577,14 @@
|
|
|
10569
10577
|
}
|
|
10570
10578
|
|
|
10571
10579
|
function detach(entry) {
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10580
|
+
if (entry.parent) {
|
|
10581
|
+
const children = entry.parent.children;
|
|
10582
|
+
children.forEach((child, index) => {
|
|
10583
|
+
if (child.id == entry.id) {
|
|
10584
|
+
children.splice(index, 1);
|
|
10585
|
+
}
|
|
10586
|
+
});
|
|
10587
|
+
}
|
|
10578
10588
|
}
|
|
10579
10589
|
|
|
10580
10590
|
async function exportZip(zipWriter, entry, totalSize, options) {
|