@zjlab-fe/util 0.6.1 → 0.7.0

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.
@@ -6,9 +6,9 @@ interface RequestData {
6
6
  method: string;
7
7
  /** 请求入参 */
8
8
  params: Record<string, any> | FormData | string | null | undefined;
9
- /** 开始时间(performance.now() 结果) */
9
+ /** 开始时间(Date.now() 结果) */
10
10
  startTime: number;
11
- /** 结束时间(performance.now() 结果) */
11
+ /** 结束时间(Date.now() 结果) */
12
12
  endTime: number;
13
13
  /** 接口耗时(毫秒,保留1位小数) */
14
14
  duration: number;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 从 URL 获取 JSONL 文件并解析为数组
3
+ * @param url - 要获取的 URL
4
+ * @returns 解析后的数组
5
+ */
6
+ export declare function fetchJsonlAsArray<T = any>(url: string): Promise<T[]>;
1
7
  /**
2
8
  * 上传内容到OSS
3
9
  * @param ossUrl {string} 上传地址
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjlab-fe/util",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",