clickgo 4.0.4 → 4.0.5

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/lib/fs.d.ts CHANGED
@@ -16,14 +16,14 @@ export declare function mount(current: lCore.TCurrent, name: string, handler: IM
16
16
  * @param name 目录名
17
17
  */
18
18
  export declare function unmount(name: string): Promise<boolean>;
19
- export declare function getContent(current: lCore.TCurrent, path: string, options?: {
19
+ export declare function getContent(current: lCore.TCurrent | null, path: string, options?: {
20
20
  'start'?: number;
21
21
  'end'?: number;
22
22
  'progress'?: (loaded: number, total: number) => void | Promise<void>;
23
23
  /** --- 网络模式下携带后缀,如 ?123 --- */
24
24
  'after'?: string;
25
25
  }): Promise<string | Blob | null>;
26
- export declare function getContent(current: lCore.TCurrent, path: string, options: BufferEncoding | {
26
+ export declare function getContent(current: lCore.TCurrent | null, path: string, options: BufferEncoding | {
27
27
  'encoding': BufferEncoding;
28
28
  'start'?: number;
29
29
  'end'?: number;
@@ -30,9 +30,10 @@ export declare function remove(taskId: lCore.TCurrent, name: string): Promise<vo
30
30
  export declare function clear(taskId: lCore.TCurrent): Promise<void>;
31
31
  /**
32
32
  * --- 将 cgt 主题设置到全局所有任务 ---
33
- * @param theme 主题对象
33
+ * @param theme 主题对象或路径
34
+ * @param current 如果要读包内对象,则要传当前任务
34
35
  */
35
- export declare function setGlobal(theme: ITheme): Promise<void>;
36
+ export declare function setGlobal(theme: ITheme | string, current?: lCore.TCurrent | null): Promise<void>;
36
37
  /**
37
38
  * --- 清除全局主题 ---
38
39
  */
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "type": "module",
6
6
  "keywords": [