xframelib 1.2.0 → 1.2.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.
@@ -46,6 +46,10 @@ export interface IUIObject {
46
46
  * 网站主题
47
47
  */
48
48
  Theme?: string;
49
+ /**
50
+ * 是否主动自动刷新检查版本,默认为开,除非明确为false,则关闭
51
+ */
52
+ AutoRefresh?: boolean;
49
53
  /**
50
54
  * 其他扩展的属性
51
55
  */
@@ -1,4 +1,4 @@
1
- declare function getGlobalStorage(type: 'localStorage' | 'sessionStorage'): Storage;
1
+ declare function getGlobalStorage(type?: 'localStorage' | 'sessionStorage'): Storage;
2
2
  /**
3
3
  * 创建本地缓存对象
4
4
  */
@@ -7,6 +7,7 @@ declare class StorageHelper {
7
7
  private storage;
8
8
  constructor(prefixKey?: string, storage?: Storage);
9
9
  private getKey;
10
+ getStorage(): Storage;
10
11
  /**
11
12
  * @description 设置缓存
12
13
  * @param {string} key 缓存键
@@ -1,6 +1,6 @@
1
1
  import { default as H5Tool } from './H5Tool';
2
2
  import { default as StringUtils } from './StringUtils';
3
- import { default as StorageHelper, storage } from './Storage';
3
+ import { default as StorageHelper, storage, getGlobalStorage } from './Storage';
4
4
  import { default as uuid, newGuid } from './uuid';
5
5
  import { default as ZipTool } from './ZipTool';
6
6
  import { default as GzipTool } from './GzipTool';
@@ -32,4 +32,4 @@ export * from './AutoUpdate';
32
32
  export * from './LocalForageHelper';
33
33
  export * from './FetchHelper';
34
34
  export * from './Screen';
35
- export { iconv, EncodeOptions, DecodeOptions, GetSignalRClient, WaterMark, XXTEA, H5Tool, StringUtils, StorageHelper as Storage, storage, uuid, newGuid, ZipTool, GzipTool, DayjsTool, WebCacheTool, WarGridTool, CommonTool };
35
+ export { iconv, EncodeOptions, DecodeOptions, GetSignalRClient, WaterMark, XXTEA, H5Tool, StringUtils, StorageHelper, StorageHelper as Storage, storage, getGlobalStorage, uuid, newGuid, ZipTool, GzipTool, DayjsTool, WebCacheTool, WarGridTool, CommonTool };
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "The accumulated front-end development foundation library originates from projects and serves projects.",
5
- "main": "dist/index.cjs",
6
5
  "module": "dist/index.js",
7
6
  "types": "dist/index.d.ts",
8
7
  "typings": "dist/index.d.ts",
@@ -10,8 +9,7 @@
10
9
  "exports": {
11
10
  ".": {
12
11
  "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "require": "./dist/index.cjs"
12
+ "import": "./dist/index.js"
15
13
  },
16
14
  "./style.css": "./dist/index.css",
17
15
  "./index.css": "./dist/index.css",
@@ -46,8 +44,8 @@
46
44
  "@hprose/rpc-html5": "^3.0.10",
47
45
  "@iconify-icons/ant-design": "^1.2.7",
48
46
  "@iconify/vue": "^5.0.1",
49
- "@microsoft/signalr": "^10.0.0",
50
- "axios": "^1.18.1",
47
+ "@microsoft/signalr": "^10.0.11",
48
+ "axios": "^1.19.0",
51
49
  "buffer": "^6.0.3",
52
50
  "fflate": "^0.8.3",
53
51
  "iconv-lite": "^0.7.3",
@@ -64,25 +62,25 @@
64
62
  "@rollup/plugin-commonjs": "^29.0.3",
65
63
  "@rollup/plugin-terser": "^1.0.0",
66
64
  "@rollup/plugin-typescript": "^12.3.0",
67
- "@types/node": "^26.1.1",
65
+ "@types/node": "^26.2.0",
68
66
  "@vitejs/plugin-vue": "^6.0.8",
69
- "@vue/language-core": "^3.3.7",
67
+ "@vue/language-core": "^3.3.9",
70
68
  "comlink": "^4.4.2",
71
- "esbuild": "^0.28.1",
69
+ "esbuild": "^0.28.2",
72
70
  "rollup-plugin-copy": "^3.5.0",
73
71
  "rollup-plugin-esbuild": "^6.2.1",
74
72
  "rollup-plugin-scss": "^4.0.1",
75
73
  "rollup-plugin-vue": "^6.0.0",
76
- "sass": "^1.101.0",
74
+ "sass": "^1.102.0",
77
75
  "tslib": "^2.8.1",
78
76
  "typescript": "^6.x",
79
77
  "unplugin-dts": "1.0.3",
80
- "vite": "^8.1.5",
78
+ "vite": "^8.2.1",
81
79
  "vite-plugin-comlink": "^5.3.0",
82
80
  "vite-plugin-commonjs": "^0.10.4",
83
81
  "vite-plugin-node-polyfills": "^0.28.0",
84
82
  "vite-plugin-static-copy": "^4.1.1",
85
- "vue": "^3.5.40",
83
+ "vue": "^3.5.41",
86
84
  "vue-router": "^5.2.0"
87
85
  }
88
86
  }