@switchbot/homebridge-switchbot 4.0.1-beta.0 → 4.0.1-beta.1

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.
@@ -20,6 +20,7 @@
20
20
  "token": {
21
21
  "title": "Token",
22
22
  "type": "string",
23
+ "pattern": "^[0-9A-Fa-f]+$",
23
24
  "x-schema-form": {
24
25
  "type": "token"
25
26
  }
@@ -27,6 +28,7 @@
27
28
  "secret": {
28
29
  "title": "Secret",
29
30
  "type": "string",
31
+ "pattern": "^[0-9A-Fa-f]+$",
30
32
  "x-schema-form": {
31
33
  "type": "secret"
32
34
  }
@@ -55,6 +57,7 @@
55
57
  "configDeviceName": {
56
58
  "title": "Device Name",
57
59
  "type": "string",
60
+ "pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} ']*[\\p{L}\\p{N}]$",
58
61
  "placeholder": "SwitchBot",
59
62
  "condition": {
60
63
  "functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId);"
@@ -63,7 +66,8 @@
63
66
  "deviceId": {
64
67
  "title": "Device ID",
65
68
  "type": "string",
66
- "placeholder": "81F3UT59513F"
69
+ "placeholder": "81F3UT59513F",
70
+ "pattern": "^[0-9A-F]{12}$"
67
71
  },
68
72
  "hide_device": {
69
73
  "title": "Hide Device",
@@ -7695,6 +7699,7 @@
7695
7699
  "title": "Device Name",
7696
7700
  "type": "string",
7697
7701
  "placeholder": "SwitchBot",
7702
+ "pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} ']*[\\p{L}\\p{N}]$",
7698
7703
  "condition": {
7699
7704
  "functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId);"
7700
7705
  }
@@ -7702,7 +7707,8 @@
7702
7707
  "deviceId": {
7703
7708
  "title": "Device ID",
7704
7709
  "type": "string",
7705
- "placeholder": "81F3UT59513F"
7710
+ "placeholder": "81F3UT59513F",
7711
+ "pattern": "^[0-9A-F]+$"
7706
7712
  },
7707
7713
  "hide_device": {
7708
7714
  "title": "Hide Device",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@switchbot/homebridge-switchbot",
3
3
  "displayName": "SwitchBot",
4
4
  "type": "module",
5
- "version": "4.0.1-beta.0",
5
+ "version": "4.0.1-beta.1",
6
6
  "description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
7
7
  "author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
8
8
  "contributors": [
@@ -81,19 +81,19 @@
81
81
  "async-mqtt": "^2.6.3",
82
82
  "fakegato-history": "^0.6.5",
83
83
  "homebridge-lib": "^7.0.9",
84
- "node-switchbot": "^3.1.2-beta.0",
84
+ "node-switchbot": "^3.1.2-beta.1",
85
85
  "rxjs": "^7.8.1"
86
86
  },
87
87
  "devDependencies": {
88
- "@antfu/eslint-config": "^3.7.3",
88
+ "@antfu/eslint-config": "^3.8.0",
89
89
  "@types/aes-js": "^3.1.4",
90
90
  "@types/debug": "^4.1.12",
91
91
  "@types/fs-extra": "^11.0.4",
92
92
  "@types/mdast": "^4.0.4",
93
- "@types/node": "^22.7.5",
93
+ "@types/node": "^22.7.6",
94
94
  "@types/semver": "^7.5.8",
95
95
  "@types/source-map-support": "^0.5.10",
96
- "@vitest/coverage-v8": "^2.1.2",
96
+ "@vitest/coverage-v8": "^2.1.3",
97
97
  "eslint": "^9.12.0",
98
98
  "eslint-plugin-format": "^0.1.2",
99
99
  "homebridge": "^1.8.4",
@@ -102,9 +102,9 @@
102
102
  "npm-check-updates": "^17.1.3",
103
103
  "shx": "^0.3.4",
104
104
  "ts-node": "^10.9.2",
105
- "typedoc": "^0.26.9",
105
+ "typedoc": "^0.26.10",
106
106
  "typescript": "^5.6.3",
107
- "vitest": "^2.1.2"
107
+ "vitest": "^2.1.3"
108
108
  },
109
109
  "directories": {
110
110
  "doc": "docs"