homey-api 3.17.8 → 3.17.9
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.
|
@@ -5,12 +5,6 @@ const APIErrorHomeySubscriptionInactive = require('../../APIErrorHomeySubscripti
|
|
|
5
5
|
const APIErrorHomeyInvalidSerialNumber = require('../../APIErrorHomeyInvalidSerialNumber');
|
|
6
6
|
const Util = require('../../Util');
|
|
7
7
|
|
|
8
|
-
function getRuntimeRequire() {
|
|
9
|
-
// Avoid bundlers statically resolving Node-only discovery transport into the browser build.
|
|
10
|
-
// Using indirect eval so rolldown/vite won't flag it as a direct eval.
|
|
11
|
-
return (0, eval)('require');
|
|
12
|
-
}
|
|
13
|
-
|
|
14
8
|
class DiscoveryManager {
|
|
15
9
|
constructor(homey) {
|
|
16
10
|
this.homey = homey;
|
|
@@ -306,7 +300,7 @@ class DiscoveryManager {
|
|
|
306
300
|
}
|
|
307
301
|
|
|
308
302
|
this.discoveryNodeTransport =
|
|
309
|
-
this.discoveryNodeTransport ||
|
|
303
|
+
this.discoveryNodeTransport || require('./DiscoveryNodeTransport');
|
|
310
304
|
|
|
311
305
|
return this.discoveryNodeTransport;
|
|
312
306
|
}
|
|
@@ -230,12 +230,12 @@ class SocketSession extends EventEmitter {
|
|
|
230
230
|
this.__socket = null;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
this.__closing = false;
|
|
234
|
+
this.__setPhase(PHASES.IDLE);
|
|
235
|
+
|
|
233
236
|
if (shouldEmitDisconnect) {
|
|
234
237
|
this.emit('disconnect', 'io client disconnect');
|
|
235
238
|
}
|
|
236
|
-
|
|
237
|
-
this.__closing = false;
|
|
238
|
-
this.__setPhase(PHASES.IDLE);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
destroy() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homey-api",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.9",
|
|
4
4
|
"description": "Homey API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "SEE LICENSE",
|
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
"url": "https://github.com/athombv/node-homey-api/issues"
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/athombv/node-homey-api#readme",
|
|
48
|
+
"react-native": {
|
|
49
|
+
"./lib/HomeyAPI/HomeyAPIV3/DiscoveryNodeTransport.js": "./lib/HomeyAPI/HomeyAPIV3/DiscoveryNodeTransport.browser.js"
|
|
50
|
+
},
|
|
51
|
+
"browser": {
|
|
52
|
+
"./lib/HomeyAPI/HomeyAPIV3/DiscoveryNodeTransport.js": "./lib/HomeyAPI/HomeyAPIV3/DiscoveryNodeTransport.browser.js"
|
|
53
|
+
},
|
|
48
54
|
"engines": {
|
|
49
55
|
"node": ">=24"
|
|
50
56
|
},
|