@wildix/xbees-connect 1.2.27 → 1.2.29
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-cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
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-cjs/src/Client.js
CHANGED
|
@@ -121,7 +121,9 @@ class Client {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
ready(props = types_1.SupportedPlatformVariant.ALL) {
|
|
124
|
-
const payload = typeof props === 'string'
|
|
124
|
+
const payload = typeof props === 'string'
|
|
125
|
+
? { version: this.version(), platform: props }
|
|
126
|
+
: { version: this.version(), ...props, platform: props.platform ?? types_1.SupportedPlatformVariant.ALL };
|
|
125
127
|
this.getXBeesUser();
|
|
126
128
|
return this.sendAsync({
|
|
127
129
|
type: enums_1.ClientEventType.READY,
|
package/dist-es/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
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
|
@@ -115,7 +115,9 @@ export class Client {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
ready(props = SupportedPlatformVariant.ALL) {
|
|
118
|
-
const payload = typeof props === 'string'
|
|
118
|
+
const payload = typeof props === 'string'
|
|
119
|
+
? { version: this.version(), platform: props }
|
|
120
|
+
: { version: this.version(), ...props, platform: props.platform ?? SupportedPlatformVariant.ALL };
|
|
119
121
|
this.getXBeesUser();
|
|
120
122
|
return this.sendAsync({
|
|
121
123
|
type: ClientEventType.READY,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
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": "",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=16"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "822f0458ad85b858ff59879d68928064cd0e6323"
|
|
49
49
|
}
|