@jvsoft/utils 0.0.13-alpha.5 → 0.0.13-alpha.6

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.
@@ -1,2 +1,26 @@
1
1
  export declare function b64Encode(val: string): string;
2
2
  export declare function b64Decode(val: string): string;
3
+ /**
4
+ * Codificar string a Base64 (UTF-8 seguro)
5
+ */
6
+ export declare function encodeBase64String(str: string): string;
7
+ /**
8
+ * Decodificar Base64 a string (UTF-8 seguro)
9
+ */
10
+ export declare function decodeBase64String(b64: string): string;
11
+ /**
12
+ * Codificar un objeto a base64 (UTF-8 seguro)
13
+ */
14
+ export declare function encodeBase64Object(obj: any): string;
15
+ /**
16
+ * Decodificar un base64 y obtener el objeto original
17
+ */
18
+ export declare function decodeBase64Object<T = any>(b64: string): T;
19
+ /**
20
+ * Codificar archivo a Base64 (retorna solo el contenido, sin "data:...")
21
+ */
22
+ export declare function encodeBase64File(file: File | Blob): Promise<string>;
23
+ /**
24
+ * Decodificar Base64 a Blob (para reconstruir archivos en Angular)
25
+ */
26
+ export declare function decodeBase64ToBlob(b64: string, mimeType?: string): Blob;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jvsoft/utils",
3
- "version": "0.0.13-alpha.5",
3
+ "version": "0.0.13-alpha.6",
4
4
  "description": "JVSOFT Angular Utils",
5
5
  "publishConfig": {
6
6
  "tag": "alpha",
@@ -11,17 +11,7 @@
11
11
  "@angular/core": ">=16.0.0",
12
12
  "@angular/forms": ">=16.0.0",
13
13
  "@angular/material": ">=16.0.0",
14
- "@rxweb/reactive-form-validators": ">=13.0.0",
15
- "crypto-js": "^4.2.0",
16
- "file-saver": "^2.0.5",
17
- "jwt-decode": "^4.0.0",
18
- "moment": "^2.30.1",
19
- "ngx-toastr": "^19.0.0",
20
- "sweetalert2": "^11.17.2",
21
- "xlsx": "^0.18.5"
22
- },
23
- "dependencies": {
24
- "tslib": "^2.3.0"
14
+ "@rxweb/reactive-form-validators": ">=13.0.0"
25
15
  },
26
16
  "sideEffects": false,
27
17
  "module": "fesm2022/jvsoft-utils.mjs",
@@ -38,13 +28,16 @@
38
28
  "types": "./src/functions/index.d.ts",
39
29
  "default": "./fesm2022/jvsoft-utils-src-functions.mjs"
40
30
  },
41
- "./src/pipes": {
42
- "types": "./src/pipes/index.d.ts",
43
- "default": "./fesm2022/jvsoft-utils-src-pipes.mjs"
44
- },
45
31
  "./src/interfaces": {
46
32
  "types": "./src/interfaces/index.d.ts",
47
33
  "default": "./fesm2022/jvsoft-utils-src-interfaces.mjs"
34
+ },
35
+ "./src/pipes": {
36
+ "types": "./src/pipes/index.d.ts",
37
+ "default": "./fesm2022/jvsoft-utils-src-pipes.mjs"
48
38
  }
39
+ },
40
+ "dependencies": {
41
+ "tslib": "^2.3.0"
49
42
  }
50
43
  }
@@ -1,2 +1,26 @@
1
1
  export declare function b64Encode(val: string): string;
2
2
  export declare function b64Decode(val: string): string;
3
+ /**
4
+ * Codificar string a Base64 (UTF-8 seguro)
5
+ */
6
+ export declare function encodeBase64String(str: string): string;
7
+ /**
8
+ * Decodificar Base64 a string (UTF-8 seguro)
9
+ */
10
+ export declare function decodeBase64String(b64: string): string;
11
+ /**
12
+ * Codificar un objeto a base64 (UTF-8 seguro)
13
+ */
14
+ export declare function encodeBase64Object(obj: any): string;
15
+ /**
16
+ * Decodificar un base64 y obtener el objeto original
17
+ */
18
+ export declare function decodeBase64Object<T = any>(b64: string): T;
19
+ /**
20
+ * Codificar archivo a Base64 (retorna solo el contenido, sin "data:...")
21
+ */
22
+ export declare function encodeBase64File(file: File | Blob): Promise<string>;
23
+ /**
24
+ * Decodificar Base64 a Blob (para reconstruir archivos en Angular)
25
+ */
26
+ export declare function decodeBase64ToBlob(b64: string, mimeType?: string): Blob;