@zip.js/zip.js
Advanced tools
Comparing version 2.7.4 to 2.7.5
@@ -374,7 +374,7 @@ /* | ||
const name = path.pop(); | ||
path.forEach(pathPart => { | ||
path.forEach((pathPart, pathIndex) => { | ||
const previousParent = parent; | ||
parent = parent.getChildByName(pathPart); | ||
if (!parent) { | ||
parent = new ZipDirectoryEntry(this.fs, pathPart, { data: entry }, previousParent); | ||
parent = new ZipDirectoryEntry(this.fs, pathPart, { data: pathIndex == path.length - 1 ? entry : null }, previousParent); | ||
importedEntries.push(parent); | ||
@@ -381,0 +381,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"license": "BSD-3-Clause", | ||
"version": "2.7.4", | ||
"version": "2.7.5", | ||
"type": "module", | ||
@@ -9,0 +9,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2804910