@umituz/react-native-firebase 1.13.63 → 1.13.65

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.
Files changed (2) hide show
  1. package/package.json +4 -1
  2. package/src/index.ts +19 -36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-firebase",
3
- "version": "1.13.63",
3
+ "version": "1.13.65",
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",
@@ -73,6 +73,9 @@
73
73
  ],
74
74
  "exports": {
75
75
  ".": "./src/index.ts",
76
+ "./auth": "./src/auth/index.ts",
77
+ "./firestore": "./src/firestore/index.ts",
78
+ "./storage": "./src/storage/index.ts",
76
79
  "./scripts": {
77
80
  "require": "./dist/scripts/index.js",
78
81
  "import": "./dist/scripts/index.js",
package/src/index.ts CHANGED
@@ -3,29 +3,26 @@
3
3
  *
4
4
  * Domain-Driven Design (DDD) Architecture
5
5
  *
6
- * This package provides Firebase App initialization and core services:
7
- * - Auth (Firebase JS SDK)
8
- * - Firestore (Firebase JS SDK)
6
+ * Core exports - App initialization and shared utilities
9
7
  *
10
- * Usage:
11
- * import { initializeFirebase, getFirebaseApp } from '@umituz/react-native-firebase';
12
- * import { useFirebaseAuth } from '@umituz/react-native-firebase';
13
- * import { getFirestore, BaseRepository } from '@umituz/react-native-firebase';
8
+ * Module-specific exports available via:
9
+ * - @umituz/react-native-firebase/auth
10
+ * - @umituz/react-native-firebase/firestore
11
+ * - @umituz/react-native-firebase/storage
14
12
  */
15
13
 
16
- // =============================================================================
17
- // CORE - App Initialization & Type Definitions
18
- // =============================================================================
19
-
14
+ // Core Errors
20
15
  export {
21
16
  FirebaseError,
22
17
  FirebaseInitializationError,
23
18
  FirebaseConfigurationError,
24
19
  } from './domain/errors/FirebaseError';
25
20
 
21
+ // Core Types
26
22
  export type { FirebaseConfig } from './domain/value-objects/FirebaseConfig';
27
23
  export type { IFirebaseClient } from './application/ports/IFirebaseClient';
28
24
 
25
+ // Core Client
29
26
  export {
30
27
  initializeFirebase,
31
28
  getFirebaseApp,
@@ -44,28 +41,14 @@ export type {
44
41
  ServiceInitializationResult,
45
42
  } from './infrastructure/config/FirebaseClient';
46
43
 
47
- // =============================================================================
48
- // TYPE GUARDS
49
- // =============================================================================
50
-
51
- export * from './domain/guards/firebase-error.guard';
52
-
53
- // =============================================================================
54
- // AUTH MODULE
55
- // =============================================================================
56
-
57
- export * from './auth';
58
-
59
- // =============================================================================
60
- // FIRESTORE MODULE
61
- // =============================================================================
62
-
63
- export * from './firestore';
64
-
65
- // =============================================================================
66
- // STORAGE MODULE
67
- // =============================================================================
68
-
69
- export * from './storage';
70
-
71
-
44
+ // Type Guards
45
+ export {
46
+ isFirestoreError,
47
+ isAuthError,
48
+ isNetworkError,
49
+ isPermissionDeniedError,
50
+ isNotFoundError,
51
+ isQuotaExceededError,
52
+ getSafeErrorMessage,
53
+ getSafeErrorCode,
54
+ } from './domain/guards/firebase-error.guard';