xframelib 0.6.0 → 0.6.1
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/README.md +1 -0
- package/dist/api/Token.d.ts +2 -2
- package/dist/core/MsgHelper.d.ts +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.css +76 -76
- package/dist/index.js +6 -6
- package/dist/model/Constants.d.ts +4 -0
- package/dist/utils/Storage.d.ts +10 -1
- package/package.json +3 -3
package/dist/utils/Storage.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare class StorageHelper {
|
|
|
10
10
|
* @description 设置缓存
|
|
11
11
|
* @param {string} key 缓存键
|
|
12
12
|
* @param {*} value 缓存值
|
|
13
|
-
* @param expire
|
|
13
|
+
* @param expire 超时时间为秒
|
|
14
14
|
*/
|
|
15
15
|
set(key: string, value: any, expire?: number | null): void;
|
|
16
16
|
/**
|
|
@@ -19,6 +19,15 @@ declare class StorageHelper {
|
|
|
19
19
|
* @param {*=} def 默认值
|
|
20
20
|
*/
|
|
21
21
|
get(key: string, def?: any): any;
|
|
22
|
+
/**
|
|
23
|
+
* 获取存储对象,带expire属性
|
|
24
|
+
* 返回:
|
|
25
|
+
* {
|
|
26
|
+
* value:any,
|
|
27
|
+
* expire:null|Time
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
30
|
+
getJsonObject(key: string): any;
|
|
22
31
|
/**
|
|
23
32
|
* 从缓存删除某项
|
|
24
33
|
* @param {string} key
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xframelib",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "积累的前端开发基础库",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"common": "dist/index.cjs",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@hprose/io": "^3.0.10",
|
|
27
27
|
"@hprose/rpc-core": "^3.0.10",
|
|
28
28
|
"@hprose/rpc-html5": "^3.0.10",
|
|
29
|
+
"axios": "^0.26.1",
|
|
29
30
|
"localforage": "^1.10.0",
|
|
30
31
|
"spark-md5": "^3.0.2",
|
|
31
32
|
"streamsaver": "^2.0.6",
|
|
32
|
-
"xhr": "^2.6.0"
|
|
33
|
-
"axios": "^0.26.1"
|
|
33
|
+
"xhr": "^2.6.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@rollup/plugin-alias": "^3.1.9",
|