homebridge-hap-homematic 0.2.0 → 0.2.2
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/homebridge-ui/server.js +3 -8
- package/package.json +6 -6
package/homebridge-ui/server.js
CHANGED
|
@@ -20,6 +20,9 @@ var HomebridgePluginUiServer = class {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
+
process.on("disconnect", () => {
|
|
24
|
+
process.kill(process.pid, "SIGTERM");
|
|
25
|
+
});
|
|
23
26
|
}
|
|
24
27
|
get homebridgeStoragePath() {
|
|
25
28
|
return process.env.HOMEBRIDGE_STORAGE_PATH;
|
|
@@ -143,14 +146,6 @@ var RequestError = class _RequestError extends Error {
|
|
|
143
146
|
this.requestError = requestError;
|
|
144
147
|
}
|
|
145
148
|
};
|
|
146
|
-
setInterval(() => {
|
|
147
|
-
if (!process.connected) {
|
|
148
|
-
process.kill(process.pid, "SIGTERM");
|
|
149
|
-
}
|
|
150
|
-
}, 1e4);
|
|
151
|
-
process.on("disconnect", () => {
|
|
152
|
-
process.kill(process.pid, "SIGTERM");
|
|
153
|
-
});
|
|
154
149
|
|
|
155
150
|
// homebridge-ui/server.src.js
|
|
156
151
|
import { CcuClient } from "../dist/src/ccu/CcuClient.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-hap-homematic",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Homebridge plugin for HomeMatic / HomematicIP devices on a CCU / OpenCCU, using XML-RPC only. Hard fork of matthiaseinig/Homebridge-Homematic-HAP (homebridge-homematic-hap); not affiliated with thkl/hap-homematic.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && node ./node_modules/typescript/bin/tsc && npm run build:ui",
|
|
37
|
-
"build:ui": "
|
|
37
|
+
"build:ui": "esbuild homebridge-ui/server.src.js --bundle --platform=node --format=esm --target=node24 --outfile=homebridge-ui/server.js --external:../dist/*",
|
|
38
38
|
"lint": "eslint . --max-warnings=0",
|
|
39
39
|
"test": "vitest run",
|
|
40
40
|
"test:watch": "vitest",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"prepack": "npm run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@homebridge/plugin-ui-utils": "^2.
|
|
48
|
+
"@homebridge/plugin-ui-utils": "^2.2.7",
|
|
49
49
|
"homematic-xmlrpc": "^2.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@semantic-release/github": "^12.0.10",
|
|
55
55
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
56
56
|
"@types/node": "^24.10.1",
|
|
57
|
-
"@vitest/coverage-v8": "^
|
|
57
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
58
58
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
59
59
|
"esbuild": "^0.27.7",
|
|
60
|
-
"eslint": "^
|
|
60
|
+
"eslint": "^10.14.0",
|
|
61
61
|
"homebridge": "^2.5.0",
|
|
62
62
|
"nodemon": "^3.1.11",
|
|
63
63
|
"rimraf": "^6.1.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"ts-node": "^10.9.2",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"typescript-eslint": "^8.46.4",
|
|
68
|
-
"vitest": "^
|
|
68
|
+
"vitest": "^5.1.0"
|
|
69
69
|
},
|
|
70
70
|
"homepage": "https://github.com/california444/homebridge-hap-homematic#readme",
|
|
71
71
|
"repository": {
|