agora-foundation 3.9.1-alpha → 3.10.0-alpha
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/lib/utilities/zip.d.ts +16 -1
- package/lib/utilities/zip.js +518 -99
- package/lib/worker/handler/log.js +1 -1
- package/lib/worker/interactor.js +1 -1
- package/lib-es/utilities/zip.js +517 -98
- package/lib-es/worker/handler/log.js +1 -1
- package/lib-es/worker/interactor.js +1 -1
- package/package.json +2 -2
package/lib/utilities/zip.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
export declare const zipDir: (dirPath: string,
|
|
1
|
+
export declare const zipDir: (dirPath: string, options?: {
|
|
2
|
+
recursive?: boolean;
|
|
3
|
+
filePattern?: RegExp;
|
|
4
|
+
dirPattern?: RegExp;
|
|
5
|
+
clean?: boolean;
|
|
6
|
+
}) => Promise<File | null>;
|
|
7
|
+
/**
|
|
8
|
+
* 删除目录中不符合规则的旧文件和目录
|
|
9
|
+
* @param dirPath 目录路径
|
|
10
|
+
* @param options.filePattern 文件名匹配规则(不符合的删除)
|
|
11
|
+
* @param options.dirPattern 目录名匹配规则(不符合的删除)
|
|
12
|
+
*/
|
|
13
|
+
export declare const cleanDir: (dirPath: string, options?: {
|
|
14
|
+
filePattern?: RegExp;
|
|
15
|
+
dirPattern?: RegExp;
|
|
16
|
+
}) => Promise<void>;
|
|
2
17
|
export declare const createMultiEntryZip: () => {
|
|
3
18
|
addFile: (fileName: string, content: string) => void;
|
|
4
19
|
finish: () => Promise<ArrayBuffer>;
|