clickgo 5.6.0 → 5.6.2

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.
@@ -155,10 +155,11 @@ export declare function getMimeByPath(path: string): {
155
155
  };
156
156
  /**
157
157
  * --- 生成范围内的随机数 ---
158
- * @param min 最新范围
159
- * @param max 最大范围
158
+ * @param min >= 最小值
159
+ * @param max <= 最大值
160
+ * @param prec 保留几位小数
160
161
  */
161
- export declare function rand(min: number, max: number): number;
162
+ export declare function rand(min: number, max: number, prec?: number): number;
162
163
  export declare const RANDOM_N = "0123456789";
163
164
  export declare const RANDOM_U = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
164
165
  export declare const RANDOM_L = "abcdefghijklmnopqrstuvwxyz";
@@ -196,6 +197,11 @@ export declare function getArray(param: string | any[]): any[];
196
197
  * @param html HTML 字符
197
198
  */
198
199
  export declare function escapeHTML(html: string): string;
200
+ /**
201
+ * --- 还原转义后的 HTML ---
202
+ * @param html 已转义的 HTML 字符
203
+ */
204
+ export declare function unescapeHTML(html: string): string;
199
205
  /**
200
206
  * --- 将 rgb 或 hsl 等颜色转换为数字数组 ---
201
207
  * @param color 颜色字符串
@@ -455,7 +461,7 @@ export declare function loadScript(url: string): Promise<boolean>;
455
461
  * @param opt 选项
456
462
  */
457
463
  export declare function loadScripts(urls: string[], opt?: {
458
- 'loaded'?: (url: string, state: number) => void;
464
+ loaded?: (url: string, state: number) => void;
459
465
  }): Promise<void>;
460
466
  /**
461
467
  * --- 加载 css 文件 ---
@@ -469,7 +475,7 @@ export declare function loadLink(url: string, pos?: 'before' | 'after'): Promise
469
475
  * @param opt 选项
470
476
  */
471
477
  export declare function loadLinks(urls: string[], opt?: {
472
- 'loaded'?: (url: string, state: number) => void;
478
+ loaded?: (url: string, state: number) => void;
473
479
  }): Promise<void>;
474
480
  /**
475
481
  * --- 加载 css 字符串 ---