@wildix/xbees-connect 1.1.2-alpha.4 → 1.1.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/dist-es/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.1.2-alpha.
|
|
3
|
+
"version": "1.1.2-alpha.4",
|
|
4
4
|
"description": "This library provides easy communication between x-bees and integrated web applications",
|
|
5
5
|
"author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -42,7 +42,7 @@ class LocalStorageManager {
|
|
|
42
42
|
}
|
|
43
43
|
save(key, value) {
|
|
44
44
|
// Save data to localStorage
|
|
45
|
-
localStorage.setItem(this.getStorageKey(key), JSON.stringify(value));
|
|
45
|
+
localStorage.setItem(this.getStorageKey(key), typeof value === 'string' ? value : JSON.stringify(value));
|
|
46
46
|
}
|
|
47
47
|
delete(key) {
|
|
48
48
|
// Save data to localStorage
|
|
@@ -55,8 +55,8 @@ class LocalStorageManager {
|
|
|
55
55
|
return !data ? data : JSON.parse(data);
|
|
56
56
|
}
|
|
57
57
|
catch (error) {
|
|
58
|
-
console.
|
|
59
|
-
return
|
|
58
|
+
console.debug('parse data error', error);
|
|
59
|
+
return data;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
get(key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.1.2
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "This library provides easy communication between x-bees and integrated web applications",
|
|
5
5
|
"author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=16"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0d40f71e6014974505807a152e9bc638ee927101"
|
|
46
46
|
}
|