@ldmjs/ui 1.0.58 → 1.0.60
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.d.ts +4 -4
- package/dist/index.js +14 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ export declare function fileToBase64(value: File | Blob): Promise<string>;
|
|
|
66
66
|
/* convert Base64 string to Uint8Array */
|
|
67
67
|
export declare function base64ToUint8Array(base64: string): Uint8Array;
|
|
68
68
|
/* convert Uint8Array to Hexadecimal system */
|
|
69
|
-
export declare function
|
|
69
|
+
export declare function uint8ArrayToHex(bytes: Uint8Array): string;
|
|
70
70
|
/* convert a hex string to an ArrayBuffer */
|
|
71
71
|
export declare function hexToArrayBuffer(hex: string): Array<number>;
|
|
72
72
|
/* convert Uint8Array to Base64 */
|
|
73
|
-
export declare function
|
|
73
|
+
export declare function uint8ArrayToBase64(value: Uint8Array): string
|
|
74
74
|
/* convert ArrayBuffer to Uint8Array */
|
|
75
75
|
export declare function arrayBufferToUint8Array(value: ArrayBuffer): Uint8Array;
|
|
76
76
|
|
|
@@ -118,9 +118,9 @@ declare module '@vue/runtime-core' {
|
|
|
118
118
|
fileToArrayBuffer: (value: File | Blob) => Promise<ArrayBuffer>;
|
|
119
119
|
fileToBase64: (value: File | Blob) => Promise<string>;
|
|
120
120
|
base64ToUint8Array: (base64: string) => Uint8Array;
|
|
121
|
-
|
|
121
|
+
uint8ArrayToHex: (bytes: Uint8Array) => string;
|
|
122
122
|
hexToArrayBuffer: (hex: string) => Array<number>;
|
|
123
|
-
|
|
123
|
+
uint8ArrayToBase64: (value: Uint8Array) => string;
|
|
124
124
|
arrayBufferToUint8Array: (value: ArrayBuffer) => Uint8Array;
|
|
125
125
|
};
|
|
126
126
|
$ldmui: {
|
package/dist/index.js
CHANGED
|
@@ -266,7 +266,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
266
266
|
ModalType: () => (/* reexport */ ModalType),
|
|
267
267
|
PromptDialog: () => (/* reexport */ PromptDialog),
|
|
268
268
|
SelectDialog: () => (/* reexport */ SelectDialog),
|
|
269
|
-
Uint8ArrayToHex: () => (/* reexport */ Uint8ArrayToHex),
|
|
269
|
+
Uint8ArrayToHex: () => (/* reexport */ converting_namespaceObject.Uint8ArrayToHex),
|
|
270
270
|
ValidateMixin: () => (/* reexport */ ValidateMixin),
|
|
271
271
|
ValidateMixinOptions: () => (/* reexport */ ValidateMixinOptions),
|
|
272
272
|
alphaNumRule: () => (/* reexport */ validators_js_.alphaNumRule),
|
|
@@ -307,11 +307,22 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
307
307
|
validators: () => (/* reexport */ validators_js_.validators)
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
+
// NAMESPACE OBJECT: ./src/utils/converting.ts
|
|
311
|
+
var converting_namespaceObject = {};
|
|
312
|
+
__webpack_require__.r(converting_namespaceObject);
|
|
313
|
+
__webpack_require__.d(converting_namespaceObject, {
|
|
314
|
+
E_: () => (base64ToUint8Array),
|
|
315
|
+
D$: () => (fileToArrayBuffer),
|
|
316
|
+
bB: () => (fileToBase64),
|
|
317
|
+
_1: () => (hexToArrayBuffer),
|
|
318
|
+
Y4: () => (uint8ArrayToBase64)
|
|
319
|
+
});
|
|
320
|
+
|
|
310
321
|
// NAMESPACE OBJECT: ./src/utils/index.ts
|
|
311
322
|
var src_utils_namespaceObject = {};
|
|
312
323
|
__webpack_require__.r(src_utils_namespaceObject);
|
|
313
324
|
__webpack_require__.d(src_utils_namespaceObject, {
|
|
314
|
-
Uint8ArrayToHex: () => (Uint8ArrayToHex),
|
|
325
|
+
Uint8ArrayToHex: () => (converting_namespaceObject.Uint8ArrayToHex),
|
|
315
326
|
awaiting: () => (awaiting),
|
|
316
327
|
base64: () => (base64),
|
|
317
328
|
base64ToUint8Array: () => (base64ToUint8Array),
|
|
@@ -14630,7 +14641,7 @@ function base64ToUint8Array(base64) {
|
|
|
14630
14641
|
}
|
|
14631
14642
|
return arr;
|
|
14632
14643
|
}
|
|
14633
|
-
function
|
|
14644
|
+
function uint8ArrayToHex(bytes) {
|
|
14634
14645
|
const hex = [];
|
|
14635
14646
|
/* eslint-disable-next-line @typescript-eslint/prefer-for-of */
|
|
14636
14647
|
for (let i = 0; i < bytes.length; i++) {
|