@quentinadam/base64 0.1.5 → 0.1.7

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/base64.d.ts CHANGED
@@ -31,12 +31,12 @@ export interface DecodeOptions {
31
31
  * @param options The options to use for encoding.
32
32
  * @returns The base64 encoded string.
33
33
  */
34
- export declare function encode(buffer: Uint8Array, options?: EncodeOptions): string;
34
+ export declare function encode(buffer: Uint8Array<ArrayBuffer>, options?: EncodeOptions): string;
35
35
  /**
36
- * Decodes a base64 encoded string into a Uint8Array buffer.
36
+ * Decodes a base64 encoded string into a Uint8Array<ArrayBuffer> buffer.
37
37
  *
38
38
  * @param string The base64 encoded string.
39
39
  * @param options The options to use for decoding.
40
40
  * @returns The decoded buffer.
41
41
  */
42
- export declare function decode(string: string, options?: DecodeOptions): Uint8Array;
42
+ export declare function decode(string: string, options?: DecodeOptions): Uint8Array<ArrayBuffer>;
package/dist/base64.js CHANGED
@@ -51,7 +51,7 @@ export function encode(buffer, options) {
51
51
  return output.map((digit) => ensure(alphabet[digit])).join('');
52
52
  }
53
53
  /**
54
- * Decodes a base64 encoded string into a Uint8Array buffer.
54
+ * Decodes a base64 encoded string into a Uint8Array<ArrayBuffer> buffer.
55
55
  *
56
56
  * @param string The base64 encoded string.
57
57
  * @param options The options to use for decoding.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quentinadam/base64",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "A simple library to encode and decode base64 strings",
5
5
  "license": "MIT",
6
6
  "author": "Quentin Adam",
@@ -15,7 +15,7 @@
15
15
  "README.md"
16
16
  ],
17
17
  "dependencies": {
18
- "@quentinadam/assert": "^0.1.11",
19
- "@quentinadam/ensure": "^0.1.0"
18
+ "@quentinadam/assert": "^0.1.13",
19
+ "@quentinadam/ensure": "^0.1.2"
20
20
  }
21
21
  }