@matterbridge/core 3.7.6-dev-20260427-575abf6 → 3.7.6-dev-20260427-9e2bda8

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.
@@ -7,7 +7,7 @@ import { getErrorMessage } from '@matterbridge/utils/error';
7
7
  import { formatBytes } from '@matterbridge/utils/format';
8
8
  import escapeHtml from 'escape-html';
9
9
  import express from 'express';
10
- import rateLimit from 'express-rate-limit';
10
+ import { rateLimit } from 'express-rate-limit';
11
11
  import multer from 'multer';
12
12
  import { AnsiLogger, er, nf } from 'node-ansi-logger';
13
13
  if (hasParameter('loader'))
@@ -5,7 +5,7 @@ import { inspectError } from '@matterbridge/utils/error';
5
5
  import { isValidNumber, isValidString } from '@matterbridge/utils/validate';
6
6
  import { withTimeout } from '@matterbridge/utils/wait';
7
7
  import { AnsiLogger, CYAN, debugStringify, nf } from 'node-ansi-logger';
8
- import WebSocket, { WebSocketServer } from 'ws';
8
+ import { WebSocket, WebSocketServer } from 'ws';
9
9
  if (hasParameter('loader'))
10
10
  console.log('\u001B[32mBackendWsServer loaded.\u001B[40;0m');
11
11
  export class BackendsWsServer {
@@ -28,7 +28,6 @@ export async function startMatterbridge(bridgeMode = 'bridge', frontendPort = 82
28
28
  clearTimeout(matterbridge.systemCheckTimeout);
29
29
  clearTimeout(matterbridge.checkUpdateTimeout);
30
30
  clearInterval(matterbridge.checkUpdateInterval);
31
- new MdnsService(matterbridge.environment);
32
31
  expect(matterbridge).toBeDefined();
33
32
  expect(matterbridge.profile).toBeUndefined();
34
33
  expect(matterbridge.bridgeMode).toBe(bridgeMode);
@@ -553,10 +553,10 @@ export class MatterNode extends EventEmitter {
553
553
  }
554
554
  async createAccessoryPlugin(plugin, device) {
555
555
  if (typeof plugin === 'string') {
556
- const _plugin = this.pluginManager.get(plugin);
557
- if (!_plugin)
556
+ const pluginInstance = this.pluginManager.get(plugin);
557
+ if (!pluginInstance)
558
558
  throw new Error(`Plugin ${BLUE}${this.pluginName}${er} not found`);
559
- plugin = _plugin;
559
+ plugin = pluginInstance;
560
560
  }
561
561
  if (!plugin.locked && device.deviceType && device.deviceName && device.vendorId && device.vendorName && device.productId && device.productName) {
562
562
  plugin.locked = true;
@@ -574,10 +574,10 @@ export class MatterNode extends EventEmitter {
574
574
  }
575
575
  async createDynamicPlugin(plugin) {
576
576
  if (typeof plugin === 'string') {
577
- const _plugin = this.pluginManager.get(plugin);
578
- if (!_plugin)
577
+ const pluginInstance = this.pluginManager.get(plugin);
578
+ if (!pluginInstance)
579
579
  throw new Error(`Plugin ${BLUE}${this.pluginName}${er} not found`);
580
- plugin = _plugin;
580
+ plugin = pluginInstance;
581
581
  }
582
582
  if (!plugin.locked) {
583
583
  plugin.locked = true;
@@ -597,10 +597,10 @@ export class MatterNode extends EventEmitter {
597
597
  }
598
598
  async createDeviceServerNode(plugin, device) {
599
599
  if (typeof plugin === 'string') {
600
- const _plugin = this.pluginManager.get(plugin);
601
- if (!_plugin)
600
+ const pluginInstance = this.pluginManager.get(plugin);
601
+ if (!pluginInstance)
602
602
  throw new Error(`Plugin ${BLUE}${this.pluginName}${er} not found`);
603
- plugin = _plugin;
603
+ plugin = pluginInstance;
604
604
  }
605
605
  if (device.mode === 'server' && device.deviceType && device.deviceName && device.vendorId && device.vendorName && device.productId && device.productName) {
606
606
  this.log.debug(`Creating device ${plg}${plugin.name}${db}:${dev}${device.deviceName}${db} server node...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.7.6-dev-20260427-575abf6",
3
+ "version": "3.7.6-dev-20260427-9e2bda8",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -130,10 +130,10 @@
130
130
  ],
131
131
  "dependencies": {
132
132
  "@matter/main": "0.16.11",
133
- "@matterbridge/dgram": "3.7.6-dev-20260427-575abf6",
134
- "@matterbridge/thread": "3.7.6-dev-20260427-575abf6",
135
- "@matterbridge/types": "3.7.6-dev-20260427-575abf6",
136
- "@matterbridge/utils": "3.7.6-dev-20260427-575abf6",
133
+ "@matterbridge/dgram": "3.7.6-dev-20260427-9e2bda8",
134
+ "@matterbridge/thread": "3.7.6-dev-20260427-9e2bda8",
135
+ "@matterbridge/types": "3.7.6-dev-20260427-9e2bda8",
136
+ "@matterbridge/utils": "3.7.6-dev-20260427-9e2bda8",
137
137
  "escape-html": "1.0.3",
138
138
  "express": "5.2.1",
139
139
  "express-rate-limit": "8.4.1",