@zip.js/zip.js
Advanced tools
Comparing version 2.7.23 to 2.7.24
@@ -1548,3 +1548,3 @@ /** | ||
addFile( | ||
file: File, | ||
file: File, | ||
options?: ZipWriterAddDataOptions, | ||
@@ -1551,0 +1551,0 @@ ): Promise<ZipEntry>; |
@@ -718,22 +718,25 @@ /* | ||
const name = options.relativePath ? child.getRelativeName(selectedEntry) : child.getFullname(); | ||
let externalFileAttribute; | ||
let versionMadeBy; | ||
let comment; | ||
let lastModDate; | ||
let childOptions = child.options || {}; | ||
let zipEntryOptions = {}; | ||
if (child.data instanceof Entry) { | ||
({ | ||
const { | ||
externalFileAttribute, | ||
versionMadeBy, | ||
comment, | ||
lastModDate | ||
} = child.data); | ||
lastModDate, | ||
creationDate, | ||
lastAccessDate | ||
} = child.data; | ||
zipEntryOptions = { | ||
externalFileAttribute, | ||
versionMadeBy, | ||
comment, | ||
lastModDate, | ||
creationDate, | ||
lastAccessDate | ||
}; | ||
} | ||
await zipWriter.add(name, child.reader, Object.assign({ | ||
directory: child.directory | ||
}, Object.assign({}, options, { | ||
externalFileAttribute, | ||
versionMadeBy, | ||
comment, | ||
lastModDate, | ||
}, Object.assign({}, options, zipEntryOptions, childOptions, { | ||
onprogress: async indexProgress => { | ||
@@ -749,3 +752,3 @@ if (options.onprogress) { | ||
} | ||
}, childOptions))); | ||
}))); | ||
await process(zipWriter, child); | ||
@@ -752,0 +755,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"license": "BSD-3-Clause", | ||
"version": "2.7.23", | ||
"version": "2.7.24", | ||
"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
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3002227
57004