@quentinadam/hex 0.1.3 → 0.1.5
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/hex.d.ts +2 -2
- package/package.json +2 -2
package/dist/hex.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @param string The hex encoded string.
|
|
5
5
|
* @returns The decoded buffer.
|
|
6
6
|
*/
|
|
7
|
-
export declare function decode(hex: string): Uint8Array
|
|
7
|
+
export declare function decode(hex: string): Uint8Array<ArrayBuffer>;
|
|
8
8
|
/**
|
|
9
9
|
* Encodes a Uint8Array buffer into a hex string.
|
|
10
10
|
*
|
|
11
11
|
* @param buffer The buffer to encode.
|
|
12
12
|
* @returns The hex encoded string.
|
|
13
13
|
*/
|
|
14
|
-
export declare function encode(buffer: Uint8Array): string;
|
|
14
|
+
export declare function encode(buffer: Uint8Array<ArrayBuffer>): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quentinadam/hex",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "A simple library to encode and decode hex strings",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Quentin Adam",
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@quentinadam/assert": "^0.1.
|
|
18
|
+
"@quentinadam/assert": "^0.1.13"
|
|
19
19
|
}
|
|
20
20
|
}
|