@umituz/react-native-firebase 1.13.72 → 1.13.73
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.73",
|
|
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",
|
|
@@ -14,8 +14,6 @@ import type { AccountDeletionResult, AccountDeletionOptions } from "./reauthenti
|
|
|
14
14
|
|
|
15
15
|
export type { AccountDeletionResult, AccountDeletionOptions } from "./reauthentication.types";
|
|
16
16
|
|
|
17
|
-
declare const __DEV__: boolean;
|
|
18
|
-
|
|
19
17
|
export async function deleteCurrentUser(
|
|
20
18
|
options: AccountDeletionOptions = { autoReauthenticate: true }
|
|
21
19
|
): Promise<AccountDeletionResult> {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This store provides minimal state for low-level Firebase operations.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { createStore } from "@umituz/react-native-design-system";
|
|
10
|
+
import { createStore, type SetState, type GetState } from "@umituz/react-native-design-system";
|
|
11
11
|
import { onAuthStateChanged, type User, type Auth } from "firebase/auth";
|
|
12
12
|
|
|
13
13
|
declare const __DEV__: boolean;
|
|
@@ -35,7 +35,7 @@ export const useFirebaseAuthStore = createStore<AuthState, AuthActions>({
|
|
|
35
35
|
listenerSetup: false,
|
|
36
36
|
},
|
|
37
37
|
persist: false,
|
|
38
|
-
actions: (set
|
|
38
|
+
actions: (set: SetState<AuthState>, get: GetState<AuthState>) => ({
|
|
39
39
|
setupListener: (auth: Auth) => {
|
|
40
40
|
const state = get();
|
|
41
41
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { describe, it, expect, beforeEach, afterEach } from '@jest/globals';
|
|
6
6
|
import { BaseRepository } from '../infrastructure/repositories/BaseRepository';
|
|
7
|
-
import { getFirestore
|
|
7
|
+
import { getFirestore } from '../infrastructure/config/FirestoreClient';
|
|
8
8
|
|
|
9
9
|
// Mock Firestore client
|
|
10
10
|
jest.mock('../infrastructure/config/FirestoreClient', () => ({
|
|
@@ -13,7 +13,6 @@ jest.mock('../infrastructure/config/FirestoreClient', () => ({
|
|
|
13
13
|
}));
|
|
14
14
|
|
|
15
15
|
const mockGetFirestore = getFirestore as jest.MockedFunction<typeof getFirestore>;
|
|
16
|
-
const mockResetFirestoreClient = resetFirestoreClient as jest.MockedFunction<typeof resetFirestoreClient>;
|
|
17
16
|
|
|
18
17
|
describe('BaseRepository', () => {
|
|
19
18
|
let repository: BaseRepository;
|
|
@@ -37,6 +37,7 @@ function getEnvValue(key: ConfigKey): string {
|
|
|
37
37
|
*/
|
|
38
38
|
function loadExpoConfig(): Record<string, string> {
|
|
39
39
|
try {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
40
41
|
const Constants = require('expo-constants');
|
|
41
42
|
const expoConfig = Constants?.expoConfig || Constants?.default?.expoConfig;
|
|
42
43
|
return expoConfig?.extra || {};
|