@firebase/util 1.9.1 → 1.9.2-canary.36558bd2e

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.
@@ -38,6 +38,12 @@ interface Base64 {
38
38
  init_(): void;
39
39
  }
40
40
  export declare const base64: Base64;
41
+ /**
42
+ * An error encountered while decoding base64 string.
43
+ */
44
+ export declare class DecodeBase64StringError extends Error {
45
+ readonly name = "DecodeBase64StringError";
46
+ }
41
47
  /**
42
48
  * URL-safe base64 encoding
43
49
  */
@@ -38,6 +38,12 @@ interface Base64 {
38
38
  init_(): void;
39
39
  }
40
40
  export declare const base64: Base64;
41
+ /**
42
+ * An error encountered while decoding base64 string.
43
+ */
44
+ export declare class DecodeBase64StringError extends Error {
45
+ readonly name = "DecodeBase64StringError";
46
+ }
41
47
  /**
42
48
  * URL-safe base64 encoding
43
49
  */
@@ -189,6 +189,13 @@ export declare function createSubscribe<T>(executor: Executor<T>, onNoObservers?
189
189
  */
190
190
  export declare const decode: (token: string) => DecodedToken;
191
191
 
192
+ /**
193
+ * An error encountered while decoding base64 string.
194
+ */
195
+ export declare class DecodeBase64StringError extends Error {
196
+ readonly name = "DecodeBase64StringError";
197
+ }
198
+
192
199
  declare interface DecodedToken {
193
200
  header: object;
194
201
  claims: Claims;
package/dist/util.d.ts CHANGED
@@ -189,6 +189,13 @@ export declare function createSubscribe<T>(executor: Executor<T>, onNoObservers?
189
189
  */
190
190
  export declare const decode: (token: string) => DecodedToken;
191
191
 
192
+ /**
193
+ * An error encountered while decoding base64 string.
194
+ */
195
+ export declare class DecodeBase64StringError extends Error {
196
+ readonly name = "DecodeBase64StringError";
197
+ }
198
+
192
199
  declare interface DecodedToken {
193
200
  header: object;
194
201
  claims: Claims;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.9.1",
3
+ "version": "1.9.2-canary.36558bd2e",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",
@@ -15,11 +15,11 @@
15
15
  "require": "./dist/index.node.cjs.js"
16
16
  },
17
17
  "esm5": "./dist/index.esm5.js",
18
- "default": "./dist/index.esm2017.js",
19
18
  "browser": {
20
19
  "require": "./dist/index.cjs.js",
21
20
  "import": "./dist/index.esm2017.js"
22
- }
21
+ },
22
+ "default": "./dist/index.esm2017.js"
23
23
  },
24
24
  "./package.json": "./package.json"
25
25
  },