@matterbridge/core 3.10.5-dev-20260813-832ae0d → 3.10.5
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.
|
@@ -113,8 +113,8 @@ export function createClosureDimensionClusterServer(endpoint, dimensionType, opt
|
|
|
113
113
|
const commonOptions = {
|
|
114
114
|
currentState: options.currentState ?? { position: 0, latch: true, speed: ThreeLevelAuto.Auto },
|
|
115
115
|
targetState: options.targetState ?? { position: 0, latch: true, speed: ThreeLevelAuto.Auto },
|
|
116
|
-
resolution: options.resolution ?? 1,
|
|
117
|
-
stepValue: options.stepValue ?? 1,
|
|
116
|
+
resolution: Math.max(1, options.resolution ?? 1),
|
|
117
|
+
stepValue: Math.max(1, options.stepValue ?? 1),
|
|
118
118
|
latchControlModes: options.latchControlModes ?? { remoteLatching: true, remoteUnlatching: true },
|
|
119
119
|
};
|
|
120
120
|
if (dimensionType === 'lift') {
|
|
@@ -993,7 +993,7 @@ export class MatterbridgeEndpoint extends Endpoint {
|
|
|
993
993
|
...(occupied !== undefined ? { occupancy: { occupied } } : {}),
|
|
994
994
|
...(occupied !== undefined ? { externallyMeasuredOccupancy: true } : {}),
|
|
995
995
|
numberOfPresets: Math.max(Array.isArray(presets) ? presets.length : 0, Array.isArray(presetTypes) ? Math.max(0, ...presetTypes.map((pt) => pt.numberOfPresets ?? 0)) : 0, 1),
|
|
996
|
-
activePresetHandle: activePresetHandle ? Uint8Array.from(
|
|
996
|
+
activePresetHandle: activePresetHandle ? Uint8Array.from(activePresetHandle) : null,
|
|
997
997
|
presets: (presets ?? []).map((p) => ({
|
|
998
998
|
presetHandle: p.presetHandle ? Uint8Array.from(p.presetHandle) : null,
|
|
999
999
|
presetScenario: p.presetScenario,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/core",
|
|
3
|
-
"version": "3.10.5
|
|
3
|
+
"version": "3.10.5",
|
|
4
4
|
"description": "Matterbridge core library",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"homepage": "https://matterbridge.io/",
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@matter/main": "0.17.9",
|
|
135
|
-
"@matterbridge/dgram": "3.10.5
|
|
136
|
-
"@matterbridge/thread": "3.10.5
|
|
137
|
-
"@matterbridge/types": "3.10.5
|
|
138
|
-
"@matterbridge/utils": "3.10.5
|
|
135
|
+
"@matterbridge/dgram": "3.10.5",
|
|
136
|
+
"@matterbridge/thread": "3.10.5",
|
|
137
|
+
"@matterbridge/types": "3.10.5",
|
|
138
|
+
"@matterbridge/utils": "3.10.5",
|
|
139
139
|
"escape-html": "1.0.3",
|
|
140
140
|
"express": "5.2.1",
|
|
141
141
|
"express-rate-limit": "8.6.2",
|