homey-api 3.14.16 → 3.14.18
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/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homey-api",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.18",
|
|
4
4
|
"description": "Homey API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"/lib",
|
|
8
8
|
"/assets/specifications",
|
|
9
9
|
"/assets/types",
|
|
10
|
-
"/patches",
|
|
11
10
|
"/index.js",
|
|
12
11
|
"/index.browser.js"
|
|
13
12
|
],
|
|
@@ -34,8 +33,7 @@
|
|
|
34
33
|
"generate-jsdoc": "node tools/generate-jsdoc.js",
|
|
35
34
|
"generate-types": "node tools/generate-types.js && prettier --write assets/types",
|
|
36
35
|
"validate-types": "npx tsc --noEmit ./assets/types/homey-api.d.ts",
|
|
37
|
-
"example-browser": "http-server ./examples/browser/ --port 80"
|
|
38
|
-
"postinstall": "patch-package"
|
|
36
|
+
"example-browser": "http-server ./examples/browser/ --port 80"
|
|
39
37
|
},
|
|
40
38
|
"repository": {
|
|
41
39
|
"type": "git",
|
|
@@ -52,8 +50,8 @@
|
|
|
52
50
|
"dependencies": {
|
|
53
51
|
"form-data": "^4.0.0",
|
|
54
52
|
"node-fetch": "^2.6.7",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
53
|
+
"socket.io-client": "^2.5.0",
|
|
54
|
+
"engine.io-client": "https://github.com/athombv/engine.io-client/tarball/backport/infinite-loop-fix-node-native-websocket"
|
|
57
55
|
},
|
|
58
56
|
"devDependencies": {
|
|
59
57
|
"@athombv/jsdoc-template": "^1.6.2",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Fixes 'Maximum call stack size exceeded' exception when closing the connection.
|
|
2
|
-
# After updating from Node.js 18 to Node.js 22 socket.io uses native node WebSocket
|
|
3
|
-
# module which has a different behavior when closing the connection. This is fixed in
|
|
4
|
-
# engine.io-client@6.6.2 which requires updating socket.io-client to 4.8.1, but
|
|
5
|
-
# we are currently on 2.5.0.
|
|
6
|
-
# Related issue: https://github.com/socketio/socket.io/issues/5194
|
|
7
|
-
|
|
8
|
-
diff --git a/node_modules/engine.io-client/lib/transports/websocket.js b/node_modules/engine.io-client/lib/transports/websocket.js
|
|
9
|
-
index f9c4b7a..3d6c509 100644
|
|
10
|
-
--- a/node_modules/engine.io-client/lib/transports/websocket.js
|
|
11
|
-
+++ b/node_modules/engine.io-client/lib/transports/websocket.js
|
|
12
|
-
@@ -245,6 +245,7 @@ WS.prototype.onClose = function () {
|
|
13
|
-
|
|
14
|
-
WS.prototype.doClose = function () {
|
|
15
|
-
if (typeof this.ws !== 'undefined') {
|
|
16
|
-
+ this.ws.onerror = () => {};
|
|
17
|
-
this.ws.close();
|
|
18
|
-
}
|
|
19
|
-
};
|