@quentinadam/base58check 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.
@@ -15,12 +15,12 @@ export interface Options {
15
15
  * @param options The options to use for encoding.
16
16
  * @returns The base58check encoded string.
17
17
  */
18
- export declare function encode(buffer: Uint8Array, options?: Options): string;
18
+ export declare function encode(buffer: Uint8Array<ArrayBuffer>, options?: Options): string;
19
19
  /**
20
- * Decodes a base58check encoded string into a Uint8Array buffer.
20
+ * Decodes a base58check encoded string into a Uint8Array<ArrayBuffer> buffer.
21
21
  *
22
22
  * @param string The base58check encoded string.
23
23
  * @param options The options to use for decoding.
24
24
  * @returns The decoded buffer.
25
25
  */
26
- export declare function decode(string: string, options?: Options): Uint8Array;
26
+ export declare function decode(string: string, options?: Options): Uint8Array<ArrayBuffer>;
@@ -16,7 +16,7 @@ export function encode(buffer, options) {
16
16
  return base58.encode(Uint8ArrayExtension.concat([buffer, computeChecksum(buffer)]), options);
17
17
  }
18
18
  /**
19
- * Decodes a base58check encoded string into a Uint8Array buffer.
19
+ * Decodes a base58check encoded string into a Uint8Array<ArrayBuffer> buffer.
20
20
  *
21
21
  * @param string The base58check encoded string.
22
22
  * @param options The options to use for decoding.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quentinadam/base58check",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "A simple library to encode and decode base58check strings",
5
5
  "license": "MIT",
6
6
  "author": "Quentin Adam",
@@ -15,9 +15,9 @@
15
15
  "README.md"
16
16
  ],
17
17
  "dependencies": {
18
- "@quentinadam/assert": "^0.1.10",
19
- "@quentinadam/base58": "^0.1.5",
20
- "@quentinadam/hash": "^0.1.1",
21
- "@quentinadam/uint8array-extension": "^0.1.5"
18
+ "@quentinadam/assert": "^0.1.12",
19
+ "@quentinadam/base58": "^0.1.7",
20
+ "@quentinadam/hash": "^0.1.5",
21
+ "@quentinadam/uint8array-extension": "^0.1.7"
22
22
  }
23
23
  }