@teardown/react-native 2.0.17 → 2.0.18

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": "@teardown/react-native",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -107,9 +107,15 @@ export class IdentityClient {
107
107
  }
108
108
  this.initialized = true;
109
109
 
110
- // Load state from storage first (for fallback if identify fails)
111
- this.identifyState = this.getIdentifyStateFromStorage();
112
- this.logger.debug(`Initialized with state: ${this.identifyState.type}`);
110
+ try {
111
+ // Load state from storage first (for fallback if identify fails)
112
+ this.identifyState = this.getIdentifyStateFromStorage();
113
+ this.logger.debug(`Initialized with state: ${this.identifyState.type}`);
114
+ } catch (error) {
115
+ // Silently fail on errors - we'll re-identify on app boot if needed
116
+ this.logger.debug("Error initializing IdentityClient", { error });
117
+ this.identifyState = { type: "unidentified" };
118
+ }
113
119
 
114
120
  // Always identify on app boot to refresh version status
115
121
  await this.identify();