@matterbridge/core 3.9.2-dev-20260625-a8359b3 → 3.9.2-dev-20260625-582ef8d
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 +7 -2
- package/package.json +5 -5
package/dist/matterbridge.js
CHANGED
|
@@ -385,14 +385,19 @@ export class Matterbridge extends EventEmitter {
|
|
|
385
385
|
this.matterbridgeCertDirectory = this.profile ? path.join(this.homeDirectory, '.mattercert', 'profiles', this.profile) : path.join(this.homeDirectory, '.mattercert');
|
|
386
386
|
await createDirectory(this.matterbridgeCertDirectory, 'Matterbridge Matter Certificate Directory', this.log);
|
|
387
387
|
const currentFileDirectory = path.dirname(fileURLToPath(import.meta.url));
|
|
388
|
-
|
|
388
|
+
this.log.debug(`Determining root directory from currentFileDirectory = ${CYAN}${currentFileDirectory}${db}`);
|
|
389
|
+
if (currentFileDirectory.endsWith(path.join('matterbridge', 'packages', 'core', 'src')) ||
|
|
390
|
+
currentFileDirectory.endsWith(path.join('matterbridge', 'packages', 'core', 'dist'))) {
|
|
389
391
|
this.rootDirectory = path.resolve(currentFileDirectory, '..', '..', '..');
|
|
392
|
+
this.log.debug(`Found packages core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
|
|
390
393
|
}
|
|
391
|
-
else if (path.
|
|
394
|
+
else if (currentFileDirectory.endsWith(path.join('matterbridge', 'dist'))) {
|
|
392
395
|
this.rootDirectory = path.resolve(currentFileDirectory, '..');
|
|
396
|
+
this.log.debug(`Found bundled core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
|
|
393
397
|
}
|
|
394
398
|
else {
|
|
395
399
|
this.rootDirectory = path.resolve(currentFileDirectory, '..', '..', '..', '..');
|
|
400
|
+
this.log.debug(`Found production core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
|
|
396
401
|
}
|
|
397
402
|
this.environment.vars.set('log.level', MatterLogLevel.DEBUG);
|
|
398
403
|
this.environment.vars.set('log.format', hasParameter('no-ansi') || process.env.NO_COLOR === '1' ? MatterLogFormat.PLAIN : MatterLogFormat.ANSI);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/core",
|
|
3
|
-
"version": "3.9.2-dev-20260625-
|
|
3
|
+
"version": "3.9.2-dev-20260625-582ef8d",
|
|
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.17.4-alpha.0-20260624-ef5aefa3b",
|
|
133
|
-
"@matterbridge/dgram": "3.9.2-dev-20260625-
|
|
134
|
-
"@matterbridge/thread": "3.9.2-dev-20260625-
|
|
135
|
-
"@matterbridge/types": "3.9.2-dev-20260625-
|
|
136
|
-
"@matterbridge/utils": "3.9.2-dev-20260625-
|
|
133
|
+
"@matterbridge/dgram": "3.9.2-dev-20260625-582ef8d",
|
|
134
|
+
"@matterbridge/thread": "3.9.2-dev-20260625-582ef8d",
|
|
135
|
+
"@matterbridge/types": "3.9.2-dev-20260625-582ef8d",
|
|
136
|
+
"@matterbridge/utils": "3.9.2-dev-20260625-582ef8d",
|
|
137
137
|
"escape-html": "1.0.3",
|
|
138
138
|
"express": "5.2.1",
|
|
139
139
|
"express-rate-limit": "8.5.2",
|