matterbridge 3.2.1-dev-20250802-741949b → 3.2.1-dev-20250804-be73ddb
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 +1 -5
- package/dist/utils/copyDirectory.js +1 -1
- package/dist/utils/wait.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/matterbridge.js
CHANGED
|
@@ -106,7 +106,6 @@ export class Matterbridge extends EventEmitter {
|
|
|
106
106
|
nodeContext;
|
|
107
107
|
hasCleanupStarted = false;
|
|
108
108
|
initialized = false;
|
|
109
|
-
execRunningCount = 0;
|
|
110
109
|
startMatterInterval;
|
|
111
110
|
startMatterIntervalMs = 1000;
|
|
112
111
|
checkUpdateInterval;
|
|
@@ -884,11 +883,10 @@ export class Matterbridge extends EventEmitter {
|
|
|
884
883
|
if (this.nodeContext)
|
|
885
884
|
this.globalModulesDirectory = this.matterbridgeInformation.globalModulesDirectory = await this.nodeContext.get('globalModulesDirectory', '');
|
|
886
885
|
if (this.globalModulesDirectory === '') {
|
|
886
|
+
this.log.debug(`Getting global node_modules directory...`);
|
|
887
887
|
try {
|
|
888
888
|
const { getGlobalNodeModules } = await import('./utils/network.js');
|
|
889
|
-
this.execRunningCount++;
|
|
890
889
|
this.matterbridgeInformation.globalModulesDirectory = this.globalModulesDirectory = await getGlobalNodeModules();
|
|
891
|
-
this.execRunningCount--;
|
|
892
890
|
this.log.debug(`Global node_modules Directory: ${this.globalModulesDirectory}`);
|
|
893
891
|
await this.nodeContext?.set('globalModulesDirectory', this.globalModulesDirectory);
|
|
894
892
|
}
|
|
@@ -900,9 +898,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
900
898
|
this.log.debug(`Checking global node_modules directory: ${this.globalModulesDirectory}`);
|
|
901
899
|
try {
|
|
902
900
|
const { getGlobalNodeModules } = await import('./utils/network.js');
|
|
903
|
-
this.execRunningCount++;
|
|
904
901
|
this.matterbridgeInformation.globalModulesDirectory = this.globalModulesDirectory = await getGlobalNodeModules();
|
|
905
|
-
this.execRunningCount--;
|
|
906
902
|
this.log.debug(`Global node_modules Directory: ${this.globalModulesDirectory}`);
|
|
907
903
|
await this.nodeContext?.set('globalModulesDirectory', this.globalModulesDirectory);
|
|
908
904
|
}
|
|
@@ -15,7 +15,7 @@ export async function copyDirectory(srcDir, destDir) {
|
|
|
15
15
|
if (srcDir === destDir) {
|
|
16
16
|
throw new Error('Source and destination directories must be different.');
|
|
17
17
|
}
|
|
18
|
-
const log = new AnsiLogger({ logName: '
|
|
18
|
+
const log = new AnsiLogger({ logName: 'CopyDirectory', logTimestampFormat: 4, logLevel: "info" });
|
|
19
19
|
const fs = await import('node:fs').then((mod) => mod.promises);
|
|
20
20
|
const path = await import('node:path');
|
|
21
21
|
log.debug(`copyDirectory: copying directory from ${srcDir} to ${destDir}`);
|
package/dist/utils/wait.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnsiLogger } from 'node-ansi-logger';
|
|
2
2
|
export async function waiter(name, check, exitWithReject = false, resolveTimeout = 5000, resolveInterval = 500, debug = false) {
|
|
3
|
-
const log = new AnsiLogger({ logName: '
|
|
3
|
+
const log = new AnsiLogger({ logName: 'Waiter', logTimestampFormat: 4, logLevel: "debug" });
|
|
4
4
|
if (check()) {
|
|
5
5
|
if (debug)
|
|
6
6
|
log.debug(`Waiter "${name}" already true`);
|
|
@@ -32,7 +32,7 @@ export async function waiter(name, check, exitWithReject = false, resolveTimeout
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
export async function wait(timeout = 1000, name, debug = false) {
|
|
35
|
-
const log = new AnsiLogger({ logName: '
|
|
35
|
+
const log = new AnsiLogger({ logName: 'Wait', logTimestampFormat: 4, logLevel: "debug" });
|
|
36
36
|
if (debug)
|
|
37
37
|
log.debug(`Wait "${name}" started...`);
|
|
38
38
|
return new Promise((resolve) => {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.2.1-dev-
|
|
3
|
+
"version": "3.2.1-dev-20250804-be73ddb",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.2.1-dev-
|
|
9
|
+
"version": "3.2.1-dev-20250804-be73ddb",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.15.3",
|
package/package.json
CHANGED