homebridge-plugin-utils 1.11.3 → 1.13.0

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.
@@ -13,14 +13,14 @@
13
13
  "lib": [
14
14
 
15
15
  "DOM",
16
- "ES2022"
16
+ "ES2023"
17
17
  ],
18
18
 
19
19
  "module": "ES2022",
20
20
  "moduleResolution":"node",
21
21
  "sourceMap": true,
22
22
  "strict": true,
23
- "target": "ES2022"
23
+ "target": "ES2023"
24
24
  }
25
25
  }
26
26
  /* When creating your own tsconfig.json, use the following as a starting point to inherit these defaults:
package/dist/ui/webUi.mjs CHANGED
@@ -142,11 +142,8 @@ export class webUi {
142
142
  document.getElementById("menuFeatureOptions").addEventListener("click", () => this.featureOptions.show());
143
143
  document.getElementById("menuSettings").addEventListener("click", () => this.#showSettings());
144
144
 
145
- // Get the list of devices the plugin knows about.
146
- const devices = await homebridge.getCachedAccessories();
147
-
148
145
  // If we've got devices detected, we launch our feature option UI. Otherwise, we launch our first run UI.
149
- if(this.featureOptions.currentConfig.length && devices?.length && !(await this.#processHandler(this.#firstRun.isRequired))) {
146
+ if(this.featureOptions.currentConfig.length && !(await this.#processHandler(this.#firstRun.isRequired))) {
150
147
 
151
148
  document.getElementById("menuWrapper").style.display = "inline-flex";
152
149
  this.featureOptions.show();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-plugin-utils",
3
- "version": "1.11.3",
3
+ "version": "1.13.0",
4
4
  "displayName": "Homebridge Plugin Utilities",
5
5
  "description": "Opinionated utilities to provide common capabilities and create rich configuration webUI experiences for Homebridge plugins.",
6
6
  "author": {
@@ -39,13 +39,13 @@
39
39
  },
40
40
  "main": "dist/index.js",
41
41
  "devDependencies": {
42
- "@stylistic/eslint-plugin": "2.11.0",
43
- "@types/node": "22.10.1",
44
- "eslint": "^9.16.0",
42
+ "@stylistic/eslint-plugin": "2.12.1",
43
+ "@types/node": "22.10.2",
44
+ "eslint": "^9.17.0",
45
45
  "homebridge": "1.8.4",
46
46
  "shx": "0.3.4",
47
47
  "typescript": "5.7.2",
48
- "typescript-eslint": "^8.17.0"
48
+ "typescript-eslint": "^8.18.2"
49
49
  },
50
50
  "dependencies": {
51
51
  "mqtt": "5.10.3"