@yh-ui/request 1.0.26 → 1.0.36
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/cache/index.d.ts +5 -4
- package/package.json +4 -4
package/dist/cache/index.d.ts
CHANGED
|
@@ -5,19 +5,20 @@ export * from './memory';
|
|
|
5
5
|
export * from './localStorage';
|
|
6
6
|
export * from './indexedDB';
|
|
7
7
|
import { MemoryCache, type CacheOptions } from './memory';
|
|
8
|
-
import { LocalStorageCache } from './localStorage';
|
|
9
|
-
import { IndexedDBCache } from './indexedDB';
|
|
8
|
+
import { LocalStorageCache, type LocalStorageCacheOptions } from './localStorage';
|
|
9
|
+
import { IndexedDBCache, type IndexedDBCacheOptions } from './indexedDB';
|
|
10
10
|
/**
|
|
11
11
|
* 创建缓存实例的工厂函数
|
|
12
12
|
*/
|
|
13
13
|
export type CacheType = 'memory' | 'localStorage' | 'indexedDB';
|
|
14
|
+
export type CacheInstanceOptions = CacheOptions | LocalStorageCacheOptions | IndexedDBCacheOptions;
|
|
14
15
|
export interface CacheFactoryOptions {
|
|
15
16
|
/** 缓存类型 */
|
|
16
17
|
type?: CacheType;
|
|
17
18
|
/** 缓存选项 */
|
|
18
|
-
options?:
|
|
19
|
+
options?: CacheInstanceOptions;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* 根据类型创建缓存实例
|
|
22
23
|
*/
|
|
23
|
-
export declare function createCache(type?: CacheType, options?:
|
|
24
|
+
export declare function createCache(type?: CacheType, options?: CacheInstanceOptions): MemoryCache | LocalStorageCache | IndexedDBCache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yh-ui/request",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "YH-UI HTTP request hooks - Enterprise-grade request management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"postpack": "node ../../scripts/prepare-package-manifest.mjs restore"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@yh-ui/utils": "^1.0.
|
|
35
|
+
"@yh-ui/utils": "^1.0.36"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"vue": "^3.5.
|
|
38
|
+
"vue": "^3.5.35",
|
|
39
39
|
"vue-tsc": "^2.2.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"vue": "^3.5.
|
|
42
|
+
"vue": "^3.5.35"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|