@matterbridge/core 3.7.9-dev-20260514-c020ec8 → 3.7.9-dev-20260514-3d97692

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.
@@ -19,6 +19,7 @@ import { dev, MATTER_LOGGER_FILE, MATTER_STORAGE_DIR, MATTERBRIDGE_LOGGER_FILE,
19
19
  import { getIntParameter, getParameter, hasAnyParameter, hasParameter } from '@matterbridge/utils/cli';
20
20
  import { copyDirectory } from '@matterbridge/utils/copy-dir';
21
21
  import { createDirectory } from '@matterbridge/utils/create-dir';
22
+ import { inspectError } from '@matterbridge/utils/error';
22
23
  import { formatBytes, formatPercent, formatUptime } from '@matterbridge/utils/format';
23
24
  import { excludedInterfaceNamePattern } from '@matterbridge/utils/network';
24
25
  import { isValidNumber, isValidObject, isValidString, parseVersionString } from '@matterbridge/utils/validate';
@@ -628,22 +629,30 @@ export class Matterbridge extends EventEmitter {
628
629
  !hasAnyParameter('add', 'remove', 'enable', 'disable', 'reset', 'factoryreset', 'systemcheck')) ||
629
630
  process.env.MATTERBRIDGE_LINK_LOCAL_PLUGINS === 'jest') {
630
631
  const { execSync } = await import('node:child_process');
631
- execSync('npm link matterbridge --no-fund --no-audit --silent', { cwd: path.dirname(plugin.path), stdio: 'inherit' });
632
- this.log.info(`Matterbridge linked to plugin ${plg}${plugin.name}${nf}.`);
632
+ try {
633
+ execSync('npm link matterbridge --no-fund --no-audit --silent', { cwd: path.dirname(plugin.path), stdio: 'inherit' });
634
+ this.log.info(`Matterbridge linked to plugin ${plg}${plugin.name}${nf}.`);
635
+ }
636
+ catch (error) {
637
+ plugin.error = true;
638
+ plugin.enabled = false;
639
+ inspectError(this.log, `Error linking matterbridge to plugin ${plg}${plugin.name}${er}. The plugin is disabled.`, error);
640
+ continue;
641
+ }
633
642
  }
634
643
  if ((!isLocal && !fs.existsSync(plugin.path) && !hasAnyParameter('add', 'remove', 'enable', 'disable', 'reset', 'factoryreset', 'systemcheck')) ||
635
644
  process.env.MATTERBRIDGE_REINSTALL_PLUGINS === 'jest') {
636
645
  this.log.info(`Error parsing plugin ${plg}${plugin.name}${nf}. Trying to reinstall it from npm...`);
637
646
  const { execSync } = await import('node:child_process');
638
647
  const sudo = hasParameter('sudo') || (process.platform !== 'win32' && !hasParameter('docker') && !hasParameter('nosudo') && !process.env.PATH?.includes('/.nvm/versions/node/'));
639
- if (execSync(`${sudo ? 'sudo ' : ''}npm install -g ${plugin.name}${plugin.version.includes('-dev-') ? '@dev' : ''} --omit=dev`)) {
648
+ try {
649
+ execSync(`${sudo ? 'sudo ' : ''}npm install -g ${plugin.name}${plugin.version.includes('-dev-') ? '@dev' : ''} --no-fund --no-audit --silent --omit=dev`);
640
650
  this.log.info(`Plugin ${plg}${plugin.name}${nf} reinstalled.`);
641
- plugin.error = false;
642
651
  }
643
- else {
644
- this.log.error(`Error reinstalling plugin ${plg}${plugin.name}${nf}. The plugin is disabled.`);
652
+ catch (error) {
645
653
  plugin.error = true;
646
654
  plugin.enabled = false;
655
+ inspectError(this.log, `Error reinstalling plugin ${plg}${plugin.name}${er}. The plugin is disabled.`, error);
647
656
  continue;
648
657
  }
649
658
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.7.9-dev-20260514-c020ec8",
3
+ "version": "3.7.9-dev-20260514-3d97692",
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.9-dev-20260514-c020ec8",
134
- "@matterbridge/thread": "3.7.9-dev-20260514-c020ec8",
135
- "@matterbridge/types": "3.7.9-dev-20260514-c020ec8",
136
- "@matterbridge/utils": "3.7.9-dev-20260514-c020ec8",
133
+ "@matterbridge/dgram": "3.7.9-dev-20260514-3d97692",
134
+ "@matterbridge/thread": "3.7.9-dev-20260514-3d97692",
135
+ "@matterbridge/types": "3.7.9-dev-20260514-3d97692",
136
+ "@matterbridge/utils": "3.7.9-dev-20260514-3d97692",
137
137
  "escape-html": "1.0.3",
138
138
  "express": "5.2.1",
139
139
  "express-rate-limit": "8.5.1",