matterbridge 3.4.3-dev-20251209-e6cb85f → 3.4.3
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/README.md +2 -3
- package/dist/broadcastServer.d.ts +144 -0
- package/dist/broadcastServer.d.ts.map +1 -0
- package/dist/broadcastServer.js +119 -0
- package/dist/broadcastServer.js.map +1 -0
- package/dist/broadcastServerTypes.d.ts +841 -0
- package/dist/broadcastServerTypes.d.ts.map +1 -0
- package/dist/broadcastServerTypes.js +24 -0
- package/dist/broadcastServerTypes.js.map +1 -0
- package/dist/cli.d.ts +30 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +97 -1
- package/dist/cli.js.map +1 -0
- package/dist/cliEmitter.d.ts +50 -0
- package/dist/cliEmitter.d.ts.map +1 -0
- package/dist/cliEmitter.js +37 -0
- package/dist/cliEmitter.js.map +1 -0
- package/dist/cliHistory.d.ts +48 -0
- package/dist/cliHistory.d.ts.map +1 -0
- package/dist/cliHistory.js +38 -0
- package/dist/cliHistory.js.map +1 -0
- package/dist/clusters/export.d.ts +2 -0
- package/dist/clusters/export.d.ts.map +1 -0
- package/dist/clusters/export.js +2 -0
- package/dist/clusters/export.js.map +1 -0
- package/dist/deviceManager.d.ts +135 -0
- package/dist/deviceManager.d.ts.map +1 -0
- package/dist/deviceManager.js +113 -1
- package/dist/deviceManager.js.map +1 -0
- package/dist/devices/airConditioner.d.ts +98 -0
- package/dist/devices/airConditioner.d.ts.map +1 -0
- package/dist/devices/airConditioner.js +57 -0
- package/dist/devices/airConditioner.js.map +1 -0
- package/dist/devices/batteryStorage.d.ts +48 -0
- package/dist/devices/batteryStorage.d.ts.map +1 -0
- package/dist/devices/batteryStorage.js +48 -1
- package/dist/devices/batteryStorage.js.map +1 -0
- package/dist/devices/cooktop.d.ts +61 -0
- package/dist/devices/cooktop.d.ts.map +1 -0
- package/dist/devices/cooktop.js +56 -0
- package/dist/devices/cooktop.js.map +1 -0
- package/dist/devices/dishwasher.d.ts +71 -0
- package/dist/devices/dishwasher.d.ts.map +1 -0
- package/dist/devices/dishwasher.js +57 -0
- package/dist/devices/dishwasher.js.map +1 -0
- package/dist/devices/evse.d.ts +76 -0
- package/dist/devices/evse.d.ts.map +1 -0
- package/dist/devices/evse.js +74 -10
- package/dist/devices/evse.js.map +1 -0
- package/dist/devices/export.d.ts +17 -0
- package/dist/devices/export.d.ts.map +1 -0
- package/dist/devices/export.js +5 -0
- package/dist/devices/export.js.map +1 -0
- package/dist/devices/extractorHood.d.ts +46 -0
- package/dist/devices/extractorHood.d.ts.map +1 -0
- package/dist/devices/extractorHood.js +43 -0
- package/dist/devices/extractorHood.js.map +1 -0
- package/dist/devices/heatPump.d.ts +47 -0
- package/dist/devices/heatPump.d.ts.map +1 -0
- package/dist/devices/heatPump.js +50 -2
- package/dist/devices/heatPump.js.map +1 -0
- package/dist/devices/laundryDryer.d.ts +67 -0
- package/dist/devices/laundryDryer.d.ts.map +1 -0
- package/dist/devices/laundryDryer.js +62 -3
- package/dist/devices/laundryDryer.js.map +1 -0
- package/dist/devices/laundryWasher.d.ts +81 -0
- package/dist/devices/laundryWasher.d.ts.map +1 -0
- package/dist/devices/laundryWasher.js +70 -4
- package/dist/devices/laundryWasher.js.map +1 -0
- package/dist/devices/microwaveOven.d.ts +168 -0
- package/dist/devices/microwaveOven.d.ts.map +1 -0
- package/dist/devices/microwaveOven.js +88 -5
- package/dist/devices/microwaveOven.js.map +1 -0
- package/dist/devices/oven.d.ts +105 -0
- package/dist/devices/oven.d.ts.map +1 -0
- package/dist/devices/oven.js +85 -0
- package/dist/devices/oven.js.map +1 -0
- package/dist/devices/refrigerator.d.ts +118 -0
- package/dist/devices/refrigerator.d.ts.map +1 -0
- package/dist/devices/refrigerator.js +102 -0
- package/dist/devices/refrigerator.js.map +1 -0
- package/dist/devices/roboticVacuumCleaner.d.ts +112 -0
- package/dist/devices/roboticVacuumCleaner.d.ts.map +1 -0
- package/dist/devices/roboticVacuumCleaner.js +100 -9
- package/dist/devices/roboticVacuumCleaner.js.map +1 -0
- package/dist/devices/solarPower.d.ts +40 -0
- package/dist/devices/solarPower.d.ts.map +1 -0
- package/dist/devices/solarPower.js +38 -0
- package/dist/devices/solarPower.js.map +1 -0
- package/dist/devices/speaker.d.ts +87 -0
- package/dist/devices/speaker.d.ts.map +1 -0
- package/dist/devices/speaker.js +84 -0
- package/dist/devices/speaker.js.map +1 -0
- package/dist/devices/temperatureControl.d.ts +166 -0
- package/dist/devices/temperatureControl.d.ts.map +1 -0
- package/dist/devices/temperatureControl.js +24 -3
- package/dist/devices/temperatureControl.js.map +1 -0
- package/dist/devices/waterHeater.d.ts +111 -0
- package/dist/devices/waterHeater.d.ts.map +1 -0
- package/dist/devices/waterHeater.js +82 -2
- package/dist/devices/waterHeater.js.map +1 -0
- package/dist/dgram/coap.d.ts +205 -0
- package/dist/dgram/coap.d.ts.map +1 -0
- package/dist/dgram/coap.js +126 -13
- package/dist/dgram/coap.js.map +1 -0
- package/dist/dgram/dgram.d.ts +141 -0
- package/dist/dgram/dgram.d.ts.map +1 -0
- package/dist/dgram/dgram.js +114 -2
- package/dist/dgram/dgram.js.map +1 -0
- package/dist/dgram/mb_coap.d.ts +24 -0
- package/dist/dgram/mb_coap.d.ts.map +1 -0
- package/dist/dgram/mb_coap.js +41 -3
- package/dist/dgram/mb_coap.js.map +1 -0
- package/dist/dgram/mb_mdns.d.ts +24 -0
- package/dist/dgram/mb_mdns.d.ts.map +1 -0
- package/dist/dgram/mb_mdns.js +80 -15
- package/dist/dgram/mb_mdns.js.map +1 -0
- package/dist/dgram/mdns.d.ts +290 -0
- package/dist/dgram/mdns.d.ts.map +1 -0
- package/dist/dgram/mdns.js +299 -137
- package/dist/dgram/mdns.js.map +1 -0
- package/dist/dgram/multicast.d.ts +67 -0
- package/dist/dgram/multicast.d.ts.map +1 -0
- package/dist/dgram/multicast.js +62 -1
- package/dist/dgram/multicast.js.map +1 -0
- package/dist/dgram/unicast.d.ts +56 -0
- package/dist/dgram/unicast.d.ts.map +1 -0
- package/dist/dgram/unicast.js +54 -0
- package/dist/dgram/unicast.js.map +1 -0
- package/dist/frontend.d.ts +238 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/frontend.js +455 -35
- package/dist/frontend.js.map +1 -0
- package/dist/frontendTypes.d.ts +529 -0
- package/dist/frontendTypes.d.ts.map +1 -0
- package/dist/frontendTypes.js +45 -0
- package/dist/frontendTypes.js.map +1 -0
- package/dist/helpers.d.ts +48 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +53 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/jestutils/export.d.ts +2 -0
- package/dist/jestutils/export.d.ts.map +1 -0
- package/dist/jestutils/export.js +1 -0
- package/dist/jestutils/export.js.map +1 -0
- package/dist/jestutils/jestHelpers.d.ts +345 -0
- package/dist/jestutils/jestHelpers.d.ts.map +1 -0
- package/dist/jestutils/jestHelpers.js +371 -14
- package/dist/jestutils/jestHelpers.js.map +1 -0
- package/dist/logger/export.d.ts +2 -0
- package/dist/logger/export.d.ts.map +1 -0
- package/dist/logger/export.js +1 -0
- package/dist/logger/export.js.map +1 -0
- package/dist/matter/behaviors.d.ts +2 -0
- package/dist/matter/behaviors.d.ts.map +1 -0
- package/dist/matter/behaviors.js +2 -0
- package/dist/matter/behaviors.js.map +1 -0
- package/dist/matter/clusters.d.ts +2 -0
- package/dist/matter/clusters.d.ts.map +1 -0
- package/dist/matter/clusters.js +2 -0
- package/dist/matter/clusters.js.map +1 -0
- package/dist/matter/devices.d.ts +2 -0
- package/dist/matter/devices.d.ts.map +1 -0
- package/dist/matter/devices.js +2 -0
- package/dist/matter/devices.js.map +1 -0
- package/dist/matter/endpoints.d.ts +2 -0
- package/dist/matter/endpoints.d.ts.map +1 -0
- package/dist/matter/endpoints.js +2 -0
- package/dist/matter/endpoints.js.map +1 -0
- package/dist/matter/export.d.ts +5 -0
- package/dist/matter/export.d.ts.map +1 -0
- package/dist/matter/export.js +3 -0
- package/dist/matter/export.js.map +1 -0
- package/dist/matter/types.d.ts +3 -0
- package/dist/matter/types.d.ts.map +1 -0
- package/dist/matter/types.js +3 -0
- package/dist/matter/types.js.map +1 -0
- package/dist/matterNode.d.ts +342 -0
- package/dist/matterNode.d.ts.map +1 -0
- package/dist/matterNode.js +369 -8
- package/dist/matterNode.js.map +1 -0
- package/dist/matterbridge.d.ts +492 -0
- package/dist/matterbridge.d.ts.map +1 -0
- package/dist/matterbridge.js +811 -46
- package/dist/matterbridge.js.map +1 -0
- package/dist/matterbridgeAccessoryPlatform.d.ts +41 -0
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -0
- package/dist/matterbridgeAccessoryPlatform.js +38 -0
- package/dist/matterbridgeAccessoryPlatform.js.map +1 -0
- package/dist/matterbridgeBehaviors.d.ts +2404 -0
- package/dist/matterbridgeBehaviors.d.ts.map +1 -0
- package/dist/matterbridgeBehaviors.js +68 -5
- package/dist/matterbridgeBehaviors.js.map +1 -0
- package/dist/matterbridgeDeviceTypes.d.ts +698 -0
- package/dist/matterbridgeDeviceTypes.d.ts.map +1 -0
- package/dist/matterbridgeDeviceTypes.js +635 -14
- package/dist/matterbridgeDeviceTypes.js.map +1 -0
- package/dist/matterbridgeDynamicPlatform.d.ts +41 -0
- package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -0
- package/dist/matterbridgeDynamicPlatform.js +38 -0
- package/dist/matterbridgeDynamicPlatform.js.map +1 -0
- package/dist/matterbridgeEndpoint.d.ts +1507 -0
- package/dist/matterbridgeEndpoint.d.ts.map +1 -0
- package/dist/matterbridgeEndpoint.js +1444 -53
- package/dist/matterbridgeEndpoint.js.map +1 -0
- package/dist/matterbridgeEndpointHelpers.d.ts +787 -0
- package/dist/matterbridgeEndpointHelpers.d.ts.map +1 -0
- package/dist/matterbridgeEndpointHelpers.js +483 -20
- package/dist/matterbridgeEndpointHelpers.js.map +1 -0
- package/dist/matterbridgeEndpointTypes.d.ts +166 -0
- package/dist/matterbridgeEndpointTypes.d.ts.map +1 -0
- package/dist/matterbridgeEndpointTypes.js +25 -0
- package/dist/matterbridgeEndpointTypes.js.map +1 -0
- package/dist/matterbridgePlatform.d.ts +539 -0
- package/dist/matterbridgePlatform.d.ts.map +1 -0
- package/dist/matterbridgePlatform.js +451 -1
- package/dist/matterbridgePlatform.js.map +1 -0
- package/dist/matterbridgeTypes.d.ts +251 -0
- package/dist/matterbridgeTypes.d.ts.map +1 -0
- package/dist/matterbridgeTypes.js +26 -0
- package/dist/matterbridgeTypes.js.map +1 -0
- package/dist/pluginManager.d.ts +372 -0
- package/dist/pluginManager.d.ts.map +1 -0
- package/dist/pluginManager.js +341 -5
- package/dist/pluginManager.js.map +1 -0
- package/dist/shelly.d.ts +181 -0
- package/dist/shelly.d.ts.map +1 -0
- package/dist/shelly.js +178 -7
- package/dist/shelly.js.map +1 -0
- package/dist/storage/export.d.ts +2 -0
- package/dist/storage/export.d.ts.map +1 -0
- package/dist/storage/export.js +1 -0
- package/dist/storage/export.js.map +1 -0
- package/dist/update.d.ts +84 -0
- package/dist/update.d.ts.map +1 -0
- package/dist/update.js +93 -1
- package/dist/update.js.map +1 -0
- package/dist/utils/colorUtils.d.ts +101 -0
- package/dist/utils/colorUtils.d.ts.map +1 -0
- package/dist/utils/colorUtils.js +97 -2
- package/dist/utils/colorUtils.js.map +1 -0
- package/dist/utils/commandLine.d.ts +66 -0
- package/dist/utils/commandLine.d.ts.map +1 -0
- package/dist/utils/commandLine.js +60 -0
- package/dist/utils/commandLine.js.map +1 -0
- package/dist/utils/copyDirectory.d.ts +35 -0
- package/dist/utils/copyDirectory.d.ts.map +1 -0
- package/dist/utils/copyDirectory.js +37 -0
- package/dist/utils/copyDirectory.js.map +1 -0
- package/dist/utils/createDirectory.d.ts +34 -0
- package/dist/utils/createDirectory.d.ts.map +1 -0
- package/dist/utils/createDirectory.js +33 -0
- package/dist/utils/createDirectory.js.map +1 -0
- package/dist/utils/createZip.d.ts +39 -0
- package/dist/utils/createZip.d.ts.map +1 -0
- package/dist/utils/createZip.js +47 -2
- package/dist/utils/createZip.js.map +1 -0
- package/dist/utils/deepCopy.d.ts +32 -0
- package/dist/utils/deepCopy.d.ts.map +1 -0
- package/dist/utils/deepCopy.js +39 -0
- package/dist/utils/deepCopy.js.map +1 -0
- package/dist/utils/deepEqual.d.ts +54 -0
- package/dist/utils/deepEqual.d.ts.map +1 -0
- package/dist/utils/deepEqual.js +72 -1
- package/dist/utils/deepEqual.js.map +1 -0
- package/dist/utils/error.d.ts +45 -0
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +42 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/export.d.ts +13 -0
- package/dist/utils/export.d.ts.map +1 -0
- package/dist/utils/export.js +1 -0
- package/dist/utils/export.js.map +1 -0
- package/dist/utils/format.d.ts +53 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +49 -0
- package/dist/utils/format.js.map +1 -0
- package/dist/utils/hex.d.ts +89 -0
- package/dist/utils/hex.d.ts.map +1 -0
- package/dist/utils/hex.js +124 -0
- package/dist/utils/hex.js.map +1 -0
- package/dist/utils/inspector.d.ts +87 -0
- package/dist/utils/inspector.d.ts.map +1 -0
- package/dist/utils/inspector.js +69 -1
- package/dist/utils/inspector.js.map +1 -0
- package/dist/utils/isvalid.d.ts +103 -0
- package/dist/utils/isvalid.d.ts.map +1 -0
- package/dist/utils/isvalid.js +101 -0
- package/dist/utils/isvalid.js.map +1 -0
- package/dist/utils/network.d.ts +111 -0
- package/dist/utils/network.d.ts.map +1 -0
- package/dist/utils/network.js +96 -5
- package/dist/utils/network.js.map +1 -0
- package/dist/utils/spawn.d.ts +33 -0
- package/dist/utils/spawn.d.ts.map +1 -0
- package/dist/utils/spawn.js +71 -1
- package/dist/utils/spawn.js.map +1 -0
- package/dist/utils/tracker.d.ts +108 -0
- package/dist/utils/tracker.d.ts.map +1 -0
- package/dist/utils/tracker.js +64 -1
- package/dist/utils/tracker.js.map +1 -0
- package/dist/utils/wait.d.ts +54 -0
- package/dist/utils/wait.d.ts.map +1 -0
- package/dist/utils/wait.js +60 -8
- package/dist/utils/wait.js.map +1 -0
- package/dist/workerGlobalPrefix.d.ts +25 -0
- package/dist/workerGlobalPrefix.d.ts.map +1 -0
- package/dist/workerGlobalPrefix.js +37 -5
- package/dist/workerGlobalPrefix.js.map +1 -0
- package/dist/workerTypes.d.ts +52 -0
- package/dist/workerTypes.d.ts.map +1 -0
- package/dist/workerTypes.js +24 -0
- package/dist/workerTypes.js.map +1 -0
- package/dist/workers.d.ts +69 -0
- package/dist/workers.d.ts.map +1 -0
- package/dist/workers.js +68 -4
- package/dist/workers.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -1
- package/scripts/data_model.mjs +2058 -0
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the workerGlobalPrefix functions.
|
|
3
|
+
*
|
|
4
|
+
* @file workerGlobalPrefix.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @created 2025-11-25
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
* @license Apache-2.0
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
1
24
|
import { threadId, isMainThread, parentPort, workerData } from 'node:worker_threads';
|
|
2
25
|
import { AnsiLogger } from 'node-ansi-logger';
|
|
3
26
|
import { getGlobalNodeModules } from './utils/network.js';
|
|
@@ -7,13 +30,17 @@ import { logWorkerInfo, parentLog, parentPost } from './workers.js';
|
|
|
7
30
|
import { hasParameter } from './utils/commandLine.js';
|
|
8
31
|
const debug = hasParameter('debug') || hasParameter('verbose');
|
|
9
32
|
const verbose = hasParameter('verbose');
|
|
33
|
+
// Send init message
|
|
34
|
+
// istanbul ignore next cause it's available only in worker threads
|
|
10
35
|
if (!isMainThread && parentPort) {
|
|
11
36
|
parentPost({ type: 'init', threadId, threadName: workerData.threadName, success: true });
|
|
12
37
|
if (debug)
|
|
13
|
-
parentLog('MatterbridgePrefix', "info"
|
|
38
|
+
parentLog('MatterbridgePrefix', "info" /* LogLevel.INFO */, `Worker ${workerData.threadName}:${threadId} initialized.`);
|
|
14
39
|
}
|
|
15
|
-
|
|
40
|
+
// Broadcast server
|
|
41
|
+
const log = new AnsiLogger({ logName: 'MatterbridgePrefix', logTimestampFormat: 4 /* TimestampFormat.TIME_MILLIS */, logLevel: debug ? "debug" /* LogLevel.DEBUG */ : "info" /* LogLevel.INFO */ });
|
|
16
42
|
const server = new BroadcastServer('matterbridge', log);
|
|
43
|
+
// Log worker info
|
|
17
44
|
if (verbose)
|
|
18
45
|
logWorkerInfo(log, verbose);
|
|
19
46
|
let prefix;
|
|
@@ -24,16 +51,21 @@ try {
|
|
|
24
51
|
server.request({ type: 'matterbridge_global_prefix', src: `matterbridge`, dst: 'matterbridge', params: { prefix } });
|
|
25
52
|
success = true;
|
|
26
53
|
if (!isMainThread && parentPort)
|
|
27
|
-
parentLog('MatterbridgePrefix', "debug"
|
|
54
|
+
parentLog('MatterbridgePrefix', "debug" /* LogLevel.DEBUG */, `Global node_modules Directory: ${prefix}`);
|
|
28
55
|
}
|
|
29
56
|
catch (error) {
|
|
57
|
+
// istanbul ignore next cause it's just an error log
|
|
30
58
|
const errorMessage = inspectError(log, `Failed to get global node modules`, error);
|
|
59
|
+
// istanbul ignore next cause it's just an error log
|
|
31
60
|
if (!isMainThread && parentPort)
|
|
32
|
-
parentLog('MatterbridgePrefix', "error"
|
|
61
|
+
parentLog('MatterbridgePrefix', "error" /* LogLevel.ERROR */, errorMessage);
|
|
33
62
|
}
|
|
34
63
|
server.close();
|
|
64
|
+
// Send exit message
|
|
65
|
+
// istanbul ignore next cause it's available only in worker threads
|
|
35
66
|
if (!isMainThread && parentPort) {
|
|
36
67
|
parentPost({ type: 'exit', threadId, threadName: workerData.threadName, success });
|
|
37
68
|
if (debug)
|
|
38
|
-
parentLog('MatterbridgePrefix', "info"
|
|
69
|
+
parentLog('MatterbridgePrefix', "info" /* LogLevel.INFO */, `Worker ${workerData.threadName}:${threadId} exiting with success: ${success}.`);
|
|
39
70
|
}
|
|
71
|
+
//# sourceMappingURL=workerGlobalPrefix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workerGlobalPrefix.js","sourceRoot":"","sources":["../src/workerGlobalPrefix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAErF,OAAO,EAAE,UAAU,EAA6B,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;AAExC,oBAAoB;AACpB,mEAAmE;AACnE,IAAI,CAAC,YAAY,IAAI,UAAU,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACzF,IAAI,KAAK;QAAE,SAAS,CAAC,oBAAoB,8BAAiB,UAAU,UAAU,CAAC,UAAU,IAAI,QAAQ,eAAe,CAAC,CAAC;AACxH,CAAC;AAED,mBAAmB;AACnB,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,qCAA6B,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,8BAAgB,CAAC,2BAAc,EAAE,CAAC,CAAC;AACjK,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;AAExD,kBAAkB;AAClB,IAAI,OAAO;IAAE,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAEzC,IAAI,MAAc,CAAC;AACnB,IAAI,OAAO,GAAG,KAAK,CAAC;AACpB,IAAI,CAAC;IACH,MAAM,GAAG,MAAM,oBAAoB,EAAE,CAAC;IACtC,GAAG,CAAC,KAAK,CAAC,kCAAkC,MAAM,EAAE,CAAC,CAAC;IACtD,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;IACrH,OAAO,GAAG,IAAI,CAAC;IACf,IAAI,CAAC,YAAY,IAAI,UAAU;QAAE,SAAS,CAAC,oBAAoB,gCAAkB,kCAAkC,MAAM,EAAE,CAAC,CAAC;AAC/H,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,oDAAoD;IACpD,MAAM,YAAY,GAAG,YAAY,CAAC,GAAG,EAAE,mCAAmC,EAAE,KAAK,CAAC,CAAC;IACnF,oDAAoD;IACpD,IAAI,CAAC,YAAY,IAAI,UAAU;QAAE,SAAS,CAAC,oBAAoB,gCAAkB,YAAY,CAAC,CAAC;AACjG,CAAC;AACD,MAAM,CAAC,KAAK,EAAE,CAAC;AAEf,oBAAoB;AACpB,mEAAmE;AACnE,IAAI,CAAC,YAAY,IAAI,UAAU,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IACnF,IAAI,KAAK;QAAE,SAAS,CAAC,oBAAoB,8BAAiB,UAAU,UAAU,CAAC,UAAU,IAAI,QAAQ,0BAA0B,OAAO,GAAG,CAAC,CAAC;AAC7I,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the worker types.
|
|
3
|
+
*
|
|
4
|
+
* @file workerTypes.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @created 2025-11-25
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
* @license Apache-2.0
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
import { LogLevel } from 'node-ansi-logger';
|
|
25
|
+
/** Control messages sent through parentPort manager <-> workers */
|
|
26
|
+
export type ParentPortMessage = {
|
|
27
|
+
type: 'init';
|
|
28
|
+
threadName: string | null;
|
|
29
|
+
threadId: number;
|
|
30
|
+
success: boolean;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'ping';
|
|
33
|
+
threadName: string | null;
|
|
34
|
+
threadId: number;
|
|
35
|
+
} | {
|
|
36
|
+
type: 'pong';
|
|
37
|
+
threadName: string | null;
|
|
38
|
+
threadId: number;
|
|
39
|
+
} | {
|
|
40
|
+
type: 'log';
|
|
41
|
+
threadName: string | null;
|
|
42
|
+
threadId: number;
|
|
43
|
+
logName: string | undefined;
|
|
44
|
+
logLevel: LogLevel;
|
|
45
|
+
message: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: 'exit';
|
|
48
|
+
threadName: string | null;
|
|
49
|
+
threadId: number;
|
|
50
|
+
success: boolean;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=workerTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workerTypes.d.ts","sourceRoot":"","sources":["../src/workerTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,mEAAmE;AACnE,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC/E;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC9H;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC"}
|
package/dist/workerTypes.js
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the worker types.
|
|
3
|
+
*
|
|
4
|
+
* @file workerTypes.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @created 2025-11-25
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
* @license Apache-2.0
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
1
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=workerTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workerTypes.js","sourceRoot":"","sources":["../src/workerTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the worker functions.
|
|
3
|
+
*
|
|
4
|
+
* @file workers.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @created 2025-11-25
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
* @license Apache-2.0
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
import { Worker } from 'node:worker_threads';
|
|
25
|
+
import { AnsiLogger, LogLevel } from 'node-ansi-logger';
|
|
26
|
+
import type { ParentPortMessage } from './workerTypes.js';
|
|
27
|
+
/**
|
|
28
|
+
* Sends a control message to the parent through parentPort
|
|
29
|
+
*
|
|
30
|
+
* @param {ControlMessage} message - The control message to send.
|
|
31
|
+
*/
|
|
32
|
+
export declare function parentPost(message: ParentPortMessage): void;
|
|
33
|
+
/**
|
|
34
|
+
* Sends a control message to the parent through parentPort to log a message.
|
|
35
|
+
*
|
|
36
|
+
* @param {string | undefined} logName - The name of the logger.
|
|
37
|
+
* @param {LogLevel} logLevel - The log level of the message.
|
|
38
|
+
* @param {string} message - The log message to send.
|
|
39
|
+
*/
|
|
40
|
+
export declare function parentLog(logName: string | undefined, logLevel: LogLevel, message: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Typed helper to create an ESM Worker.
|
|
43
|
+
*
|
|
44
|
+
* This function uses pathToFileURL to convert the relative path to a file URL,
|
|
45
|
+
* which is necessary for ESM modules. It also sets the worker type to 'module'.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} name - name of the worker
|
|
48
|
+
* @param {string} relativePath - path to the worker file code: it must be an ESM module in javascript
|
|
49
|
+
* @param {Record<string, boolean | number | string | object>} [workerData] - optional data to pass to the worker
|
|
50
|
+
* @param {string[]} [argv] - optional command line arguments to pass to the worker. If not provided, inherits from the main thread.
|
|
51
|
+
* @param {NodeJS.ProcessEnv} [env] - optional environment variables to pass to the worker. If not provided, inherits from the main thread.
|
|
52
|
+
* @param {string[]} [execArgv] - optional execArgv to pass to the worker. If not provided no execArgv are passed.
|
|
53
|
+
* @returns {Worker} - the created Worker instance
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* createESMWorker('NpmCommand', './dist/npmCommand.js', { command: 'npm list --global --depth=0' });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function createESMWorker(name: string, relativePath: string, workerData?: Record<string, boolean | number | string | object>, argv?: string[], env?: NodeJS.ProcessEnv, execArgv?: string[]): Worker;
|
|
61
|
+
/**
|
|
62
|
+
* Log worker information.
|
|
63
|
+
*
|
|
64
|
+
* @param {AnsiLogger} log - The logger instance to use for logging.
|
|
65
|
+
* @param {boolean} [logEnv] - Whether to log environment variables. Defaults to false.
|
|
66
|
+
*/
|
|
67
|
+
export declare function logWorkerInfo(log: AnsiLogger, logEnv?: boolean): void;
|
|
68
|
+
export { ParentPortMessage };
|
|
69
|
+
//# sourceMappingURL=workers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../src/workers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAsC,MAAM,EAA6B,MAAM,qBAAqB,CAAC;AAK5G,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;;GAIG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAG3D;AAED;;;;;;GAMG;AAEH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhG;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAW1M;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,GAAE,OAAe,GAAG,IAAI,CAQ5E;AACD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/workers.js
CHANGED
|
@@ -1,31 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the worker functions.
|
|
3
|
+
*
|
|
4
|
+
* @file workers.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @created 2025-11-25
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
* @license Apache-2.0
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
1
24
|
import { isMainThread, parentPort, threadId, Worker, workerData } from 'node:worker_threads';
|
|
2
25
|
import { pathToFileURL } from 'node:url';
|
|
3
26
|
import { resolve } from 'node:path';
|
|
4
27
|
import { inspect } from 'node:util';
|
|
28
|
+
/**
|
|
29
|
+
* Sends a control message to the parent through parentPort
|
|
30
|
+
*
|
|
31
|
+
* @param {ControlMessage} message - The control message to send.
|
|
32
|
+
*/
|
|
33
|
+
// istanbul ignore next cause it's available only in worker threads
|
|
5
34
|
export function parentPost(message) {
|
|
6
35
|
if (!parentPort)
|
|
7
36
|
throw new Error(`WorkerServer ${workerData.threadName}: parentPort is not available.`);
|
|
8
37
|
parentPort.postMessage(message);
|
|
9
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Sends a control message to the parent through parentPort to log a message.
|
|
41
|
+
*
|
|
42
|
+
* @param {string | undefined} logName - The name of the logger.
|
|
43
|
+
* @param {LogLevel} logLevel - The log level of the message.
|
|
44
|
+
* @param {string} message - The log message to send.
|
|
45
|
+
*/
|
|
46
|
+
// istanbul ignore next cause it's available only in worker threads
|
|
10
47
|
export function parentLog(logName, logLevel, message) {
|
|
11
48
|
if (!parentPort)
|
|
12
49
|
throw new Error(`WorkerServer ${workerData.threadName}: parentPort is not available.`);
|
|
13
50
|
const logMessage = { type: 'log', threadId, threadName: workerData.threadName, logName, logLevel, message };
|
|
14
51
|
parentPort.postMessage(logMessage);
|
|
15
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Typed helper to create an ESM Worker.
|
|
55
|
+
*
|
|
56
|
+
* This function uses pathToFileURL to convert the relative path to a file URL,
|
|
57
|
+
* which is necessary for ESM modules. It also sets the worker type to 'module'.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} name - name of the worker
|
|
60
|
+
* @param {string} relativePath - path to the worker file code: it must be an ESM module in javascript
|
|
61
|
+
* @param {Record<string, boolean | number | string | object>} [workerData] - optional data to pass to the worker
|
|
62
|
+
* @param {string[]} [argv] - optional command line arguments to pass to the worker. If not provided, inherits from the main thread.
|
|
63
|
+
* @param {NodeJS.ProcessEnv} [env] - optional environment variables to pass to the worker. If not provided, inherits from the main thread.
|
|
64
|
+
* @param {string[]} [execArgv] - optional execArgv to pass to the worker. If not provided no execArgv are passed.
|
|
65
|
+
* @returns {Worker} - the created Worker instance
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* createESMWorker('NpmCommand', './dist/npmCommand.js', { command: 'npm list --global --depth=0' });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
16
72
|
export function createESMWorker(name, relativePath, workerData, argv, env, execArgv) {
|
|
17
73
|
const fileURL = pathToFileURL(resolve(relativePath));
|
|
18
74
|
const options = {
|
|
19
|
-
workerData: { ...workerData, threadName: name },
|
|
75
|
+
workerData: { ...workerData, threadName: name }, // Pass threadName in workerData cause worker_threads don't have it natively in node 20
|
|
20
76
|
type: 'module',
|
|
21
77
|
name,
|
|
22
|
-
argv: argv ?? process.argv.slice(2),
|
|
23
|
-
env: env ?? process.env,
|
|
24
|
-
execArgv,
|
|
78
|
+
argv: argv ?? process.argv.slice(2), // Pass command line arguments to worker
|
|
79
|
+
env: env ?? process.env, // Inherit environment variables
|
|
80
|
+
execArgv, // execArgv for node like --inspect
|
|
25
81
|
};
|
|
26
82
|
return new Worker(fileURL, options);
|
|
27
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Log worker information.
|
|
86
|
+
*
|
|
87
|
+
* @param {AnsiLogger} log - The logger instance to use for logging.
|
|
88
|
+
* @param {boolean} [logEnv] - Whether to log environment variables. Defaults to false.
|
|
89
|
+
*/
|
|
28
90
|
export function logWorkerInfo(log, logEnv = false) {
|
|
91
|
+
// Log worker info
|
|
29
92
|
log.debug(`${isMainThread ? 'Main thread' : 'Worker thread'}: ${workerData?.threadName}:${threadId} Pid: ${process.pid}`);
|
|
30
93
|
log.debug(`ParentPort: ${parentPort ? 'active' : 'not active'}`);
|
|
31
94
|
log.debug(`WorkerData: ${workerData ? inspect(workerData, true, 10, true) : 'none'}`);
|
|
@@ -33,3 +96,4 @@ export function logWorkerInfo(log, logEnv = false) {
|
|
|
33
96
|
log.debug(`Argv: ${argv.length ? argv.join(' ') : 'none'}`);
|
|
34
97
|
log.debug(`Env: ${logEnv ? inspect(process.env, true, 10, true) : 'not logged'}`);
|
|
35
98
|
}
|
|
99
|
+
//# sourceMappingURL=workers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workers.js","sourceRoot":"","sources":["../src/workers.ts"],"names":[],"mappings":"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"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.4.3
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.4.3
|
|
9
|
+
"version": "3.4.3",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.15.6",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.4.3
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"type": "module",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
|
+
"types": "dist/index.d.ts",
|
|
43
44
|
"bin": {
|
|
44
45
|
"matterbridge": "bin/matterbridge.js",
|
|
45
46
|
"mb_mdns": "bin/mb_mdns.js",
|