@zip.js/zip.js 2.7.47 → 2.7.48

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zip-js/zip-js",
3
- "version": "2.7.46",
3
+ "version": "2.7.47",
4
4
  "exports": {
5
5
  ".": "./index.js",
6
6
  "./data-uri": "./lib/zip-data-uri.js"
@@ -10082,6 +10082,7 @@
10082
10082
  const bufferedWrite = getOptionValue(zipWriter, options, "bufferedWrite");
10083
10083
  const dataDescriptorSignature = getOptionValue(zipWriter, options, "dataDescriptorSignature", false);
10084
10084
  const signal = getOptionValue(zipWriter, options, "signal");
10085
+ const useUnicodeFileNames = getOptionValue(zipWriter, options, "useUnicodeFileNames", true);
10085
10086
  const useCompressionStream = getOptionValue(zipWriter, options, "useCompressionStream");
10086
10087
  let dataDescriptor = getOptionValue(zipWriter, options, "dataDescriptor", true);
10087
10088
  let zip64 = getOptionValue(zipWriter, options, PROPERTY_NAME_ZIP64);
@@ -10163,6 +10164,7 @@
10163
10164
  zipCrypto,
10164
10165
  bufferedWrite,
10165
10166
  keepOrder,
10167
+ useUnicodeFileNames,
10166
10168
  dataDescriptor,
10167
10169
  dataDescriptorSignature,
10168
10170
  signal,
@@ -10501,6 +10503,7 @@
10501
10503
  level,
10502
10504
  zip64,
10503
10505
  zipCrypto,
10506
+ useUnicodeFileNames,
10504
10507
  dataDescriptor,
10505
10508
  directory,
10506
10509
  rawExtraField,
@@ -10557,7 +10560,10 @@
10557
10560
  } else {
10558
10561
  rawExtraFieldNTFS = rawExtraFieldExtendedTimestamp = new Uint8Array();
10559
10562
  }
10560
- let bitFlag = BITFLAG_LANG_ENCODING_FLAG;
10563
+ let bitFlag = 0;
10564
+ if (useUnicodeFileNames) {
10565
+ bitFlag = bitFlag | BITFLAG_LANG_ENCODING_FLAG;
10566
+ }
10561
10567
  if (dataDescriptor) {
10562
10568
  bitFlag = bitFlag | BITFLAG_DATA_DESCRIPTOR;
10563
10569
  }