@algorithm.ts/base64 4.0.1 → 4.0.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <header>
2
2
  <h1 align="center">
3
- <a href="https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.1/packages/base64/#readme">@algorithm.ts/base64</a>
3
+ <a href="https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.3/packages/base64/#readme">@algorithm.ts/base64</a>
4
4
  </h1>
5
5
  <div align="center">
6
6
  <a href="https://www.npmjs.com/package/@algorithm.ts/base64">
@@ -146,4 +146,4 @@ project uses `Uint8Array` to represent byte streams.
146
146
  - [`btoa()` | MDN](https://developer.mozilla.org/en-US/docs/Web/API/btoa)
147
147
 
148
148
  [homepage]:
149
- https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.1/packages/base64#readme
149
+ https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.3/packages/base64#readme
package/lib/cjs/index.cjs CHANGED
@@ -109,4 +109,3 @@ exports.decode = decode;
109
109
  exports.default = index;
110
110
  exports.encode = encode;
111
111
  exports.validate = validate;
112
- //# sourceMappingURL=index.cjs.map
package/lib/esm/index.mjs CHANGED
@@ -101,4 +101,3 @@ const validate = base64.validate.bind(base64);
101
101
  var index = { encode, decode, validate };
102
102
 
103
103
  export { Base64, decode, index as default, encode, validate };
104
- //# sourceMappingURL=index.mjs.map
@@ -22,11 +22,11 @@ declare class Base64 {
22
22
  }
23
23
 
24
24
  declare const encode: (data: Uint8Array) => string;
25
- declare const decode: (text: string) => Uint8Array;
25
+ declare const decode: (text: string) => Uint8Array | never;
26
26
  declare const validate: (text: string) => boolean;
27
27
  declare const _default: {
28
28
  encode: (data: Uint8Array) => string;
29
- decode: (text: string) => Uint8Array;
29
+ decode: (text: string) => Uint8Array | never;
30
30
  validate: (text: string) => boolean;
31
31
  };
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algorithm.ts/base64",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "A Base64 encoding implementation.",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.0",
11
+ "url": "https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.2",
12
12
  "directory": "packages/base64"
13
13
  },
14
- "homepage": "https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.0/packages/base64#readme",
14
+ "homepage": "https://github.com/guanghechen/algorithm.ts/tree/@algorithm.ts/base64@4.0.2/packages/base64#readme",
15
15
  "keywords": [
16
16
  "algorithm",
17
17
  "base64"
@@ -35,5 +35,5 @@
35
35
  "LICENSE",
36
36
  "README.md"
37
37
  ],
38
- "gitHead": "6f3726681c79062af4366237c487bb26d4a19f09"
38
+ "gitHead": "f2094261a9b538d3f285957ce7edb42eff75073c"
39
39
  }