@zip.js/zip.js 2.7.23 → 2.7.24

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.
@@ -11429,26 +11429,29 @@
11429
11429
 
11430
11430
  async function processChild(child) {
11431
11431
  const name = options.relativePath ? child.getRelativeName(selectedEntry) : child.getFullname();
11432
- let externalFileAttribute;
11433
- let versionMadeBy;
11434
- let comment;
11435
- let lastModDate;
11436
11432
  let childOptions = child.options || {};
11433
+ let zipEntryOptions = {};
11437
11434
  if (child.data instanceof Entry) {
11438
- ({
11435
+ const {
11436
+ externalFileAttribute,
11437
+ versionMadeBy,
11438
+ comment,
11439
+ lastModDate,
11440
+ creationDate,
11441
+ lastAccessDate
11442
+ } = child.data;
11443
+ zipEntryOptions = {
11439
11444
  externalFileAttribute,
11440
11445
  versionMadeBy,
11441
11446
  comment,
11442
- lastModDate
11443
- } = child.data);
11447
+ lastModDate,
11448
+ creationDate,
11449
+ lastAccessDate
11450
+ };
11444
11451
  }
11445
11452
  await zipWriter.add(name, child.reader, Object.assign({
11446
11453
  directory: child.directory
11447
- }, Object.assign({}, options, {
11448
- externalFileAttribute,
11449
- versionMadeBy,
11450
- comment,
11451
- lastModDate,
11454
+ }, Object.assign({}, options, zipEntryOptions, childOptions, {
11452
11455
  onprogress: async indexProgress => {
11453
11456
  if (options.onprogress) {
11454
11457
  entryOffsets.set(name, indexProgress);
@@ -11459,7 +11462,7 @@
11459
11462
  }
11460
11463
  }
11461
11464
  }
11462
- }, childOptions)));
11465
+ })));
11463
11466
  await process(zipWriter, child);
11464
11467
  }
11465
11468
  }