@vtj/utils 0.13.34 → 0.13.35

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/utils",
3
3
  "private": false,
4
- "version": "0.13.34",
4
+ "version": "0.13.35",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -21,15 +21,15 @@
21
21
  "author": "chenhuachun",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@vtj/base": "~0.12.3"
24
+ "@vtj/base": "~0.12.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/js-cookie": "~3.0.6",
28
- "axios": "~1.11.0",
28
+ "axios": "~1.13.0",
29
29
  "fetch-jsonp": "~1.3.0",
30
30
  "js-cookie": "~3.0.5",
31
31
  "load-script": "~2.0.0",
32
- "@vtj/cli": "~0.12.14"
32
+ "@vtj/cli": "~0.12.15"
33
33
  },
34
34
  "exports": {
35
35
  ".": {
@@ -126,6 +126,7 @@ export interface UseApiReturn<R = any> {
126
126
  data: Ref<R | null>;
127
127
  error: Ref<any>;
128
128
  loading: Ref<boolean>;
129
+ reload: () => void;
129
130
  }
130
- export declare function useApi<R = any>(api: Promise<R>, transform?: (res: any) => R): UseApiReturn<R>;
131
+ export declare function useApi<R = any>(loader: Promise<R> | (() => Promise<R>), transform?: (res: any) => R): UseApiReturn<R>;
131
132
  export { axios, LOCAL_REQUEST_ID, type AxiosRequestConfig, type AxiosResponse, type RawAxiosRequestHeaders };
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/utils
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.13.33
5
+ * @version 0.13.34
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.13.33";
8
+ export declare const version = "0.13.34";