@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/utils",
3
3
  "private": false,
4
- "version": "0.8.89",
4
+ "version": "0.8.91",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@vtj/base": "~0.8.9"
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;
@@ -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.89
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.89";
8
+ export declare const version = "0.8.91";