@wildix/xbees-connect 1.1.2-alpha.1 → 1.1.2-alpha.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.1.2-alpha.0",
3
+ "version": "1.1.2-alpha.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": "",
@@ -190,12 +190,15 @@ export interface ConnectClient {
190
190
  onCallEnded: (callback: Callback<EventType.TERMINATE_CALL>) => void;
191
191
  /**
192
192
  * Removes particular callback from handling events */
193
- off: (callback: Callback) => void;
193
+ off: (callback: Callback | StorageEventCallback) => void;
194
194
  /**
195
195
  * saves data to localStorage */
196
196
  saveToStorage: (key: string, value: any) => void;
197
197
  /**
198
198
  * Retrieves data from localStorage */
199
199
  getFromStorage: (key: string) => void;
200
+ /**
201
+ * listens on localStorage */
202
+ onStorage: (listener: StorageEventCallback) => void;
200
203
  }
201
204
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.1.2-alpha.1",
3
+ "version": "1.1.2-alpha.3",
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": "a481bbfe4b0fdcba3b554a1af7015cedf6f6ba82"
45
+ "gitHead": "7c880b978a6db592446cd5fba59f3b4bf1f94996"
46
46
  }