@vtj/utils 0.7.14 → 0.7.16

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/utils",
3
3
  "private": false,
4
- "version": "0.7.14",
4
+ "version": "0.7.16",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vue-tsc && vite build && npm run build:umd",
@@ -11,11 +11,11 @@
11
11
  "coverage": "vitest run --coverage"
12
12
  },
13
13
  "dependencies": {
14
- "@vtj/base": "^0.7.5"
14
+ "@vtj/base": "^0.7.6"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/js-cookie": "~3.0.6",
18
- "@vtj/cli": "^0.7.10",
18
+ "@vtj/cli": "^0.7.12",
19
19
  "axios": "~1.6.4",
20
20
  "fetch-jsonp": "~1.3.0",
21
21
  "js-cookie": "~3.0.5",
@@ -35,7 +35,7 @@
35
35
  "dist",
36
36
  "types"
37
37
  ],
38
- "gitHead": "8e69e3eea31f488f318f28013b7ef3df02ee8174",
38
+ "gitHead": "019f5b44f569449f1590ef591c56986d076a8335",
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  }
package/types/util.d.ts CHANGED
@@ -2,3 +2,9 @@
2
2
  * 是否浏览器环境
3
3
  */
4
4
  export declare const isClient: boolean;
5
+ /**
6
+ * 文件对象 File 转换为 base64
7
+ * @param file
8
+ * @returns
9
+ */
10
+ export declare const fileToBase64: (file: File) => Promise<unknown>;
@@ -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.7.14
5
+ * @version 0.7.16
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.7.14";
8
+ export declare const version = "0.7.16";