@vtj/utils 0.8.89 → 0.8.91
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/index.cjs +8 -8
- package/dist/index.iife.js +13 -13
- package/dist/index.mjs +147 -133
- package/dist/index.umd.js +15 -15
- package/package.json +1 -1
- package/types/util.d.ts +13 -0
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
package/types/util.d.ts
CHANGED
|
@@ -14,3 +14,16 @@ export declare const fileToBase64: (file: File) => Promise<string>;
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
export declare function formDataToJson(data: FormData): Record<string, any>;
|
|
17
|
+
/**
|
|
18
|
+
* Base64 转换 Blob
|
|
19
|
+
* @param dataurl
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function dataURLtoBlob(dataurl: string): Blob;
|
|
23
|
+
/**
|
|
24
|
+
* Blob 转 File
|
|
25
|
+
* @param blob
|
|
26
|
+
* @param fileName
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
export declare function blobToFile(blob: Blob, fileName: string): File;
|
package/types/version.d.ts
CHANGED
|
@@ -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.8.
|
|
5
|
+
* @version 0.8.91
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.91";
|