@vtj/utils 0.8.91 → 0.8.93
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/index.cjs +9 -9
- package/dist/index.iife.js +19 -19
- package/dist/index.mjs +320 -316
- package/dist/index.umd.js +19 -19
- package/package.json +2 -2
- package/types/request.d.ts +1 -1
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/utils",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.93",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@vtj/base": "~0.8.9"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"fetch-jsonp": "~1.3.0",
|
|
13
13
|
"js-cookie": "~3.0.5",
|
|
14
14
|
"load-script": "~2.0.0",
|
|
15
|
-
"@vtj/cli": "~0.8.
|
|
15
|
+
"@vtj/cli": "~0.8.22"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
package/types/request.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ export declare function createApi<R = any, D = any>(config: string | IRequestCon
|
|
|
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
|
|
124
|
+
export declare function createApis(map: IApiMap): Record<string, (data?: unknown, opts?: IRequestConfig) => Promise<unknown>>;
|
|
125
125
|
export declare function useApi<R = any>(api: Promise<R>, transform?: (res: any) => R): {
|
|
126
126
|
data: Ref< UnwrapRef<R> | null>;
|
|
127
127
|
error: Ref<any>;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/utils
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.93
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.93";
|