@vtj/utils 0.13.35 → 0.13.37

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.35",
4
+ "version": "0.13.37",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -29,7 +29,7 @@
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.15"
32
+ "@vtj/cli": "~0.12.17"
33
33
  },
34
34
  "exports": {
35
35
  ".": {
@@ -117,11 +117,11 @@ export interface IStaticRequest<R = any, D = any> extends Request {
117
117
  }
118
118
  export declare function createRequest(options?: IRequestOptions): IStaticRequest;
119
119
  export declare const request: IStaticRequest;
120
- export declare function createApi<R = any, D = any>(config: string | IRequestConfig): (data?: D, opts?: IRequestConfig) => Promise<R>;
120
+ export declare function createApi<R = any, D = any>(config: string | IRequestConfig, req?: IStaticRequest): (data?: D, opts?: IRequestConfig) => Promise<R>;
121
121
  export interface IApiMap {
122
122
  [name: string]: string | IRequestConfig;
123
123
  }
124
- export declare function createApis(map: IApiMap): Record<string, (data?: unknown, opts?: IRequestConfig) => Promise<unknown>>;
124
+ export declare function createApis(map: IApiMap, req?: IStaticRequest): Record<string, (data?: unknown, opts?: IRequestConfig) => Promise<unknown>>;
125
125
  export interface UseApiReturn<R = any> {
126
126
  data: Ref<R | null>;
127
127
  error: Ref<any>;
@@ -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.34
5
+ * @version 0.13.36
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.13.34";
8
+ export declare const version = "0.13.36";