@umituz/react-native-firebase 1.13.162 → 1.13.164
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.
|
|
3
|
+
"version": "1.13.164",
|
|
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",
|
|
@@ -50,11 +50,11 @@ export abstract class BaseRepository {
|
|
|
50
50
|
* @param userId User identifier
|
|
51
51
|
* @returns CollectionReference or null if db not initialized
|
|
52
52
|
*/
|
|
53
|
-
protected getUserCollection(userId: string): CollectionReference<DocumentData> | null {
|
|
53
|
+
protected getUserCollection = (userId: string): CollectionReference<DocumentData> | null => {
|
|
54
54
|
const db = this.getDb();
|
|
55
55
|
if (!db) return null;
|
|
56
56
|
return collection(db, 'users', userId, this.collectionName);
|
|
57
|
-
}
|
|
57
|
+
};
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Get document reference
|
|
@@ -64,11 +64,11 @@ export abstract class BaseRepository {
|
|
|
64
64
|
* @param documentId Document identifier
|
|
65
65
|
* @returns DocumentReference or null if db not initialized
|
|
66
66
|
*/
|
|
67
|
-
protected getDocRef(userId: string, documentId: string): DocumentReference<DocumentData> | null {
|
|
67
|
+
protected getDocRef = (userId: string, documentId: string): DocumentReference<DocumentData> | null => {
|
|
68
68
|
const db = this.getDb();
|
|
69
69
|
if (!db) return null;
|
|
70
70
|
return doc(db, 'users', userId, this.collectionName, documentId);
|
|
71
|
-
}
|
|
71
|
+
};
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Check if Firestore is initialized
|