matterbridge 3.0.1-dev-20250503-466a8ec → 3.0.1-dev-20250503-aa33494
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/CHANGELOG.md +1 -0
- package/dist/frontend.js +10 -1
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,7 @@ It is also available the official Matterbridge Home Assistant plugin https://git
|
|
|
26
26
|
|
|
27
27
|
### Changed
|
|
28
28
|
|
|
29
|
+
- [package]: Updated dependencies.
|
|
29
30
|
- [docker]: Updated the [Docker configurations](README-DOCKER.md).
|
|
30
31
|
- [frontend]: Changing configuration for a plugin now only lock configuration on that plugin.
|
|
31
32
|
|
package/dist/frontend.js
CHANGED
|
@@ -909,6 +909,7 @@ export class Frontend {
|
|
|
909
909
|
this.wssSendSnackbarMessage(`Removed plugin ${data.params.pluginName}`, 5, 'success');
|
|
910
910
|
this.wssSendRefreshRequired('plugins');
|
|
911
911
|
this.wssSendRefreshRequired('devices');
|
|
912
|
+
client.send(JSON.stringify({ id: data.id, method: data.method, src: 'Matterbridge', dst: data.src, success: true }));
|
|
912
913
|
}
|
|
913
914
|
else if (data.method === '/api/enableplugin') {
|
|
914
915
|
if (!isValidString(data.params.pluginName, 10) || !this.matterbridge.plugins.has(data.params.pluginName)) {
|
|
@@ -933,6 +934,7 @@ export class Frontend {
|
|
|
933
934
|
this.wssSendSnackbarMessage(`Started plugin ${data.params.pluginName}`, 5, 'success');
|
|
934
935
|
});
|
|
935
936
|
}
|
|
937
|
+
client.send(JSON.stringify({ id: data.id, method: data.method, src: 'Matterbridge', dst: data.src, success: true }));
|
|
936
938
|
}
|
|
937
939
|
else if (data.method === '/api/disableplugin') {
|
|
938
940
|
if (!isValidString(data.params.pluginName, 10) || !this.matterbridge.plugins.has(data.params.pluginName)) {
|
|
@@ -945,6 +947,7 @@ export class Frontend {
|
|
|
945
947
|
this.wssSendSnackbarMessage(`Disabled plugin ${data.params.pluginName}`, 5, 'success');
|
|
946
948
|
this.wssSendRefreshRequired('plugins');
|
|
947
949
|
this.wssSendRefreshRequired('devices');
|
|
950
|
+
client.send(JSON.stringify({ id: data.id, method: data.method, src: 'Matterbridge', dst: data.src, success: true }));
|
|
948
951
|
}
|
|
949
952
|
else if (data.method === '/api/savepluginconfig') {
|
|
950
953
|
if (!isValidString(data.params.pluginName, 10) || !this.matterbridge.plugins.has(data.params.pluginName)) {
|
|
@@ -1209,8 +1212,14 @@ export class Frontend {
|
|
|
1209
1212
|
return;
|
|
1210
1213
|
}
|
|
1211
1214
|
this.log.notice(`Action ${CYAN}${data.params.action}${nt}${data.params.value ? ' with ' + CYAN + data.params.value + nt : ''} for plugin ${CYAN}${plugin.name}${nt}`);
|
|
1212
|
-
plugin.platform
|
|
1215
|
+
plugin.platform
|
|
1216
|
+
?.onAction(data.params.action, data.params.value, data.params.id, data.params.formData)
|
|
1217
|
+
.then(() => {
|
|
1218
|
+
client.send(JSON.stringify({ id: data.id, method: data.method, src: 'Matterbridge', dst: data.src, success: true }));
|
|
1219
|
+
})
|
|
1220
|
+
.catch((error) => {
|
|
1213
1221
|
this.log.error(`Error in plugin ${plugin.name} action ${data.params.action}: ${error}`);
|
|
1222
|
+
client.send(JSON.stringify({ id: data.id, method: data.method, src: 'Matterbridge', dst: data.src, error: `Error in plugin ${plugin.name} action ${data.params.action}: ${error}` }));
|
|
1214
1223
|
});
|
|
1215
1224
|
}
|
|
1216
1225
|
else if (data.method === '/api/config') {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.0.1-dev-20250503-
|
|
3
|
+
"version": "3.0.1-dev-20250503-aa33494",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.0.1-dev-20250503-
|
|
9
|
+
"version": "3.0.1-dev-20250503-aa33494",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.13.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"multer": "1.4.5-lts.2",
|
|
17
17
|
"node-ansi-logger": "3.0.1",
|
|
18
18
|
"node-persist-manager": "1.0.8",
|
|
19
|
-
"ws": "8.18.
|
|
19
|
+
"ws": "8.18.2"
|
|
20
20
|
},
|
|
21
21
|
"bin": {
|
|
22
22
|
"matterbridge": "dist/cli.js"
|
|
@@ -2135,9 +2135,9 @@
|
|
|
2135
2135
|
"license": "ISC"
|
|
2136
2136
|
},
|
|
2137
2137
|
"node_modules/ws": {
|
|
2138
|
-
"version": "8.18.
|
|
2139
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.
|
|
2140
|
-
"integrity": "sha512-
|
|
2138
|
+
"version": "8.18.2",
|
|
2139
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz",
|
|
2140
|
+
"integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==",
|
|
2141
2141
|
"license": "MIT",
|
|
2142
2142
|
"engines": {
|
|
2143
2143
|
"node": ">=10.0.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.0.1-dev-20250503-
|
|
3
|
+
"version": "3.0.1-dev-20250503-aa33494",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -101,6 +101,6 @@
|
|
|
101
101
|
"multer": "1.4.5-lts.2",
|
|
102
102
|
"node-ansi-logger": "3.0.1",
|
|
103
103
|
"node-persist-manager": "1.0.8",
|
|
104
|
-
"ws": "8.18.
|
|
104
|
+
"ws": "8.18.2"
|
|
105
105
|
}
|
|
106
106
|
}
|