matterbridge 2.1.2-dev.3 → 2.1.2
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/cli.d.ts +25 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +26 -0
- package/dist/cli.js.map +1 -0
- package/dist/cluster/export.d.ts +2 -0
- package/dist/cluster/export.d.ts.map +1 -0
- package/dist/cluster/export.js +2 -0
- package/dist/cluster/export.js.map +1 -0
- package/dist/defaultConfigSchema.d.ts +27 -0
- package/dist/defaultConfigSchema.d.ts.map +1 -0
- package/dist/defaultConfigSchema.js +23 -0
- package/dist/defaultConfigSchema.js.map +1 -0
- package/dist/deviceManager.d.ts +114 -0
- package/dist/deviceManager.d.ts.map +1 -0
- package/dist/deviceManager.js +94 -1
- package/dist/deviceManager.js.map +1 -0
- package/dist/frontend.d.ts +110 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/frontend.js +231 -23
- package/dist/frontend.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.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 +2 -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 +2 -0
- package/dist/matter/types.js.map +1 -0
- package/dist/matterbridge.d.ts +409 -0
- package/dist/matterbridge.d.ts.map +1 -0
- package/dist/matterbridge.js +743 -37
- package/dist/matterbridge.js.map +1 -0
- package/dist/matterbridgeAccessoryPlatform.d.ts +39 -0
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -0
- package/dist/matterbridgeAccessoryPlatform.js +33 -0
- package/dist/matterbridgeAccessoryPlatform.js.map +1 -0
- package/dist/matterbridgeBehaviors.d.ts +1056 -0
- package/dist/matterbridgeBehaviors.d.ts.map +1 -0
- package/dist/matterbridgeBehaviors.js +32 -1
- package/dist/matterbridgeBehaviors.js.map +1 -0
- package/dist/matterbridgeDeviceTypes.d.ts +177 -0
- package/dist/matterbridgeDeviceTypes.d.ts.map +1 -0
- package/dist/matterbridgeDeviceTypes.js +112 -11
- package/dist/matterbridgeDeviceTypes.js.map +1 -0
- package/dist/matterbridgeDynamicPlatform.d.ts +39 -0
- package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -0
- package/dist/matterbridgeDynamicPlatform.js +33 -0
- package/dist/matterbridgeDynamicPlatform.js.map +1 -0
- package/dist/matterbridgeEndpoint.d.ts +834 -0
- package/dist/matterbridgeEndpoint.d.ts.map +1 -0
- package/dist/matterbridgeEndpoint.js +690 -6
- package/dist/matterbridgeEndpoint.js.map +1 -0
- package/dist/matterbridgeEndpointHelpers.d.ts +2262 -0
- package/dist/matterbridgeEndpointHelpers.d.ts.map +1 -0
- package/dist/matterbridgeEndpointHelpers.js +96 -0
- package/dist/matterbridgeEndpointHelpers.js.map +1 -0
- package/dist/matterbridgePlatform.d.ts +152 -0
- package/dist/matterbridgePlatform.d.ts.map +1 -0
- package/dist/matterbridgePlatform.js +111 -3
- package/dist/matterbridgePlatform.js.map +1 -0
- package/dist/matterbridgeTypes.d.ts +167 -0
- package/dist/matterbridgeTypes.d.ts.map +1 -0
- package/dist/matterbridgeTypes.js +24 -0
- package/dist/matterbridgeTypes.js.map +1 -0
- package/dist/pluginManager.d.ts +236 -0
- package/dist/pluginManager.d.ts.map +1 -0
- package/dist/pluginManager.js +230 -3
- package/dist/pluginManager.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/utils/colorUtils.d.ts +61 -0
- package/dist/utils/colorUtils.d.ts.map +1 -0
- package/dist/utils/colorUtils.js +205 -2
- package/dist/utils/colorUtils.js.map +1 -0
- package/dist/utils/export.d.ts +3 -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/utils.d.ts +221 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +251 -7
- package/dist/utils/utils.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -1
package/dist/utils/utils.js
CHANGED
|
@@ -1,28 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the deepEqual function.
|
|
3
|
+
*
|
|
4
|
+
* @file utils.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @date 2024-02-17
|
|
7
|
+
* @version 1.2.9
|
|
8
|
+
*
|
|
9
|
+
* Copyright 2024, 2025, 2026 Luca Liguori.
|
|
10
|
+
*
|
|
11
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
+
* you may not use this file except in compliance with the License.
|
|
13
|
+
* You may obtain a copy of the License at
|
|
14
|
+
*
|
|
15
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
*
|
|
17
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
+
* See the License for the specific language governing permissions and
|
|
21
|
+
* limitations under the License. *
|
|
22
|
+
*/
|
|
23
|
+
// Node.js modules
|
|
1
24
|
import os from 'os';
|
|
2
25
|
import { createWriteStream, statSync } from 'fs';
|
|
3
26
|
import path from 'path';
|
|
4
27
|
import * as dns from 'dns';
|
|
5
28
|
import { promises as fs } from 'fs';
|
|
29
|
+
// AnsiLogger module
|
|
6
30
|
import { AnsiLogger, idn, rs } from 'node-ansi-logger';
|
|
7
|
-
const log = new AnsiLogger({ logName: 'MatterbridgeUtils', logTimestampFormat: 4
|
|
31
|
+
const log = new AnsiLogger({ logName: 'MatterbridgeUtils', logTimestampFormat: 4 /* TimestampFormat.TIME_MILLIS */, logLevel: "info" /* LogLevel.INFO */ });
|
|
32
|
+
/**
|
|
33
|
+
* Performs a deep comparison between two values to determine if they are equivalent.
|
|
34
|
+
* This comparison includes primitive types, arrays, and objects, allowing for optional
|
|
35
|
+
* exclusion of specific properties from the comparison in objects.
|
|
36
|
+
*
|
|
37
|
+
* @param {any} a The first value to compare.
|
|
38
|
+
* @param {any} b The second value to compare.
|
|
39
|
+
* @param {string[]} [excludeProperties=[]] An array of property names to exclude from the comparison in objects.
|
|
40
|
+
* @returns {boolean} True if the values are deeply equal, excluding any specified properties; otherwise, false.
|
|
41
|
+
*
|
|
42
|
+
* Note: This function utilizes recursion for deep comparison of nested structures and includes a debugging
|
|
43
|
+
* mechanism that can be toggled on or off for detailed comparison logging. It is important to ensure that
|
|
44
|
+
* objects do not contain circular references when enabling debug logging to avoid infinite loops.
|
|
45
|
+
*
|
|
46
|
+
* Example usage:
|
|
47
|
+
* ```
|
|
48
|
+
* const obj1 = { a: 1, b: { c: 2 } };
|
|
49
|
+
* const obj2 = { a: 1, b: { c: 2 } };
|
|
50
|
+
* console.log(deepEqual(obj1, obj2)); // true
|
|
51
|
+
*
|
|
52
|
+
* const arr1 = [1, 2, [3, 4]];
|
|
53
|
+
* const arr2 = [1, 2, [3, 4]];
|
|
54
|
+
* console.log(deepEqual(arr1, arr2)); // true
|
|
55
|
+
*
|
|
56
|
+
* const obj3 = { a: 1, b: { c: 2, d: 3 } };
|
|
57
|
+
* const obj4 = { a: 1, b: { c: 2 } };
|
|
58
|
+
* console.log(deepEqual(obj3, obj4, ['d'])); // true, excluding property 'd' from comparison
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
62
|
export function deepEqual(a, b, excludeProperties = []) {
|
|
63
|
+
// Toggle debugging on or off easily
|
|
9
64
|
const debug = false;
|
|
65
|
+
// Helper function for conditional logging
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
67
|
const debugLog = (...messages) => {
|
|
11
68
|
if (debug) {
|
|
69
|
+
// eslint-disable-next-line no-console
|
|
12
70
|
console.log(...messages);
|
|
13
71
|
}
|
|
14
72
|
};
|
|
73
|
+
// If both are the same instance, return true (handles primitives and same object references)
|
|
15
74
|
if (a === b) {
|
|
16
75
|
return true;
|
|
17
76
|
}
|
|
77
|
+
// If types are different, return false
|
|
18
78
|
if (typeof a !== typeof b) {
|
|
19
79
|
debugLog(`deepEqual false for typeof a: ${typeof a} typeof b: ${typeof b}`);
|
|
20
80
|
return false;
|
|
21
81
|
}
|
|
82
|
+
// If one of them is null (and we know they are not equal from the first check), return false
|
|
22
83
|
if (a == null || b == null) {
|
|
23
84
|
debugLog('deepEqual false for == null');
|
|
24
85
|
return false;
|
|
25
86
|
}
|
|
87
|
+
// Handle Arrays
|
|
26
88
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
27
89
|
if (a.length !== b.length) {
|
|
28
90
|
debugLog(`deepEqual false for array a.length(${a.length}) !== b.length(${b.length})`);
|
|
@@ -38,54 +100,75 @@ export function deepEqual(a, b, excludeProperties = []) {
|
|
|
38
100
|
}
|
|
39
101
|
return true;
|
|
40
102
|
}
|
|
103
|
+
// Handle Objects (and exclude null, functions, and arrays)
|
|
41
104
|
if (typeof a === 'object' && typeof b === 'object') {
|
|
42
105
|
const aProps = Object.getOwnPropertyNames(a).filter((prop) => !excludeProperties.includes(prop));
|
|
43
106
|
const bProps = Object.getOwnPropertyNames(b).filter((prop) => !excludeProperties.includes(prop));
|
|
107
|
+
// If their property lengths are different, they're different objects
|
|
44
108
|
if (aProps.length !== bProps.length) {
|
|
45
109
|
debugLog(`deepEqual false for aProps.length(${aProps.length}) !== bProps.length(${bProps.length})`);
|
|
46
110
|
debugLog(`- aProps.length(${aProps.length}):`, aProps);
|
|
47
111
|
debugLog(`- bProps.length(${bProps.length}):`, bProps);
|
|
48
112
|
return false;
|
|
49
113
|
}
|
|
114
|
+
// Check each property in 'a' to see if it's in 'b' and if it's equal (deep check)
|
|
50
115
|
for (const prop of aProps) {
|
|
51
116
|
if (!Object.prototype.hasOwnProperty.call(b, prop)) {
|
|
52
117
|
debugLog(`deepEqual false for !b.hasOwnProperty(${prop})`);
|
|
53
118
|
return false;
|
|
54
119
|
}
|
|
55
120
|
if (!deepEqual(a[prop], b[prop], excludeProperties)) {
|
|
56
|
-
debugLog(`deepEqual false for !deepEqual(a[${prop}], b[${prop}])`);
|
|
121
|
+
debugLog(`deepEqual false for !deepEqual(a[${prop}], b[${prop}])` /* , a[prop], b[prop]*/);
|
|
57
122
|
return false;
|
|
58
123
|
}
|
|
59
124
|
}
|
|
60
125
|
return true;
|
|
61
126
|
}
|
|
127
|
+
// If none of the above, the objects are not equal
|
|
62
128
|
return false;
|
|
63
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Creates a deep copy of the given value.
|
|
132
|
+
*
|
|
133
|
+
* @template T - The type of the value being copied.
|
|
134
|
+
* @param {T} value - The value to be copied.
|
|
135
|
+
* @returns {T} - The deep copy of the value.
|
|
136
|
+
*/
|
|
64
137
|
export function deepCopy(value) {
|
|
65
138
|
if (typeof value !== 'object' || value === null) {
|
|
139
|
+
// Primitive value (string, number, boolean, bigint, undefined, symbol) or null
|
|
66
140
|
return value;
|
|
67
141
|
}
|
|
68
142
|
else if (Array.isArray(value)) {
|
|
143
|
+
// Array: Recursively copy each element
|
|
144
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
145
|
return value.map((item) => deepCopy(item));
|
|
70
146
|
}
|
|
71
147
|
else if (value instanceof Date) {
|
|
148
|
+
// Date objects
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
150
|
return new Date(value.getTime());
|
|
73
151
|
}
|
|
74
152
|
else if (value instanceof Map) {
|
|
153
|
+
// Maps
|
|
75
154
|
const mapCopy = new Map();
|
|
76
155
|
value.forEach((val, key) => {
|
|
77
156
|
mapCopy.set(key, deepCopy(val));
|
|
78
157
|
});
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
159
|
return mapCopy;
|
|
80
160
|
}
|
|
81
161
|
else if (value instanceof Set) {
|
|
162
|
+
// Sets
|
|
82
163
|
const setCopy = new Set();
|
|
83
164
|
value.forEach((item) => {
|
|
84
165
|
setCopy.add(deepCopy(item));
|
|
85
166
|
});
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
86
168
|
return setCopy;
|
|
87
169
|
}
|
|
88
170
|
else {
|
|
171
|
+
// Objects: Create a copy with the same prototype as the original
|
|
89
172
|
const proto = Object.getPrototypeOf(value);
|
|
90
173
|
const copy = Object.create(proto);
|
|
91
174
|
for (const key in value) {
|
|
@@ -96,9 +179,14 @@ export function deepCopy(value) {
|
|
|
96
179
|
return copy;
|
|
97
180
|
}
|
|
98
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Retrieves the IPv4 address of the first non-internal network interface.
|
|
184
|
+
* @returns {string | undefined} The IPv4 address of the selected network interface, or undefined if not found.
|
|
185
|
+
*/
|
|
99
186
|
export function getIpv4InterfaceAddress() {
|
|
100
187
|
let ipv4Address;
|
|
101
188
|
const networkInterfaces = os.networkInterfaces();
|
|
189
|
+
// console.log('Available Network Interfaces:', networkInterfaces);
|
|
102
190
|
for (const interfaceDetails of Object.values(networkInterfaces)) {
|
|
103
191
|
if (!interfaceDetails) {
|
|
104
192
|
break;
|
|
@@ -112,11 +200,17 @@ export function getIpv4InterfaceAddress() {
|
|
|
112
200
|
break;
|
|
113
201
|
}
|
|
114
202
|
}
|
|
203
|
+
// console.log('Selected Network Interfaces:', ipv4Address);
|
|
115
204
|
return ipv4Address;
|
|
116
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves the IPv6 address of the first non-internal network interface.
|
|
208
|
+
* @returns {string | undefined} The IPv4 address of the selected network interface, or undefined if not found.
|
|
209
|
+
*/
|
|
117
210
|
export function getIpv6InterfaceAddress() {
|
|
118
211
|
let ipv6Address;
|
|
119
212
|
const networkInterfaces = os.networkInterfaces();
|
|
213
|
+
// console.log('Available Network Interfaces:', networkInterfaces);
|
|
120
214
|
for (const interfaceDetails of Object.values(networkInterfaces)) {
|
|
121
215
|
if (!interfaceDetails) {
|
|
122
216
|
break;
|
|
@@ -130,11 +224,17 @@ export function getIpv6InterfaceAddress() {
|
|
|
130
224
|
break;
|
|
131
225
|
}
|
|
132
226
|
}
|
|
227
|
+
// console.log('Selected Network Interfaces:', ipv6Address);
|
|
133
228
|
return ipv6Address;
|
|
134
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Retrieves the mac address of the first non-internal network interface.
|
|
232
|
+
* @returns {string | undefined} The IPv4 address of the selected network interface, or undefined if not found.
|
|
233
|
+
*/
|
|
135
234
|
export function getMacAddress() {
|
|
136
235
|
let macAddress;
|
|
137
236
|
const networkInterfaces = os.networkInterfaces();
|
|
237
|
+
// console.log('Available Network Interfaces:', networkInterfaces);
|
|
138
238
|
for (const interfaceDetails of Object.values(networkInterfaces)) {
|
|
139
239
|
if (!interfaceDetails) {
|
|
140
240
|
break;
|
|
@@ -150,10 +250,25 @@ export function getMacAddress() {
|
|
|
150
250
|
}
|
|
151
251
|
return macAddress;
|
|
152
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* Checks if a given string is a valid IPv4 address.
|
|
255
|
+
*
|
|
256
|
+
* @param {string} ipv4Address - The string to be checked.
|
|
257
|
+
* @returns {boolean} - Returns true if the string is a valid IPv4 address, otherwise returns false.
|
|
258
|
+
*/
|
|
153
259
|
export function isValidIpv4Address(ipv4Address) {
|
|
154
260
|
const ipv4Regex = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
|
|
155
261
|
return ipv4Regex.test(ipv4Address);
|
|
156
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Checks if a value is a valid number within the specified range.
|
|
265
|
+
*
|
|
266
|
+
* @param {any} value - The value to be checked.
|
|
267
|
+
* @param {number} min - The minimum value allowed (optional).
|
|
268
|
+
* @param {number} max - The maximum value allowed (optional).
|
|
269
|
+
* @returns {boolean} Returns true if the value is a valid number within the specified range, otherwise false.
|
|
270
|
+
*/
|
|
271
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
157
272
|
export function isValidNumber(value, min, max) {
|
|
158
273
|
if (value === undefined || value === null || typeof value !== 'number' || Number.isNaN(value))
|
|
159
274
|
return false;
|
|
@@ -163,9 +278,25 @@ export function isValidNumber(value, min, max) {
|
|
|
163
278
|
return false;
|
|
164
279
|
return true;
|
|
165
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* Checks if a value is a valid boolean.
|
|
283
|
+
*
|
|
284
|
+
* @param {any} value - The value to be checked.
|
|
285
|
+
* @returns {boolean} `true` if the value is a valid boolean, `false` otherwise.
|
|
286
|
+
*/
|
|
287
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
166
288
|
export function isValidBoolean(value) {
|
|
167
289
|
return value !== undefined && value !== null && typeof value === 'boolean';
|
|
168
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Checks if a value is a valid string.
|
|
293
|
+
*
|
|
294
|
+
* @param {any} value - The value to be checked.
|
|
295
|
+
* @param {number} minLength - The min string length (optional).
|
|
296
|
+
* @param {number} maxLength - The max string length (optional).
|
|
297
|
+
* @returns {boolean} A boolean indicating whether the value is a valid string.
|
|
298
|
+
*/
|
|
299
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
169
300
|
export function isValidString(value, minLength, maxLength) {
|
|
170
301
|
if (value === undefined || value === null || typeof value !== 'string')
|
|
171
302
|
return false;
|
|
@@ -175,6 +306,15 @@ export function isValidString(value, minLength, maxLength) {
|
|
|
175
306
|
return false;
|
|
176
307
|
return true;
|
|
177
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* Checks if a value is a valid object.
|
|
311
|
+
*
|
|
312
|
+
* @param {any} value - The value to be checked.
|
|
313
|
+
* @param {number} minLength - The min number of keys (optional).
|
|
314
|
+
* @param {number} maxLength - The max number of keys (optional).
|
|
315
|
+
* @returns {boolean} A boolean indicating whether the value is a valid object.
|
|
316
|
+
*/
|
|
317
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
178
318
|
export function isValidObject(value, minLength, maxLength) {
|
|
179
319
|
if (value === undefined || value === null || typeof value !== 'object' || Array.isArray(value))
|
|
180
320
|
return false;
|
|
@@ -185,6 +325,15 @@ export function isValidObject(value, minLength, maxLength) {
|
|
|
185
325
|
return false;
|
|
186
326
|
return true;
|
|
187
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Checks if a value is a valid array.
|
|
330
|
+
*
|
|
331
|
+
* @param {any} value - The value to be checked.
|
|
332
|
+
* @param {number} minLength - The min number of elements (optional).
|
|
333
|
+
* @param {number} maxLength - The max number of elements (optional).
|
|
334
|
+
* @returns {boolean} A boolean indicating whether the value is a valid array.
|
|
335
|
+
*/
|
|
336
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
188
337
|
export function isValidArray(value, minLength, maxLength) {
|
|
189
338
|
if (value === undefined || value === null || !Array.isArray(value))
|
|
190
339
|
return false;
|
|
@@ -194,14 +343,33 @@ export function isValidArray(value, minLength, maxLength) {
|
|
|
194
343
|
return false;
|
|
195
344
|
return true;
|
|
196
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* Checks if the given value is null.
|
|
348
|
+
*
|
|
349
|
+
* @param {any} value - The value to check.
|
|
350
|
+
* @returns {boolean} `true` if the value is null, `false` otherwise.
|
|
351
|
+
*/
|
|
352
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
197
353
|
export function isValidNull(value) {
|
|
198
354
|
return value === null;
|
|
199
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* Checks if a value is undefined.
|
|
358
|
+
*
|
|
359
|
+
* @param {any} value - The value to check.
|
|
360
|
+
* @returns {boolean} `true` if the value is undefined, `false` otherwise.
|
|
361
|
+
*/
|
|
362
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
200
363
|
export function isValidUndefined(value) {
|
|
201
364
|
return value === undefined;
|
|
202
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Logs the available network interfaces and their details.
|
|
368
|
+
* @param {boolean} log - Whether to enable logging of network interface details.
|
|
369
|
+
* @returns {string | undefined} The IPv6 address of the network interface, if available.
|
|
370
|
+
*/
|
|
203
371
|
export function logInterfaces(debug = true) {
|
|
204
|
-
log.logLevel = "info"
|
|
372
|
+
log.logLevel = "info" /* LogLevel.INFO */;
|
|
205
373
|
log.logName = 'LogInterfaces';
|
|
206
374
|
let ipv6Address;
|
|
207
375
|
const networkInterfaces = os.networkInterfaces();
|
|
@@ -219,8 +387,18 @@ export function logInterfaces(debug = true) {
|
|
|
219
387
|
}
|
|
220
388
|
return ipv6Address;
|
|
221
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Asynchronous waiter function that resolves when the provided condition is met or rejects on timeout.
|
|
392
|
+
* @param {string} name - The name of the waiter.
|
|
393
|
+
* @param {() => boolean} check - A function that checks the condition. Should return a boolean.
|
|
394
|
+
* @param {boolean} [exitWithReject=false] - Optional. If true, the promise will be rejected on timeout. Default is false.
|
|
395
|
+
* @param {number} [resolveTimeout=5000] - Optional. The timeout duration in milliseconds. Default is 5000ms.
|
|
396
|
+
* @param {number} [resolveInterval=500] - Optional. The interval duration in milliseconds between condition checks. Default is 500ms.
|
|
397
|
+
* @param {boolean} [debug=false] - Optional. If true, debug messages will be logged to the console. Default is false.
|
|
398
|
+
* @returns {Promise<boolean>} A promise that resolves to true when the condition is met, or false if the timeout occurs.
|
|
399
|
+
*/
|
|
222
400
|
export async function waiter(name, check, exitWithReject = false, resolveTimeout = 5000, resolveInterval = 500, debug = false) {
|
|
223
|
-
log.logLevel = "debug"
|
|
401
|
+
log.logLevel = "debug" /* LogLevel.DEBUG */;
|
|
224
402
|
log.logName = 'Waiter';
|
|
225
403
|
if (debug)
|
|
226
404
|
log.debug(`Waiter "${name}" started...`);
|
|
@@ -246,11 +424,19 @@ export async function waiter(name, check, exitWithReject = false, resolveTimeout
|
|
|
246
424
|
}, resolveInterval);
|
|
247
425
|
});
|
|
248
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* Asynchronously waits for a specified amount of time.
|
|
429
|
+
* @param {number} timeout - The duration to wait in milliseconds. Default is 1000ms.
|
|
430
|
+
* @param {string} name - The name of the wait operation. Default is undefined.
|
|
431
|
+
* @param {boolean} debug - Whether to enable debug logging. Default is false.
|
|
432
|
+
* @returns {Promise<void>} A Promise that resolves after the specified timeout.
|
|
433
|
+
*/
|
|
249
434
|
export async function wait(timeout = 1000, name, debug = false) {
|
|
250
|
-
log.logLevel = "debug"
|
|
435
|
+
log.logLevel = "debug" /* LogLevel.DEBUG */;
|
|
251
436
|
log.logName = 'Wait';
|
|
252
437
|
if (debug)
|
|
253
438
|
log.debug(`Wait "${name}" started...`);
|
|
439
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
254
440
|
return new Promise((resolve, reject) => {
|
|
255
441
|
const timeoutId = setTimeout(() => {
|
|
256
442
|
if (debug)
|
|
@@ -260,16 +446,30 @@ export async function wait(timeout = 1000, name, debug = false) {
|
|
|
260
446
|
}, timeout);
|
|
261
447
|
});
|
|
262
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* Creates a ZIP archive from the specified source pattern or directory and writes it to the specified output path.
|
|
451
|
+
*
|
|
452
|
+
* @param {string} outputPath - The path where the output ZIP file will be written.
|
|
453
|
+
* @param {string[]} sourcePaths - The source pattern or directory to be zipped (use path.join for sourcePath).
|
|
454
|
+
* @returns {Promise<number>} - A promise that resolves to the total number of bytes written to the ZIP file.
|
|
455
|
+
*
|
|
456
|
+
* @remarks
|
|
457
|
+
* This function uses the `archiver` library to create a ZIP archive. It sets the compression level to 9 (maximum compression).
|
|
458
|
+
* The function ensures that the output file is properly closed after the archiving process is complete.
|
|
459
|
+
* It logs the progress and the total number of bytes written to the console.
|
|
460
|
+
*
|
|
461
|
+
* This function uses the `glob` library to match files based on the source pattern (internally converted in posix).
|
|
462
|
+
*/
|
|
263
463
|
export async function createZip(outputPath, ...sourcePaths) {
|
|
264
464
|
const { default: archiver } = await import('archiver');
|
|
265
465
|
const { glob } = await import('glob');
|
|
266
|
-
log.logLevel = "info"
|
|
466
|
+
log.logLevel = "info" /* LogLevel.INFO */;
|
|
267
467
|
log.logName = 'Archive';
|
|
268
468
|
log.debug(`creating archive ${outputPath} from ${sourcePaths.join(', ')} ...`);
|
|
269
469
|
return new Promise((resolve, reject) => {
|
|
270
470
|
const output = createWriteStream(outputPath);
|
|
271
471
|
const archive = archiver('zip', {
|
|
272
|
-
zlib: { level: 9 },
|
|
472
|
+
zlib: { level: 9 }, // Set compression level
|
|
273
473
|
});
|
|
274
474
|
output.on('close', () => {
|
|
275
475
|
log.debug(`archive ${outputPath} closed with ${archive.pointer()} total bytes`);
|
|
@@ -296,6 +496,7 @@ export async function createZip(outputPath, ...sourcePaths) {
|
|
|
296
496
|
});
|
|
297
497
|
archive.pipe(output);
|
|
298
498
|
for (const sourcePath of sourcePaths) {
|
|
499
|
+
// Check if the sourcePath is a file or directory
|
|
299
500
|
let stats;
|
|
300
501
|
try {
|
|
301
502
|
stats = statSync(sourcePath);
|
|
@@ -323,22 +524,35 @@ export async function createZip(outputPath, ...sourcePaths) {
|
|
|
323
524
|
archive.directory(sourcePath, path.basename(sourcePath));
|
|
324
525
|
}
|
|
325
526
|
}
|
|
527
|
+
// Finalize the archive (i.e., we are done appending files but streams have to finish yet)
|
|
326
528
|
log.debug(`finalizing archive ${outputPath}...`);
|
|
327
529
|
archive.finalize().catch(reject);
|
|
328
530
|
});
|
|
329
531
|
}
|
|
532
|
+
/**
|
|
533
|
+
* Copies a directory and all its subdirectories and files to a new location.
|
|
534
|
+
*
|
|
535
|
+
* @param {string} srcDir - The path to the source directory.
|
|
536
|
+
* @param {string} destDir - The path to the destination directory.
|
|
537
|
+
* @returns {Promise<boolean>} - A promise that resolves when the copy operation is complete or fails for error.
|
|
538
|
+
* @throws {Error} - Throws an error if the copy operation fails.
|
|
539
|
+
*/
|
|
330
540
|
export async function copyDirectory(srcDir, destDir) {
|
|
331
541
|
log.debug(`copyDirectory: copying directory from ${srcDir} to ${destDir}`);
|
|
332
542
|
try {
|
|
543
|
+
// Create destination directory if it doesn't exist
|
|
333
544
|
await fs.mkdir(destDir, { recursive: true });
|
|
545
|
+
// Read contents of the source directory
|
|
334
546
|
const entries = await fs.readdir(srcDir, { withFileTypes: true });
|
|
335
547
|
for (const entry of entries) {
|
|
336
548
|
const srcPath = path.join(srcDir, entry.name);
|
|
337
549
|
const destPath = path.join(destDir, entry.name);
|
|
338
550
|
if (entry.isDirectory()) {
|
|
551
|
+
// Recursive call if entry is a directory
|
|
339
552
|
await copyDirectory(srcPath, destPath);
|
|
340
553
|
}
|
|
341
554
|
else if (entry.isFile()) {
|
|
555
|
+
// Copy file if entry is a file
|
|
342
556
|
await fs.copyFile(srcPath, destPath);
|
|
343
557
|
}
|
|
344
558
|
}
|
|
@@ -349,15 +563,32 @@ export async function copyDirectory(srcDir, destDir) {
|
|
|
349
563
|
return false;
|
|
350
564
|
}
|
|
351
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* Resolves the given hostname to an IP address.
|
|
568
|
+
*
|
|
569
|
+
* @param {string} hostname - The hostname to resolve.
|
|
570
|
+
* @param {0 | 4 | 6} [family=4] - The address family to use (0 for any, 4 for IPv4, 6 for IPv6). Default is 4.
|
|
571
|
+
* @returns {Promise<string | null>} - A promise that resolves to the IP address or null if not found.
|
|
572
|
+
*
|
|
573
|
+
* @remarks
|
|
574
|
+
* This function uses DNS lookup to resolve the hostname, which can take some time to complete.
|
|
575
|
+
*/
|
|
352
576
|
export async function resolveHostname(hostname, family = 4) {
|
|
353
577
|
try {
|
|
354
578
|
const addresses = await dns.promises.lookup(hostname.toLowerCase() + '.local', { family });
|
|
355
579
|
return addresses.address;
|
|
580
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
356
581
|
}
|
|
357
582
|
catch (error) {
|
|
358
583
|
return null;
|
|
359
584
|
}
|
|
360
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* Retrieves the value of a command-line parameter.
|
|
588
|
+
*
|
|
589
|
+
* @param {string} name - The name of the parameter to retrieve.
|
|
590
|
+
* @returns {string | undefined} The value of the parameter, or undefined if not found.
|
|
591
|
+
*/
|
|
361
592
|
export function getParameter(name) {
|
|
362
593
|
const commandArguments = process.argv.slice(2);
|
|
363
594
|
let markerIndex = commandArguments.indexOf(`-${name}`);
|
|
@@ -367,6 +598,12 @@ export function getParameter(name) {
|
|
|
367
598
|
return undefined;
|
|
368
599
|
return commandArguments[markerIndex + 1];
|
|
369
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
* Checks if a command-line parameter is present.
|
|
603
|
+
*
|
|
604
|
+
* @param {string} name - The name of the parameter to check.
|
|
605
|
+
* @returns {boolean} True if the parameter is present, otherwise false.
|
|
606
|
+
*/
|
|
370
607
|
export function hasParameter(name) {
|
|
371
608
|
const commandArguments = process.argv.slice(2);
|
|
372
609
|
let markerIncluded = commandArguments.includes(`-${name}`);
|
|
@@ -374,6 +611,12 @@ export function hasParameter(name) {
|
|
|
374
611
|
markerIncluded = commandArguments.includes(`--${name}`);
|
|
375
612
|
return markerIncluded;
|
|
376
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* Retrieves the value of a command-line parameter as an integer.
|
|
616
|
+
*
|
|
617
|
+
* @param {string} name - The name of the parameter to retrieve.
|
|
618
|
+
* @returns {number | undefined} The integer value of the parameter, or undefined if not found or invalid.
|
|
619
|
+
*/
|
|
377
620
|
export function getIntParameter(name) {
|
|
378
621
|
const value = getParameter(name);
|
|
379
622
|
if (value === undefined)
|
|
@@ -383,3 +626,4 @@ export function getIntParameter(name) {
|
|
|
383
626
|
return undefined;
|
|
384
627
|
return intValue;
|
|
385
628
|
}
|
|
629
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,kBAAkB;AAClB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AAOpC,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,GAAG,EAAY,EAAE,EAAmB,MAAM,kBAAkB,CAAC;AAElF,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,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;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACrC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC/C,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "2.1.2
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "2.1.2
|
|
9
|
+
"version": "2.1.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.12.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "2.1.2
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"type": "module",
|
|
43
43
|
"main": "dist/index.js",
|
|
44
|
+
"types": "dist/index.d.ts",
|
|
44
45
|
"bin": {
|
|
45
46
|
"matterbridge": "dist/cli.js"
|
|
46
47
|
},
|