xframelib 1.0.8 → 1.0.9

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.
@@ -0,0 +1,14 @@
1
+ import { default as LocalForage } from 'localforage';
2
+ /**
3
+ * 创建数据库
4
+ * @param dbName
5
+ * @param driver
6
+ * @returns
7
+ */
8
+ declare function createDB(dbName: string, driver?: string): LocalForage;
9
+ /**
10
+ * 删除数据库
11
+ * @param dbName 数据库名
12
+ */
13
+ declare function deleteDB(dbName: string): void;
14
+ export { LocalForage, createDB, deleteDB };
@@ -8,7 +8,7 @@ import { default as DayjsTool } from './DayjsTool';
8
8
  import { default as XXTEA } from './XXTEA';
9
9
  import { default as WaterMark } from './WaterMark';
10
10
  import { GetSignalRClient } from './SignalrClient';
11
- import { default as iconv } from 'iconv-lite';
11
+ import { default as iconv, EncodeOptions, DecodeOptions } from 'iconv-lite';
12
12
  import { default as WebCacheTool } from './WebCacheTool';
13
13
  import { default as WarGridTool } from './WarGridTool';
14
14
  import * as CommonTool from './CommonTool';
@@ -29,4 +29,5 @@ export * from './WidgetsTool';
29
29
  export * from './CommonTool';
30
30
  export * from './FilenameUtils';
31
31
  export * from './AutoUpdate';
32
- export { iconv, GetSignalRClient, WaterMark, XXTEA, H5Tool, StringUtils, StorageHelper as Storage, storage, uuid, newGuid, ZipTool, GzipTool, DayjsTool, WebCacheTool, WarGridTool, CommonTool };
32
+ export * from './LocalForageHelper';
33
+ export { iconv, EncodeOptions, DecodeOptions, GetSignalRClient, WaterMark, XXTEA, H5Tool, StringUtils, StorageHelper as Storage, storage, uuid, newGuid, ZipTool, GzipTool, DayjsTool, WebCacheTool, WarGridTool, CommonTool };
@@ -1,4 +1,4 @@
1
- import { default as iconv } from 'iconv-lite';
1
+ import { EncodeOptions, DecodeOptions } from 'iconv-lite';
2
2
  /**
3
3
  * 差集
4
4
  * @param a
@@ -34,7 +34,7 @@ export declare function convertEncodeByIconv(content: string, srcEncoding: strin
34
34
  * @param options
35
35
  * @returns
36
36
  */
37
- export declare function encodeByIconv(content: string, encoding: string, options?: iconv.Options | undefined): Buffer;
37
+ export declare function encodeByIconv(content: string, encoding: string, options?: EncodeOptions | undefined): Buffer;
38
38
  /**
39
39
  * 文字——解码——Iconv
40
40
  * @param buffer
@@ -42,4 +42,4 @@ export declare function encodeByIconv(content: string, encoding: string, options
42
42
  * @param options
43
43
  * @returns
44
44
  */
45
- export declare function decodeByIconv(buffer: Buffer, encoding: string, options?: iconv.Options | undefined): string;
45
+ export declare function decodeByIconv(buffer: Buffer, encoding: string, options?: DecodeOptions | undefined): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "积累的前端开发基础库,来源于项目,服务于项目。",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",
@@ -35,7 +35,7 @@
35
35
  "@microsoft/signalr": "^10.0.0",
36
36
  "axios": "^1.13.2",
37
37
  "fflate": "^0.8.2",
38
- "iconv-lite": "^0.7.0",
38
+ "iconv-lite": "^0.7.1",
39
39
  "localforage": "^1.10.0",
40
40
  "loglevel": "^1.9.2",
41
41
  "lru-cache": "^11.2.4",
@@ -50,7 +50,8 @@
50
50
  "@rollup/plugin-node-resolve": "^16.0.3",
51
51
  "@rollup/plugin-terser": "^0.4.4",
52
52
  "@rollup/plugin-typescript": "^12.3.0",
53
- "@vitejs/plugin-vue": "^6.0.2",
53
+ "@types/node": "^25.0.2",
54
+ "@vitejs/plugin-vue": "^6.0.3",
54
55
  "esbuild": "^0.27.1",
55
56
  "rollup-plugin-copy": "^3.5.0",
56
57
  "rollup-plugin-esbuild": "^6.2.1",
@@ -59,13 +60,13 @@
59
60
  "rollup-plugin-vue": "^6.0.0",
60
61
  "sass": "^1.96.0",
61
62
  "typescript": "^5.9.3",
62
- "vite": "^7.2.7",
63
+ "vite": "^7.3.0",
63
64
  "vite-plugin-comlink": "^5.3.0",
64
65
  "vite-plugin-commonjs": "^0.10.4",
65
66
  "vite-plugin-dts": "^4.5.4",
66
67
  "vite-plugin-node-polyfills": "^0.24.0",
67
68
  "vite-plugin-static-copy": "^3.1.4",
68
69
  "vue": "^3.5.25",
69
- "vue-router": "^4.6.3"
70
+ "vue-router": "^4.6.4"
70
71
  }
71
72
  }