@statsig/client-core 3.30.1 → 3.30.2
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
package/src/StatsigMetadata.d.ts
CHANGED
package/src/StatsigMetadata.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StatsigMetadataProvider = exports.SDK_VERSION = void 0;
|
|
4
|
-
exports.SDK_VERSION = '3.30.
|
|
4
|
+
exports.SDK_VERSION = '3.30.2';
|
|
5
5
|
let metadata = {
|
|
6
6
|
sdkVersion: exports.SDK_VERSION,
|
|
7
7
|
sdkType: 'js-mono', // js-mono is overwritten by Precomp and OnDevice clients
|
package/src/StorageProvider.js
CHANGED
|
@@ -75,7 +75,13 @@ exports.Storage = {
|
|
|
75
75
|
};
|
|
76
76
|
function _getObjectFromStorage(key) {
|
|
77
77
|
const value = exports.Storage.getItem(key);
|
|
78
|
-
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(value !== null && value !== void 0 ? value : 'null');
|
|
80
|
+
}
|
|
81
|
+
catch (e) {
|
|
82
|
+
Log_1.Log.error(`Failed to parse value for key "${key}"`);
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
79
85
|
}
|
|
80
86
|
exports._getObjectFromStorage = _getObjectFromStorage;
|
|
81
87
|
function _setObjectInStorage(key, obj) {
|