@matterbridge/core 3.9.2-dev-20260622-2bad6bf → 3.9.2-dev-20260624-82fe77f
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/dist/matterbridge.js +11 -3
- package/package.json +6 -6
package/dist/matterbridge.js
CHANGED
|
@@ -384,7 +384,15 @@ export class Matterbridge extends EventEmitter {
|
|
|
384
384
|
this.matterbridgeCertDirectory = this.profile ? path.join(this.homeDirectory, '.mattercert', 'profiles', this.profile) : path.join(this.homeDirectory, '.mattercert');
|
|
385
385
|
await createDirectory(this.matterbridgeCertDirectory, 'Matterbridge Matter Certificate Directory', this.log);
|
|
386
386
|
const currentFileDirectory = path.dirname(fileURLToPath(import.meta.url));
|
|
387
|
-
|
|
387
|
+
if (currentFileDirectory.includes(path.join('packages', 'core'))) {
|
|
388
|
+
this.rootDirectory = path.resolve(currentFileDirectory, '..', '..', '..');
|
|
389
|
+
}
|
|
390
|
+
else if (path.basename(currentFileDirectory) === 'dist') {
|
|
391
|
+
this.rootDirectory = path.resolve(currentFileDirectory, '..');
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
this.rootDirectory = path.resolve(currentFileDirectory, '..', '..', '..', '..');
|
|
395
|
+
}
|
|
388
396
|
this.environment.vars.set('log.level', MatterLogLevel.DEBUG);
|
|
389
397
|
this.environment.vars.set('log.format', hasParameter('no-ansi') || process.env.NO_COLOR === '1' ? MatterLogFormat.PLAIN : MatterLogFormat.ANSI);
|
|
390
398
|
this.environment.vars.set('path.root', path.join(this.matterbridgeDirectory, MATTER_STORAGE_DIR));
|
|
@@ -2060,10 +2068,10 @@ export class Matterbridge extends EventEmitter {
|
|
|
2060
2068
|
}
|
|
2061
2069
|
}
|
|
2062
2070
|
}
|
|
2063
|
-
if (plugin.registeredDevices !== undefined)
|
|
2064
|
-
plugin.registeredDevices++;
|
|
2065
2071
|
this.devices.set(device);
|
|
2066
2072
|
await this.subscribeAttributeChanged(plugin, device);
|
|
2073
|
+
if (plugin.registeredDevices !== undefined)
|
|
2074
|
+
plugin.registeredDevices++;
|
|
2067
2075
|
this.log.info(`Added and registered bridged endpoint (${plugin.registeredDevices}) ${dev}${device.deviceName}${nf} (${dev}${device.id}${nf}) for plugin ${plg}${pluginName}${nf}`);
|
|
2068
2076
|
}
|
|
2069
2077
|
async removeBridgedEndpoint(pluginName, device) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/core",
|
|
3
|
-
"version": "3.9.2-dev-
|
|
3
|
+
"version": "3.9.2-dev-20260624-82fe77f",
|
|
4
4
|
"description": "Matterbridge core library",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"homepage": "https://matterbridge.io/",
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
"CHANGELOG.md"
|
|
130
130
|
],
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@matter/main": "0.17.4-alpha.0-
|
|
133
|
-
"@matterbridge/dgram": "3.9.2-dev-
|
|
134
|
-
"@matterbridge/thread": "3.9.2-dev-
|
|
135
|
-
"@matterbridge/types": "3.9.2-dev-
|
|
136
|
-
"@matterbridge/utils": "3.9.2-dev-
|
|
132
|
+
"@matter/main": "0.17.4-alpha.0-20260624-ef5aefa3b",
|
|
133
|
+
"@matterbridge/dgram": "3.9.2-dev-20260624-82fe77f",
|
|
134
|
+
"@matterbridge/thread": "3.9.2-dev-20260624-82fe77f",
|
|
135
|
+
"@matterbridge/types": "3.9.2-dev-20260624-82fe77f",
|
|
136
|
+
"@matterbridge/utils": "3.9.2-dev-20260624-82fe77f",
|
|
137
137
|
"escape-html": "1.0.3",
|
|
138
138
|
"express": "5.2.1",
|
|
139
139
|
"express-rate-limit": "8.5.2",
|