@umituz/react-native-firebase 1.13.45 → 1.13.47

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.13.45",
3
+ "version": "1.13.47",
4
4
  "description": "Unified Firebase package for React Native apps - Auth and Firestore services using Firebase JS SDK (no native modules).",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -32,7 +32,7 @@
32
32
  "url": "https://github.com/umituz/react-native-firebase"
33
33
  },
34
34
  "peerDependencies": {
35
- "@umituz/react-native-storage": "*",
35
+ "@umituz/react-native-storage": "latest",
36
36
  "expo-apple-authentication": ">=6.0.0",
37
37
  "expo-crypto": ">=13.0.0",
38
38
  "firebase": ">=10.0.0",
@@ -43,7 +43,7 @@
43
43
  "@react-native-async-storage/async-storage": "^2.2.0",
44
44
  "@types/jest": "^30.0.0",
45
45
  "@types/react": "~19.1.10",
46
- "@umituz/react-native-storage": "*",
46
+ "@umituz/react-native-storage": "latest",
47
47
  "expo-apple-authentication": "^8.0.8",
48
48
  "expo-crypto": "^15.0.8",
49
49
  "firebase": "^12.6.0",
@@ -87,15 +87,27 @@ class FirestoreClientSingleton {
87
87
  try {
88
88
  // Try to get Firebase App (will auto-initialize if config is available)
89
89
  const app = getFirebaseApp();
90
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
91
+ // eslint-disable-next-line no-console
92
+ console.log("[FirestoreClient] getFirestore - app:", !!app);
93
+ }
90
94
  if (app) {
91
95
  this.initialize();
92
96
  }
93
- } catch {
97
+ } catch (e) {
94
98
  // Firebase App not available, return null (offline mode)
99
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
100
+ // eslint-disable-next-line no-console
101
+ console.log("[FirestoreClient] getFirestore error:", e);
102
+ }
95
103
  return null;
96
104
  }
97
105
  }
98
106
 
107
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
108
+ // eslint-disable-next-line no-console
109
+ console.log("[FirestoreClient] returning firestore:", !!this.firestore, "constructor:", this.firestore?.constructor?.name);
110
+ }
99
111
  // Return null if not initialized (offline mode - no error)
100
112
  return this.firestore || null;
101
113
  }