matterbridge 2.1.0-dev.7 → 2.1.0-dev.8

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 CHANGED
@@ -21,7 +21,7 @@ For this reason there is no compatibility for old versions of the plugins.
21
21
  You need to update all plugins you use and Matterbridge in the same moment.
22
22
  I suggest to first update all plugins without restarting and then to update Matterbridge so when it restarts, all versions will be the latest.
23
23
 
24
- ## [2.1.0.dev.7] - 2025-01-30
24
+ ## [2.1.0.dev.8] - 2025-01-31
25
25
 
26
26
  ### Added
27
27
 
package/dist/frontend.js CHANGED
@@ -226,7 +226,13 @@ export class Frontend {
226
226
  });
227
227
  this.expressApp.get('/api/advertise', express.json(), async (req, res) => {
228
228
  const pairingCodes = await this.matterbridge.advertiseServerNode(this.matterbridge.serverNode);
229
- res.json(pairingCodes);
229
+ if (pairingCodes) {
230
+ const { manualPairingCode, qrPairingCode } = pairingCodes;
231
+ res.json({ manualPairingCode, qrPairingCode: 'https://project-chip.github.io/connectedhomeip/qrcode.html?data=' + qrPairingCode });
232
+ }
233
+ else {
234
+ res.status(500).json({ error: 'Failed to generate pairing codes' });
235
+ }
230
236
  });
231
237
  this.expressApp.get('/api/settings', express.json(), async (req, res) => {
232
238
  this.log.debug('The frontend sent /api/settings');
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "2.1.0-dev.7",
3
+ "version": "2.1.0-dev.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge",
9
- "version": "2.1.0-dev.7",
9
+ "version": "2.1.0-dev.8",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@matter/main": "0.12.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "2.1.0-dev.7",
3
+ "version": "2.1.0-dev.8",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",