@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 +1 -1
- package/dist/zip-fs-full.js +7 -1
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +7 -1
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +7 -1
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +7 -1
- package/dist/zip.min.js +1 -1
- package/index.cjs +7 -1
- package/index.d.ts +9 -1
- package/index.min.js +1 -1
- package/lib/core/zip-writer.js +7 -1
- package/package.json +1 -1
package/dist/zip-full.js
CHANGED
|
@@ -8450,6 +8450,7 @@
|
|
|
8450
8450
|
const bufferedWrite = getOptionValue(zipWriter, options, "bufferedWrite");
|
|
8451
8451
|
const dataDescriptorSignature = getOptionValue(zipWriter, options, "dataDescriptorSignature", false);
|
|
8452
8452
|
const signal = getOptionValue(zipWriter, options, "signal");
|
|
8453
|
+
const useUnicodeFileNames = getOptionValue(zipWriter, options, "useUnicodeFileNames", true);
|
|
8453
8454
|
const useCompressionStream = getOptionValue(zipWriter, options, "useCompressionStream");
|
|
8454
8455
|
let dataDescriptor = getOptionValue(zipWriter, options, "dataDescriptor", true);
|
|
8455
8456
|
let zip64 = getOptionValue(zipWriter, options, PROPERTY_NAME_ZIP64);
|
|
@@ -8531,6 +8532,7 @@
|
|
|
8531
8532
|
zipCrypto,
|
|
8532
8533
|
bufferedWrite,
|
|
8533
8534
|
keepOrder,
|
|
8535
|
+
useUnicodeFileNames,
|
|
8534
8536
|
dataDescriptor,
|
|
8535
8537
|
dataDescriptorSignature,
|
|
8536
8538
|
signal,
|
|
@@ -8869,6 +8871,7 @@
|
|
|
8869
8871
|
level,
|
|
8870
8872
|
zip64,
|
|
8871
8873
|
zipCrypto,
|
|
8874
|
+
useUnicodeFileNames,
|
|
8872
8875
|
dataDescriptor,
|
|
8873
8876
|
directory,
|
|
8874
8877
|
rawExtraField,
|
|
@@ -8925,7 +8928,10 @@
|
|
|
8925
8928
|
} else {
|
|
8926
8929
|
rawExtraFieldNTFS = rawExtraFieldExtendedTimestamp = new Uint8Array();
|
|
8927
8930
|
}
|
|
8928
|
-
let bitFlag =
|
|
8931
|
+
let bitFlag = 0;
|
|
8932
|
+
if (useUnicodeFileNames) {
|
|
8933
|
+
bitFlag = bitFlag | BITFLAG_LANG_ENCODING_FLAG;
|
|
8934
|
+
}
|
|
8929
8935
|
if (dataDescriptor) {
|
|
8930
8936
|
bitFlag = bitFlag | BITFLAG_DATA_DESCRIPTOR;
|
|
8931
8937
|
}
|