@zip.js/zip.js 2.6.66 → 2.6.67

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.
@@ -10139,6 +10139,15 @@
10139
10139
  }
10140
10140
  return Boolean(entry);
10141
10141
  }
10142
+
10143
+ rename(name) {
10144
+ const parent = this.parent;
10145
+ if (parent && parent.getChildByName(name)) {
10146
+ throw new Error("Entry filename already exists");
10147
+ } else {
10148
+ this.name = name;
10149
+ }
10150
+ }
10142
10151
  }
10143
10152
 
10144
10153
  class ZipFileEntry extends ZipEntry {