@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.
- package/dist-es/package.json +1 -1
- package/dist-es/src/Client.js +16 -6
- package/package.json +2 -2
package/dist-es/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.1.
|
|
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": "",
|
package/dist-es/src/Client.js
CHANGED
|
@@ -225,9 +225,14 @@ export class Client {
|
|
|
225
225
|
}
|
|
226
226
|
onSuggestContacts(callback) {
|
|
227
227
|
// send event to x-bees
|
|
228
|
-
|
|
229
|
-
|
|
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
|
-
|
|
253
|
-
|
|
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.
|
|
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": "
|
|
45
|
+
"gitHead": "4e7dcc5d346412949b0b9ad31ba5aa7ecb685d92"
|
|
46
46
|
}
|