@amplitude/experiment-js-client
Advanced tools
Comparing version 1.9.5 to 1.9.6
@@ -293,3 +293,3 @@ import { AnalyticsConnector } from '@amplitude/analytics-connector'; | ||
var version = "1.9.5"; | ||
var version = "1.9.6"; | ||
@@ -773,4 +773,9 @@ class ConnectorUserProvider { | ||
this.flags = getFlagStorage(this.apiKey, this.config.instanceName, storage); | ||
this.flags.load(); | ||
this.variants.load(); | ||
try { | ||
this.flags.load(); | ||
this.variants.load(); | ||
} | ||
catch (e) { | ||
console.warn('Failed to load flags and variants from localStorage', e); | ||
} | ||
} | ||
@@ -935,3 +940,8 @@ /** | ||
this.variants.clear(); | ||
void this.variants.store(); | ||
try { | ||
void this.variants.store(); | ||
} | ||
catch (e) { | ||
console.warn('Failed to store variants in localStorage', e); | ||
} | ||
} | ||
@@ -1253,3 +1263,8 @@ /** | ||
this.flags.putAll(flags); | ||
this.flags.store(); | ||
try { | ||
this.flags.store(); | ||
} | ||
catch (e) { | ||
console.warn('Failed to store flags in localStorage', e); | ||
} | ||
}); | ||
@@ -1270,3 +1285,8 @@ } | ||
} | ||
this.variants.store(); | ||
try { | ||
this.variants.store(); | ||
} | ||
catch (e) { | ||
console.warn('Failed to store variants in localStorage', e); | ||
} | ||
this.debug('[Experiment] Stored variants: ', variants); | ||
@@ -1273,0 +1293,0 @@ }); |
{ | ||
"name": "@amplitude/experiment-js-client", | ||
"version": "1.9.5", | ||
"version": "1.9.6", | ||
"description": "Amplitude Experiment Javascript Client SDK", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
], | ||
"gitHead": "aefd56b2ab26c57565445a8538f38e69778fcaa6" | ||
"gitHead": "62f44c660cfcf5709859b0f1721f6467b34cda60" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
343557
8413