@zip.js/zip.js 2.7.32 → 2.7.34
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/dist/z-worker-fflate.js +1 -1
- package/dist/z-worker-pako.js +1 -1
- package/dist/z-worker.js +1 -1
- package/dist/zip-fs-full.js +206 -95
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +206 -95
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +205 -94
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker-inflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +205 -94
- package/dist/zip.min.js +1 -1
- package/index.cjs +206 -95
- package/index.d.ts +12 -4
- package/index.min.js +1 -1
- package/lib/core/codec-pool.js +40 -24
- package/lib/core/codec-worker.js +51 -20
- package/lib/core/io.js +4 -5
- package/lib/core/streams/aes-crypto-stream.js +14 -8
- package/lib/core/streams/codec-stream.js +53 -6
- package/lib/core/streams/common-crypto.js +2 -1
- package/lib/core/streams/zip-entry-stream.js +6 -2
- package/lib/core/util/encode-text.js +3 -1
- package/lib/core/util/stream-codec-shim.js +4 -2
- package/lib/core/z-worker-core.js +33 -7
- package/lib/core/zip-fs-core.js +2 -1
- package/lib/core/zip-reader.js +5 -2
- package/lib/core/zip-writer.js +24 -16
- package/lib/z-worker-bootstrap-fflate.js +2 -1
- package/lib/z-worker-inline.js +1 -1
- package/lib/zip-fflate-shim.js +3 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -177,9 +177,9 @@ interface dataHandler {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Terminates all the
|
|
180
|
+
* Terminates all the web workers
|
|
181
181
|
*/
|
|
182
|
-
export function terminateWorkers(): void
|
|
182
|
+
export function terminateWorkers(): Promise<void>;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* Represents event-based implementations used to compress/decompress data.
|
|
@@ -764,6 +764,10 @@ interface ZipReaderOptions {
|
|
|
764
764
|
* The password used to decrypt the content of the entry.
|
|
765
765
|
*/
|
|
766
766
|
password?: string;
|
|
767
|
+
/**
|
|
768
|
+
* The password used to encrypt the content of the entry (raw).
|
|
769
|
+
*/
|
|
770
|
+
rawPassword?: Uint8Array;
|
|
767
771
|
/**
|
|
768
772
|
* The `AbortSignal` instance used to cancel the decompression.
|
|
769
773
|
*/
|
|
@@ -1103,6 +1107,10 @@ interface ZipWriterConstructorOptions {
|
|
|
1103
1107
|
* The password used to encrypt the content of the entry.
|
|
1104
1108
|
*/
|
|
1105
1109
|
password?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* The password used to encrypt the content of the entry (raw).
|
|
1112
|
+
*/
|
|
1113
|
+
rawPassword?: Uint8Array;
|
|
1106
1114
|
/**
|
|
1107
1115
|
* The encryption strength (AES).
|
|
1108
1116
|
*
|
|
@@ -1201,7 +1209,7 @@ interface ZipWriterConstructorOptions {
|
|
|
1201
1209
|
supportZip64SplitFile?: boolean;
|
|
1202
1210
|
/**
|
|
1203
1211
|
* `true`to produce zip files compatible with the USDZ specification.
|
|
1204
|
-
*
|
|
1212
|
+
*
|
|
1205
1213
|
* @defaultValue false
|
|
1206
1214
|
*/
|
|
1207
1215
|
usdz?: boolean;
|
|
@@ -1573,7 +1581,7 @@ export class ZipDirectoryEntry extends ZipEntry {
|
|
|
1573
1581
|
* @returns A promise resolving to an array of {@link ZipFileEntry} or a {@link ZipDirectoryEntry} instances.
|
|
1574
1582
|
*/
|
|
1575
1583
|
addFileSystemHandle(
|
|
1576
|
-
|
|
1584
|
+
fileSystemHandle: FileSystemHandle,
|
|
1577
1585
|
options?: ZipWriterAddDataOptions,
|
|
1578
1586
|
): Promise<ZipEntry[]>;
|
|
1579
1587
|
/**
|