@umituz/react-native-firebase 1.7.2 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-firebase",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Unified Firebase package for React Native apps - Centralized initialization and core services (Analytics, Crashlytics).",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -45,4 +45,4 @@
45
45
  "README.md",
46
46
  "LICENSE"
47
47
  ]
48
- }
48
+ }
@@ -8,7 +8,7 @@
8
8
  * Base Firebase error class
9
9
  */
10
10
  export class FirebaseError extends Error {
11
- constructor(message: string, public code?: string) {
11
+ constructor(message: string, public code?: string, public cause?: any) {
12
12
  super(message);
13
13
  this.name = 'FirebaseError';
14
14
  Object.setPrototypeOf(this, FirebaseError.prototype);
@@ -19,8 +19,8 @@ export class FirebaseError extends Error {
19
19
  * Initialization specific error
20
20
  */
21
21
  export class FirebaseInitializationError extends FirebaseError {
22
- constructor(message: string, public cause?: any) {
23
- super(message);
22
+ constructor(message: string, cause?: any) {
23
+ super(message, 'INITIALIZATION_ERROR', cause);
24
24
  this.name = 'FirebaseInitializationError';
25
25
  Object.setPrototypeOf(this, FirebaseInitializationError.prototype);
26
26
  }
@@ -30,8 +30,8 @@ export class FirebaseInitializationError extends FirebaseError {
30
30
  * Configuration specific error
31
31
  */
32
32
  export class FirebaseConfigurationError extends FirebaseError {
33
- constructor(message: string, public cause?: any) {
34
- super(message);
33
+ constructor(message: string, cause?: any) {
34
+ super(message, 'CONFIGURATION_ERROR', cause);
35
35
  this.name = 'FirebaseConfigurationError';
36
36
  Object.setPrototypeOf(this, FirebaseConfigurationError.prototype);
37
37
  }