@wildix/xbees-connect 1.1.16 → 1.1.17

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.15",
3
+ "version": "1.1.16",
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": "",
@@ -225,9 +225,14 @@ export class Client {
225
225
  }
226
226
  onSuggestContacts(callback) {
227
227
  // send event to x-bees
228
- void this.sendAsync({
229
- type: ClientEventType.CONTACTS_AUTO_SUGGEST_IS_SUPPORTED,
230
- });
228
+ try {
229
+ void this.sendAsync({
230
+ type: ClientEventType.CONTACTS_AUTO_SUGGEST_IS_SUPPORTED,
231
+ });
232
+ }
233
+ catch (error) {
234
+ console.debug('send error - type:', error);
235
+ }
231
236
  return this.addEventListener(EventType.GET_CONTACTS_AUTO_SUGGEST, (query) => {
232
237
  const resolve = (contacts) => this.sendAsync({
233
238
  type: ClientEventType.CONTACTS_AUTO_SUGGEST,
@@ -249,9 +254,14 @@ export class Client {
249
254
  }
250
255
  onLookupAndMatchContact(callback) {
251
256
  // send event to x-bees
252
- void this.sendAsync({
253
- type: ClientEventType.CONTACT_LOOK_UP_AND_MATCH_IS_SUPPORTED,
254
- });
257
+ try {
258
+ void this.sendAsync({
259
+ type: ClientEventType.CONTACT_LOOK_UP_AND_MATCH_IS_SUPPORTED,
260
+ });
261
+ }
262
+ catch (error) {
263
+ console.debug('send error - type:', error);
264
+ }
255
265
  return this.addEventListener(EventType.GET_LOOK_UP_AND_MATCH, (query) => {
256
266
  const resolve = (contact) => this.sendAsync({
257
267
  type: ClientEventType.CONTACT_LOOKUP_AND_MATCH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
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": "2f71923d9d094f77d8e41b6ea7a2e7dc4aed9c1b"
45
+ "gitHead": "4e7dcc5d346412949b0b9ad31ba5aa7ecb685d92"
46
46
  }