@umituz/react-native-exception 1.2.9 → 1.2.11

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-exception",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "Exception handling and error tracking for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -25,12 +25,14 @@
25
25
  "url": "https://github.com/umituz/react-native-exception"
26
26
  },
27
27
  "peerDependencies": {
28
- "@umituz/react-native-localization": "latest",
28
+ "@umituz/react-native-firebase": "latest",
29
+ "@umituz/react-native-firebase-auth": "latest",
29
30
  "react": ">=18.2.0",
30
31
  "react-native": ">=0.74.0"
31
32
  },
32
33
  "devDependencies": {
33
- "@umituz/react-native-localization": "latest",
34
+ "@umituz/react-native-firebase": "latest",
35
+ "@umituz/react-native-firebase-auth": "latest",
34
36
  "@types/react": "~19.1.10",
35
37
  "react": "19.1.0",
36
38
  "react-native": "0.81.5",
@@ -44,4 +46,4 @@
44
46
  "README.md",
45
47
  "LICENSE"
46
48
  ]
47
- }
49
+ }
@@ -141,16 +141,18 @@ export class ExceptionLogger {
141
141
  */
142
142
  protected async getStorageItem(key: string): Promise<string | null> {
143
143
  // Default implementation using localStorage/globalThis for web, AsyncStorage for RN
144
- if (typeof globalThis !== 'undefined' && globalThis.localStorage) {
145
- return globalThis.localStorage.getItem(key);
144
+ const g = globalThis as any;
145
+ if (typeof g !== 'undefined' && g.localStorage) {
146
+ return g.localStorage.getItem(key);
146
147
  }
147
148
  // For React Native, this would be overridden
148
149
  return null;
149
150
  }
150
151
 
151
152
  protected async setStorageItem(key: string, value: string): Promise<void> {
152
- if (typeof globalThis !== 'undefined' && globalThis.localStorage) {
153
- globalThis.localStorage.setItem(key, value);
153
+ const g = globalThis as any;
154
+ if (typeof g !== 'undefined' && g.localStorage) {
155
+ g.localStorage.setItem(key, value);
154
156
  }
155
157
  // For React Native, this would be overridden
156
158
  }