systeminformation 6.0.0-beta.24 → 6.0.0-beta.26
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 +57 -6
- package/dist/bsd/index.d.ts +3 -0
- package/dist/bsd/index.js +7 -1
- package/dist/common/darwin.d.ts +1 -0
- package/dist/common/darwin.js +15 -3
- package/dist/common/defaults.js +15 -4
- package/dist/common/disk-speed.d.ts +20 -0
- package/dist/common/disk-speed.js +142 -0
- package/dist/common/filesys.d.ts +1 -1
- package/dist/common/filesys.js +24 -4
- package/dist/common/mappings.d.ts +1 -1
- package/dist/common/mappings.js +14 -4
- package/dist/common/types.d.ts +41 -0
- package/dist/common/windows.d.ts +1 -0
- package/dist/common/windows.js +19 -5
- package/dist/cpu-current-load.js +45 -0
- package/dist/cpu-current-speed.js +6 -0
- package/dist/darwin/bluetooth.d.ts +1 -1
- package/dist/darwin/bluetooth.js +2 -2
- package/dist/darwin/cpu-current-speed.d.ts +2 -0
- package/dist/darwin/cpu-current-speed.js +30 -0
- package/dist/darwin/cpu-temperature.js +7 -13
- package/dist/darwin/disk-speed.d.ts +2 -0
- package/dist/darwin/disk-speed.js +18 -0
- package/dist/darwin/disks-io.js +3 -1
- package/dist/darwin/fans.js +11 -13
- package/dist/darwin/gpu.d.ts +1 -1
- package/dist/darwin/gpu.js +4 -4
- package/dist/darwin/index.d.ts +3 -0
- package/dist/darwin/index.js +8 -2
- package/dist/darwin/network-interfaces.js +14 -4
- package/dist/darwin/network-routes.d.ts +3 -0
- package/dist/darwin/network-routes.js +74 -0
- package/dist/darwin/wifi-connections.js +3 -2
- package/dist/disk-speed.d.ts +1 -0
- package/dist/disk-speed.js +17 -0
- package/dist/get.js +5 -5
- package/dist/index.d.ts +12 -8
- package/dist/index.js +30 -21
- package/dist/inet-speed.d.ts +11 -0
- package/dist/inet-speed.js +152 -0
- package/dist/linux/block-devices.d.ts +1 -1
- package/dist/linux/block-devices.js +21 -5
- package/dist/linux/cpu-topology.d.ts +2 -0
- package/dist/linux/cpu-topology.js +15 -0
- package/dist/linux/disk-speed.d.ts +2 -0
- package/dist/linux/disk-speed.js +16 -0
- package/dist/linux/disks-io.d.ts +1 -1
- package/dist/linux/disks-io.js +18 -7
- package/dist/linux/index.d.ts +3 -0
- package/dist/linux/index.js +8 -2
- package/dist/linux/mem.js +20 -1
- package/dist/linux/network-interfaces.js +18 -7
- package/dist/linux/network-routes.d.ts +4 -0
- package/dist/linux/network-routes.js +69 -0
- package/dist/linux/os-info.js +32 -4
- package/dist/linux/pci.d.ts +1 -1
- package/dist/linux/pci.js +4 -3
- package/dist/linux/wifi-connections.d.ts +4 -0
- package/dist/linux/wifi-connections.js +20 -2
- package/dist/network-routes.d.ts +1 -0
- package/dist/network-routes.js +17 -0
- package/dist/powershell.d.ts +2 -0
- package/dist/powershell.js +15 -0
- package/dist/sun/index.d.ts +1 -0
- package/dist/sun/index.js +3 -1
- package/dist/windows/block-devices.js +6 -1
- package/dist/windows/cpu-topology.d.ts +3 -0
- package/dist/windows/cpu-topology.js +90 -0
- package/dist/windows/disk-speed.d.ts +6 -0
- package/dist/windows/disk-speed.js +73 -0
- package/dist/windows/disks-io.js +3 -1
- package/dist/windows/index.d.ts +3 -0
- package/dist/windows/index.js +8 -2
- package/dist/windows/network-interfaces.js +6 -3
- package/dist/windows/network-routes.d.ts +3 -0
- package/dist/windows/network-routes.js +41 -0
- package/dist/windows/wifi-connections.d.ts +1 -0
- package/dist/windows/wifi-connections.js +10 -3
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.networkRoutes = exports.parseNetstatRoutes = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
const exec_1 = require("../common/exec");
|
|
6
|
+
const EXEC_OPTS = { timeout: 5000, maxBuffer: 1024 * 1024 * 16 };
|
|
7
|
+
const ipv4Cidr = (dest, host) => {
|
|
8
|
+
if (dest === 'default') {
|
|
9
|
+
return '0.0.0.0/0';
|
|
10
|
+
}
|
|
11
|
+
const [addr = '', prefix] = dest.split('/');
|
|
12
|
+
const octets = addr.split('.');
|
|
13
|
+
const bits = prefix ?? (host ? '32' : String(octets.length * 8));
|
|
14
|
+
while (octets.length < 4) {
|
|
15
|
+
octets.push('0');
|
|
16
|
+
}
|
|
17
|
+
return `${octets.join('.')}/${bits}`;
|
|
18
|
+
};
|
|
19
|
+
const ipv6Cidr = (dest) => {
|
|
20
|
+
if (dest === 'default') {
|
|
21
|
+
return '::/0';
|
|
22
|
+
}
|
|
23
|
+
const value = dest.replace(/%[^/]*/, '');
|
|
24
|
+
return value.includes('/') ? value : `${value}/128`;
|
|
25
|
+
};
|
|
26
|
+
const parseNetstatRoutes = (stdout) => {
|
|
27
|
+
const result = [];
|
|
28
|
+
let family = '';
|
|
29
|
+
let gatewayCol = -1;
|
|
30
|
+
let flagsCol = -1;
|
|
31
|
+
let ifaceCol = -1;
|
|
32
|
+
for (const line of stdout.split('\n')) {
|
|
33
|
+
const parts = line.trim().split(/\s+/);
|
|
34
|
+
if (/^Internet6?:$/.test(parts[0] || '')) {
|
|
35
|
+
family = parts[0] === 'Internet6:' ? 'IPv6' : 'IPv4';
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (parts[0] === 'Destination') {
|
|
39
|
+
gatewayCol = parts.indexOf('Gateway');
|
|
40
|
+
flagsCol = parts.indexOf('Flags');
|
|
41
|
+
ifaceCol = parts.findIndex((part) => /^(netif|interface|iface)$/i.test(part));
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (!family || gatewayCol < 0 || flagsCol < 0 || ifaceCol < 0 || parts.length <= ifaceCol) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
const flags = parts[flagsCol] || '';
|
|
48
|
+
if (!flags.startsWith('U') || flags.includes('L')) {
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
const dest = parts[0] || '';
|
|
52
|
+
const gateway = (parts[gatewayCol] || '').replace(/%.*$/, '');
|
|
53
|
+
result.push({
|
|
54
|
+
destination: family === 'IPv6' ? ipv6Cidr(dest) : ipv4Cidr(dest, flags.includes('H')),
|
|
55
|
+
gateway: gateway.startsWith('link#') ? '' : gateway,
|
|
56
|
+
iface: parts[ifaceCol] || '',
|
|
57
|
+
metric: null,
|
|
58
|
+
family
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
exports.parseNetstatRoutes = parseNetstatRoutes;
|
|
64
|
+
const networkRoutes = async () => {
|
|
65
|
+
await (0, common_1.nextTick)();
|
|
66
|
+
try {
|
|
67
|
+
const { stdout } = await (0, exec_1.execFile)('netstat', ['-rn'], EXEC_OPTS);
|
|
68
|
+
return (0, exports.parseNetstatRoutes)(stdout.toString());
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
return [];
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
exports.networkRoutes = networkRoutes;
|
|
@@ -43,7 +43,7 @@ const wifiConnections = async () => {
|
|
|
43
43
|
id: networkWifiObj._name || 'Wi-Fi',
|
|
44
44
|
networkInterface: networkWifiObj.interface || '',
|
|
45
45
|
model: networkWifiObj.hardware || '',
|
|
46
|
-
ssid:
|
|
46
|
+
ssid: airportWifiObj._name || '',
|
|
47
47
|
bssid: airportWifiObj.spairport_network_bssid || '',
|
|
48
48
|
channel,
|
|
49
49
|
frequency: channel ? (0, network_1.wifiFrequencyFromChannel)(channel) : null,
|
|
@@ -51,7 +51,8 @@ const wifiConnections = async () => {
|
|
|
51
51
|
security,
|
|
52
52
|
signalLevel: signalLevel ? Number.parseInt(signalLevel, 10) : null,
|
|
53
53
|
quality: (0, network_1.wifiQualityFromDB)(signalLevel),
|
|
54
|
-
txRate: airportWifiObj.spairport_network_rate || null
|
|
54
|
+
txRate: airportWifiObj.spairport_network_rate || null,
|
|
55
|
+
rxRate: null
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
58
|
catch { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const diskSpeed: (path?: string, sizeMB?: number) => Promise<import("./common/types").DiskSpeedData | null>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diskSpeed = void 0;
|
|
4
|
+
const const_1 = require("./common/const");
|
|
5
|
+
const diskSpeed = async (path, sizeMB) => {
|
|
6
|
+
switch (true) {
|
|
7
|
+
case const_1.LINUX || const_1.FREEBSD || const_1.NETBSD || const_1.OPENBSD:
|
|
8
|
+
return (await import('./linux/disk-speed.js')).diskSpeed(path, sizeMB);
|
|
9
|
+
case const_1.DARWIN:
|
|
10
|
+
return (await import('./darwin/disk-speed.js')).diskSpeed(path, sizeMB);
|
|
11
|
+
case const_1.WINDOWS:
|
|
12
|
+
return (await import('./windows/disk-speed.js')).diskSpeed(path, sizeMB);
|
|
13
|
+
default:
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.diskSpeed = diskSpeed;
|
package/dist/get.js
CHANGED
|
@@ -36,14 +36,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.get = void 0;
|
|
37
37
|
const common_1 = require("./common");
|
|
38
38
|
const functions = __importStar(require("./index"));
|
|
39
|
-
const blocked = ['get', 'observe', 'getStaticData', 'getDynamicData', 'getAllData'];
|
|
39
|
+
const blocked = ['get', 'observe', 'getStaticData', 'getDynamicData', 'getAllData', 'powerShellStart', 'powerShellRelease', 'diskSpeed', 'inetSpeed'];
|
|
40
40
|
const pickKeys = (element, keyList) => {
|
|
41
41
|
if (keyList.length === 1 && (keyList[0] === '*' || keyList[0] === 'all')) {
|
|
42
42
|
return element;
|
|
43
43
|
}
|
|
44
44
|
const partial = {};
|
|
45
45
|
keyList.forEach((k) => {
|
|
46
|
-
if (Object.
|
|
46
|
+
if (Object.hasOwn(element, k)) {
|
|
47
47
|
partial[k] = element[k];
|
|
48
48
|
}
|
|
49
49
|
});
|
|
@@ -73,7 +73,7 @@ const pickResult = (data, value) => {
|
|
|
73
73
|
if (filterParts.length === 2) {
|
|
74
74
|
const filterKey = filterParts[0].trim();
|
|
75
75
|
const filterValue = filterParts[1].trim();
|
|
76
|
-
if (Object.
|
|
76
|
+
if (Object.hasOwn(partialRes, filterKey)) {
|
|
77
77
|
const val = partialRes[filterKey];
|
|
78
78
|
if (typeof val === 'number') {
|
|
79
79
|
if (val === parseFloat(filterValue)) {
|
|
@@ -98,7 +98,7 @@ const pickResult = (data, value) => {
|
|
|
98
98
|
const get = async (valueObject) => {
|
|
99
99
|
await (0, common_1.nextTick)();
|
|
100
100
|
const lib = functions;
|
|
101
|
-
const isGettable = (key) => Object.
|
|
101
|
+
const isGettable = (key) => Object.hasOwn(lib, key) && typeof lib[key] === 'function' && typeof (valueObject || {})[key] === 'string' && blocked.indexOf(key) < 0;
|
|
102
102
|
const keys = Object.keys(valueObject || {}).filter(isGettable);
|
|
103
103
|
const data = await Promise.all(keys.map((func) => {
|
|
104
104
|
const value = valueObject[func];
|
|
@@ -114,7 +114,7 @@ const get = async (valueObject) => {
|
|
|
114
114
|
keys.forEach((key, i) => {
|
|
115
115
|
result[key] = pickResult(data[i], valueObject[key]);
|
|
116
116
|
});
|
|
117
|
-
if (Object.
|
|
117
|
+
if (Object.hasOwn(valueObject || {}, 'graphics')) {
|
|
118
118
|
result.graphics = 'graphics() was removed in v6 - use gpu and displays instead';
|
|
119
119
|
}
|
|
120
120
|
return result;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,25 +8,27 @@ export { camera } from './camera';
|
|
|
8
8
|
export { chassis } from './chassis';
|
|
9
9
|
export { cpu } from './cpu';
|
|
10
10
|
export { cpuCache } from './cpu-cache';
|
|
11
|
+
export { currentLoad } from './cpu-current-load';
|
|
11
12
|
export { cpuCurrentSpeed } from './cpu-current-speed';
|
|
12
13
|
export { cpuFlags } from './cpu-flags';
|
|
14
|
+
export { fullLoad } from './cpu-full-load';
|
|
13
15
|
export { cpuTemperature } from './cpu-temperature';
|
|
14
|
-
export { fans } from './fans';
|
|
15
|
-
export { currentLoad } from './cpu-current-load';
|
|
16
16
|
export { diskLayout } from './disk-layout';
|
|
17
|
+
export { diskSpeed } from './disk-speed';
|
|
17
18
|
export { disksIO } from './disks-io';
|
|
18
19
|
export { displays } from './displays';
|
|
19
|
-
export {
|
|
20
|
+
export { dockerAll, dockerContainerProcesses, dockerContainerStats, dockerContainers, dockerImages, dockerInfo, dockerVolumes } from './docker';
|
|
21
|
+
export { fans } from './fans';
|
|
20
22
|
export { fsOpenFiles } from './fs-open-files';
|
|
21
23
|
export { fsSize } from './fs-size';
|
|
22
24
|
export { fsStats } from './fs-stats';
|
|
23
|
-
export { fullLoad } from './cpu-full-load';
|
|
24
25
|
export { get } from './get';
|
|
25
|
-
export {
|
|
26
|
+
export { getAllData, getDynamicData, getStaticData } from './get-data';
|
|
26
27
|
export { gpu } from './gpu';
|
|
27
28
|
export { inetChecksite } from './inet-checksite';
|
|
28
29
|
export { inetLatency } from './inet-latency';
|
|
29
30
|
export { inetPublicIp } from './inet-public-ip';
|
|
31
|
+
export { inetSpeed } from './inet-speed';
|
|
30
32
|
export { keyboard } from './keyboard';
|
|
31
33
|
export { mem } from './mem';
|
|
32
34
|
export { memLayout } from './mem-layout';
|
|
@@ -35,16 +37,18 @@ export { networkConnections } from './network-connections';
|
|
|
35
37
|
export { networkGatewayDefault } from './network-gateway-default';
|
|
36
38
|
export { networkInterfaceDefault } from './network-interface-default';
|
|
37
39
|
export { networkInterfaces } from './network-interfaces';
|
|
40
|
+
export { networkRoutes } from './network-routes';
|
|
38
41
|
export { networkStats } from './network-stats';
|
|
39
42
|
export { npm } from './npm';
|
|
40
43
|
export { npu } from './npu';
|
|
41
44
|
export { observe } from './observe';
|
|
42
45
|
export { osInfo } from './os-info';
|
|
43
46
|
export { pci } from './pci';
|
|
47
|
+
export { powerShellRelease, powerShellStart } from './powershell';
|
|
44
48
|
export { printer } from './printer';
|
|
45
|
-
export { processes } from './processes';
|
|
46
|
-
export { processLoad } from './process-load';
|
|
47
49
|
export { processFocused } from './process-focused';
|
|
50
|
+
export { processLoad } from './process-load';
|
|
51
|
+
export { processes } from './processes';
|
|
48
52
|
export { serialPorts } from './serial-ports';
|
|
49
53
|
export { services } from './services';
|
|
50
54
|
export { shell } from './shell';
|
|
@@ -55,9 +59,9 @@ export { time } from './time';
|
|
|
55
59
|
export { usb } from './usb';
|
|
56
60
|
export { users } from './users';
|
|
57
61
|
export { uuid } from './uuid';
|
|
58
|
-
export { vboxInfo } from './virtualbox';
|
|
59
62
|
export { version } from './version';
|
|
60
63
|
export { versions } from './versions';
|
|
64
|
+
export { vboxInfo } from './virtualbox';
|
|
61
65
|
export { wifiConnections } from './wifi-connections';
|
|
62
66
|
export { wifiInterfaces } from './wifi-interfaces';
|
|
63
67
|
export { wifiNetworks } from './wifi-networks';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.wifiNetworks = exports.wifiInterfaces = exports.wifiConnections = exports.
|
|
3
|
+
exports.npm = exports.networkStats = exports.networkRoutes = exports.networkInterfaces = exports.networkInterfaceDefault = exports.networkGatewayDefault = exports.networkConnections = exports.mouse = exports.memLayout = exports.mem = exports.keyboard = exports.inetSpeed = exports.inetPublicIp = exports.inetLatency = exports.inetChecksite = exports.gpu = exports.getStaticData = exports.getDynamicData = exports.getAllData = exports.get = exports.fsStats = exports.fsSize = exports.fsOpenFiles = exports.fans = exports.dockerVolumes = exports.dockerInfo = exports.dockerImages = exports.dockerContainers = exports.dockerContainerStats = exports.dockerContainerProcesses = exports.dockerAll = exports.displays = exports.disksIO = exports.diskSpeed = exports.diskLayout = exports.cpuTemperature = exports.fullLoad = exports.cpuFlags = exports.cpuCurrentSpeed = exports.currentLoad = exports.cpuCache = exports.cpu = exports.chassis = exports.camera = exports.bluetoothDevices = exports.blockDevices = exports.bios = exports.battery = exports.baseboard = exports.audio = void 0;
|
|
4
|
+
exports.wifiNetworks = exports.wifiInterfaces = exports.wifiConnections = exports.vboxInfo = exports.versions = exports.version = exports.uuid = exports.users = exports.usb = exports.time = exports.thunderbolt = exports.system = exports.software = exports.shell = exports.services = exports.serialPorts = exports.processes = exports.processLoad = exports.processFocused = exports.printer = exports.powerShellStart = exports.powerShellRelease = exports.pci = exports.osInfo = exports.observe = exports.npu = void 0;
|
|
5
5
|
var audio_1 = require("./audio");
|
|
6
6
|
Object.defineProperty(exports, "audio", { enumerable: true, get: function () { return audio_1.audio; } });
|
|
7
7
|
var baseboard_1 = require("./baseboard");
|
|
@@ -22,44 +22,46 @@ var cpu_1 = require("./cpu");
|
|
|
22
22
|
Object.defineProperty(exports, "cpu", { enumerable: true, get: function () { return cpu_1.cpu; } });
|
|
23
23
|
var cpu_cache_1 = require("./cpu-cache");
|
|
24
24
|
Object.defineProperty(exports, "cpuCache", { enumerable: true, get: function () { return cpu_cache_1.cpuCache; } });
|
|
25
|
+
var cpu_current_load_1 = require("./cpu-current-load");
|
|
26
|
+
Object.defineProperty(exports, "currentLoad", { enumerable: true, get: function () { return cpu_current_load_1.currentLoad; } });
|
|
25
27
|
var cpu_current_speed_1 = require("./cpu-current-speed");
|
|
26
28
|
Object.defineProperty(exports, "cpuCurrentSpeed", { enumerable: true, get: function () { return cpu_current_speed_1.cpuCurrentSpeed; } });
|
|
27
29
|
var cpu_flags_1 = require("./cpu-flags");
|
|
28
30
|
Object.defineProperty(exports, "cpuFlags", { enumerable: true, get: function () { return cpu_flags_1.cpuFlags; } });
|
|
31
|
+
var cpu_full_load_1 = require("./cpu-full-load");
|
|
32
|
+
Object.defineProperty(exports, "fullLoad", { enumerable: true, get: function () { return cpu_full_load_1.fullLoad; } });
|
|
29
33
|
var cpu_temperature_1 = require("./cpu-temperature");
|
|
30
34
|
Object.defineProperty(exports, "cpuTemperature", { enumerable: true, get: function () { return cpu_temperature_1.cpuTemperature; } });
|
|
31
|
-
var fans_1 = require("./fans");
|
|
32
|
-
Object.defineProperty(exports, "fans", { enumerable: true, get: function () { return fans_1.fans; } });
|
|
33
|
-
var cpu_current_load_1 = require("./cpu-current-load");
|
|
34
|
-
Object.defineProperty(exports, "currentLoad", { enumerable: true, get: function () { return cpu_current_load_1.currentLoad; } });
|
|
35
35
|
var disk_layout_1 = require("./disk-layout");
|
|
36
36
|
Object.defineProperty(exports, "diskLayout", { enumerable: true, get: function () { return disk_layout_1.diskLayout; } });
|
|
37
|
+
var disk_speed_1 = require("./disk-speed");
|
|
38
|
+
Object.defineProperty(exports, "diskSpeed", { enumerable: true, get: function () { return disk_speed_1.diskSpeed; } });
|
|
37
39
|
var disks_io_1 = require("./disks-io");
|
|
38
40
|
Object.defineProperty(exports, "disksIO", { enumerable: true, get: function () { return disks_io_1.disksIO; } });
|
|
39
41
|
var displays_1 = require("./displays");
|
|
40
42
|
Object.defineProperty(exports, "displays", { enumerable: true, get: function () { return displays_1.displays; } });
|
|
41
43
|
var docker_1 = require("./docker");
|
|
42
|
-
Object.defineProperty(exports, "
|
|
43
|
-
Object.defineProperty(exports, "dockerImages", { enumerable: true, get: function () { return docker_1.dockerImages; } });
|
|
44
|
-
Object.defineProperty(exports, "dockerContainers", { enumerable: true, get: function () { return docker_1.dockerContainers; } });
|
|
45
|
-
Object.defineProperty(exports, "dockerContainerStats", { enumerable: true, get: function () { return docker_1.dockerContainerStats; } });
|
|
44
|
+
Object.defineProperty(exports, "dockerAll", { enumerable: true, get: function () { return docker_1.dockerAll; } });
|
|
46
45
|
Object.defineProperty(exports, "dockerContainerProcesses", { enumerable: true, get: function () { return docker_1.dockerContainerProcesses; } });
|
|
46
|
+
Object.defineProperty(exports, "dockerContainerStats", { enumerable: true, get: function () { return docker_1.dockerContainerStats; } });
|
|
47
|
+
Object.defineProperty(exports, "dockerContainers", { enumerable: true, get: function () { return docker_1.dockerContainers; } });
|
|
48
|
+
Object.defineProperty(exports, "dockerImages", { enumerable: true, get: function () { return docker_1.dockerImages; } });
|
|
49
|
+
Object.defineProperty(exports, "dockerInfo", { enumerable: true, get: function () { return docker_1.dockerInfo; } });
|
|
47
50
|
Object.defineProperty(exports, "dockerVolumes", { enumerable: true, get: function () { return docker_1.dockerVolumes; } });
|
|
48
|
-
|
|
51
|
+
var fans_1 = require("./fans");
|
|
52
|
+
Object.defineProperty(exports, "fans", { enumerable: true, get: function () { return fans_1.fans; } });
|
|
49
53
|
var fs_open_files_1 = require("./fs-open-files");
|
|
50
54
|
Object.defineProperty(exports, "fsOpenFiles", { enumerable: true, get: function () { return fs_open_files_1.fsOpenFiles; } });
|
|
51
55
|
var fs_size_1 = require("./fs-size");
|
|
52
56
|
Object.defineProperty(exports, "fsSize", { enumerable: true, get: function () { return fs_size_1.fsSize; } });
|
|
53
57
|
var fs_stats_1 = require("./fs-stats");
|
|
54
58
|
Object.defineProperty(exports, "fsStats", { enumerable: true, get: function () { return fs_stats_1.fsStats; } });
|
|
55
|
-
var cpu_full_load_1 = require("./cpu-full-load");
|
|
56
|
-
Object.defineProperty(exports, "fullLoad", { enumerable: true, get: function () { return cpu_full_load_1.fullLoad; } });
|
|
57
59
|
var get_1 = require("./get");
|
|
58
60
|
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return get_1.get; } });
|
|
59
61
|
var get_data_1 = require("./get-data");
|
|
60
|
-
Object.defineProperty(exports, "getStaticData", { enumerable: true, get: function () { return get_data_1.getStaticData; } });
|
|
61
|
-
Object.defineProperty(exports, "getDynamicData", { enumerable: true, get: function () { return get_data_1.getDynamicData; } });
|
|
62
62
|
Object.defineProperty(exports, "getAllData", { enumerable: true, get: function () { return get_data_1.getAllData; } });
|
|
63
|
+
Object.defineProperty(exports, "getDynamicData", { enumerable: true, get: function () { return get_data_1.getDynamicData; } });
|
|
64
|
+
Object.defineProperty(exports, "getStaticData", { enumerable: true, get: function () { return get_data_1.getStaticData; } });
|
|
63
65
|
var gpu_1 = require("./gpu");
|
|
64
66
|
Object.defineProperty(exports, "gpu", { enumerable: true, get: function () { return gpu_1.gpu; } });
|
|
65
67
|
var inet_checksite_1 = require("./inet-checksite");
|
|
@@ -68,6 +70,8 @@ var inet_latency_1 = require("./inet-latency");
|
|
|
68
70
|
Object.defineProperty(exports, "inetLatency", { enumerable: true, get: function () { return inet_latency_1.inetLatency; } });
|
|
69
71
|
var inet_public_ip_1 = require("./inet-public-ip");
|
|
70
72
|
Object.defineProperty(exports, "inetPublicIp", { enumerable: true, get: function () { return inet_public_ip_1.inetPublicIp; } });
|
|
73
|
+
var inet_speed_1 = require("./inet-speed");
|
|
74
|
+
Object.defineProperty(exports, "inetSpeed", { enumerable: true, get: function () { return inet_speed_1.inetSpeed; } });
|
|
71
75
|
var keyboard_1 = require("./keyboard");
|
|
72
76
|
Object.defineProperty(exports, "keyboard", { enumerable: true, get: function () { return keyboard_1.keyboard; } });
|
|
73
77
|
var mem_1 = require("./mem");
|
|
@@ -84,6 +88,8 @@ var network_interface_default_1 = require("./network-interface-default");
|
|
|
84
88
|
Object.defineProperty(exports, "networkInterfaceDefault", { enumerable: true, get: function () { return network_interface_default_1.networkInterfaceDefault; } });
|
|
85
89
|
var network_interfaces_1 = require("./network-interfaces");
|
|
86
90
|
Object.defineProperty(exports, "networkInterfaces", { enumerable: true, get: function () { return network_interfaces_1.networkInterfaces; } });
|
|
91
|
+
var network_routes_1 = require("./network-routes");
|
|
92
|
+
Object.defineProperty(exports, "networkRoutes", { enumerable: true, get: function () { return network_routes_1.networkRoutes; } });
|
|
87
93
|
var network_stats_1 = require("./network-stats");
|
|
88
94
|
Object.defineProperty(exports, "networkStats", { enumerable: true, get: function () { return network_stats_1.networkStats; } });
|
|
89
95
|
var npm_1 = require("./npm");
|
|
@@ -96,14 +102,17 @@ var os_info_1 = require("./os-info");
|
|
|
96
102
|
Object.defineProperty(exports, "osInfo", { enumerable: true, get: function () { return os_info_1.osInfo; } });
|
|
97
103
|
var pci_1 = require("./pci");
|
|
98
104
|
Object.defineProperty(exports, "pci", { enumerable: true, get: function () { return pci_1.pci; } });
|
|
105
|
+
var powershell_1 = require("./powershell");
|
|
106
|
+
Object.defineProperty(exports, "powerShellRelease", { enumerable: true, get: function () { return powershell_1.powerShellRelease; } });
|
|
107
|
+
Object.defineProperty(exports, "powerShellStart", { enumerable: true, get: function () { return powershell_1.powerShellStart; } });
|
|
99
108
|
var printer_1 = require("./printer");
|
|
100
109
|
Object.defineProperty(exports, "printer", { enumerable: true, get: function () { return printer_1.printer; } });
|
|
101
|
-
var processes_1 = require("./processes");
|
|
102
|
-
Object.defineProperty(exports, "processes", { enumerable: true, get: function () { return processes_1.processes; } });
|
|
103
|
-
var process_load_1 = require("./process-load");
|
|
104
|
-
Object.defineProperty(exports, "processLoad", { enumerable: true, get: function () { return process_load_1.processLoad; } });
|
|
105
110
|
var process_focused_1 = require("./process-focused");
|
|
106
111
|
Object.defineProperty(exports, "processFocused", { enumerable: true, get: function () { return process_focused_1.processFocused; } });
|
|
112
|
+
var process_load_1 = require("./process-load");
|
|
113
|
+
Object.defineProperty(exports, "processLoad", { enumerable: true, get: function () { return process_load_1.processLoad; } });
|
|
114
|
+
var processes_1 = require("./processes");
|
|
115
|
+
Object.defineProperty(exports, "processes", { enumerable: true, get: function () { return processes_1.processes; } });
|
|
107
116
|
var serial_ports_1 = require("./serial-ports");
|
|
108
117
|
Object.defineProperty(exports, "serialPorts", { enumerable: true, get: function () { return serial_ports_1.serialPorts; } });
|
|
109
118
|
var services_1 = require("./services");
|
|
@@ -124,12 +133,12 @@ var users_1 = require("./users");
|
|
|
124
133
|
Object.defineProperty(exports, "users", { enumerable: true, get: function () { return users_1.users; } });
|
|
125
134
|
var uuid_1 = require("./uuid");
|
|
126
135
|
Object.defineProperty(exports, "uuid", { enumerable: true, get: function () { return uuid_1.uuid; } });
|
|
127
|
-
var virtualbox_1 = require("./virtualbox");
|
|
128
|
-
Object.defineProperty(exports, "vboxInfo", { enumerable: true, get: function () { return virtualbox_1.vboxInfo; } });
|
|
129
136
|
var version_1 = require("./version");
|
|
130
137
|
Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_1.version; } });
|
|
131
138
|
var versions_1 = require("./versions");
|
|
132
139
|
Object.defineProperty(exports, "versions", { enumerable: true, get: function () { return versions_1.versions; } });
|
|
140
|
+
var virtualbox_1 = require("./virtualbox");
|
|
141
|
+
Object.defineProperty(exports, "vboxInfo", { enumerable: true, get: function () { return virtualbox_1.vboxInfo; } });
|
|
133
142
|
var wifi_connections_1 = require("./wifi-connections");
|
|
134
143
|
Object.defineProperty(exports, "wifiConnections", { enumerable: true, get: function () { return wifi_connections_1.wifiConnections; } });
|
|
135
144
|
var wifi_interfaces_1 = require("./wifi-interfaces");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InetSpeedData } from './common/types';
|
|
2
|
+
export declare const INET_SPEED: {
|
|
3
|
+
downloadUrl: string;
|
|
4
|
+
uploadUrl: string;
|
|
5
|
+
budgetMs: number;
|
|
6
|
+
maxDownloadBytes: number;
|
|
7
|
+
maxUploadBytes: number;
|
|
8
|
+
uploadRequestBytes: number;
|
|
9
|
+
streams: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const inetSpeed: (downloadUrl?: string, uploadUrl?: string) => Promise<InetSpeedData | null>;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.inetSpeed = exports.INET_SPEED = void 0;
|
|
7
|
+
const node_crypto_1 = require("node:crypto");
|
|
8
|
+
const node_http_1 = __importDefault(require("node:http"));
|
|
9
|
+
const node_https_1 = __importDefault(require("node:https"));
|
|
10
|
+
const common_1 = require("./common");
|
|
11
|
+
const MB = 1000 * 1000;
|
|
12
|
+
exports.INET_SPEED = {
|
|
13
|
+
downloadUrl: 'https://speed.cloudflare.com/__down?bytes=25000000',
|
|
14
|
+
uploadUrl: 'https://speed.cloudflare.com/__up',
|
|
15
|
+
budgetMs: 8000,
|
|
16
|
+
maxDownloadBytes: 250 * MB,
|
|
17
|
+
maxUploadBytes: 50 * MB,
|
|
18
|
+
uploadRequestBytes: 10 * MB,
|
|
19
|
+
streams: 4
|
|
20
|
+
};
|
|
21
|
+
const elapsedMs = (start) => Number(process.hrtime.bigint() - start) / 1e6;
|
|
22
|
+
const mbitPerSec = (bytes, ms) => (bytes > 0 && ms > 0 ? Math.round(((bytes * 8) / 1e6 / (ms / 1000)) * 10) / 10 : null);
|
|
23
|
+
const parseUrl = (value, fallback) => {
|
|
24
|
+
if (value === undefined || value === null || value === '') {
|
|
25
|
+
return new URL(fallback);
|
|
26
|
+
}
|
|
27
|
+
if (typeof value !== 'string') {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const url = new URL(value);
|
|
32
|
+
return url.protocol === 'https:' || url.protocol === 'http:' ? url : null;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const clientFor = (url) => (url.protocol === 'https:' ? node_https_1.default : node_http_1.default);
|
|
39
|
+
const HEADERS = { 'User-Agent': 'systeminformation' };
|
|
40
|
+
const timedTransfer = async (maxBytes, request) => {
|
|
41
|
+
let bytes = 0;
|
|
42
|
+
const start = process.hrtime.bigint();
|
|
43
|
+
const state = {
|
|
44
|
+
done: () => bytes >= maxBytes || elapsedMs(start) >= exports.INET_SPEED.budgetMs,
|
|
45
|
+
add: (n) => {
|
|
46
|
+
bytes += n;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const worker = async () => {
|
|
50
|
+
while (!state.done()) {
|
|
51
|
+
const before = bytes;
|
|
52
|
+
await request(state).catch(() => { });
|
|
53
|
+
if (bytes === before) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
await Promise.all(Array.from({ length: exports.INET_SPEED.streams }, worker));
|
|
59
|
+
return { bytes, ms: elapsedMs(start) };
|
|
60
|
+
};
|
|
61
|
+
const download = (url) => timedTransfer(exports.INET_SPEED.maxDownloadBytes, (state) => new Promise((resolve) => {
|
|
62
|
+
const req = clientFor(url).get(url, { headers: HEADERS, timeout: exports.INET_SPEED.budgetMs }, (res) => {
|
|
63
|
+
if (!res.statusCode || res.statusCode < 200 || res.statusCode > 299) {
|
|
64
|
+
res.resume();
|
|
65
|
+
resolve();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
res.on('data', (chunk) => {
|
|
69
|
+
state.add(chunk.length);
|
|
70
|
+
if (state.done()) {
|
|
71
|
+
req.destroy();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
res.on('end', () => resolve());
|
|
75
|
+
res.on('error', () => resolve());
|
|
76
|
+
});
|
|
77
|
+
req.on('timeout', () => req.destroy());
|
|
78
|
+
req.on('error', () => resolve());
|
|
79
|
+
req.on('close', () => resolve());
|
|
80
|
+
}));
|
|
81
|
+
const upload = (url) => {
|
|
82
|
+
const chunk = (0, node_crypto_1.randomBytes)(64 * 1024);
|
|
83
|
+
return timedTransfer(exports.INET_SPEED.maxUploadBytes, (state) => new Promise((resolve) => {
|
|
84
|
+
const req = clientFor(url).request(url, {
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: { ...HEADERS, 'Content-Type': 'application/octet-stream', 'Content-Length': exports.INET_SPEED.uploadRequestBytes },
|
|
87
|
+
timeout: exports.INET_SPEED.budgetMs
|
|
88
|
+
});
|
|
89
|
+
req.on('timeout', () => req.destroy());
|
|
90
|
+
req.on('error', () => resolve());
|
|
91
|
+
req.on('close', () => resolve());
|
|
92
|
+
let queued = 0;
|
|
93
|
+
let counted = 0;
|
|
94
|
+
let rejected = false;
|
|
95
|
+
req.on('response', (res) => {
|
|
96
|
+
res.resume();
|
|
97
|
+
if (!res.statusCode || res.statusCode < 200 || res.statusCode > 299) {
|
|
98
|
+
rejected = true;
|
|
99
|
+
state.add(-counted);
|
|
100
|
+
req.destroy();
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const pump = () => {
|
|
104
|
+
while (queued < exports.INET_SPEED.uploadRequestBytes) {
|
|
105
|
+
if (state.done()) {
|
|
106
|
+
req.destroy();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const part = Math.min(chunk.length, exports.INET_SPEED.uploadRequestBytes - queued);
|
|
110
|
+
queued += part;
|
|
111
|
+
const writable = req.write(chunk.subarray(0, part), (err) => {
|
|
112
|
+
if (!err && !rejected) {
|
|
113
|
+
counted += part;
|
|
114
|
+
state.add(part);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
if (!writable) {
|
|
118
|
+
req.once('drain', pump);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
req.end();
|
|
123
|
+
};
|
|
124
|
+
pump();
|
|
125
|
+
}));
|
|
126
|
+
};
|
|
127
|
+
const measure = async (downloadUrl, uploadUrl) => {
|
|
128
|
+
const down = parseUrl(downloadUrl, exports.INET_SPEED.downloadUrl);
|
|
129
|
+
const up = parseUrl(uploadUrl, exports.INET_SPEED.uploadUrl);
|
|
130
|
+
if (!down || !up) {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
const start = process.hrtime.bigint();
|
|
134
|
+
const dl = await download(down);
|
|
135
|
+
const ul = await upload(up);
|
|
136
|
+
return {
|
|
137
|
+
server: down.host,
|
|
138
|
+
downloadSpeed: mbitPerSec(dl.bytes, dl.ms),
|
|
139
|
+
uploadSpeed: mbitPerSec(ul.bytes, ul.ms),
|
|
140
|
+
downloadMB: Math.round((dl.bytes / MB) * 10) / 10,
|
|
141
|
+
uploadMB: Math.round((ul.bytes / MB) * 10) / 10,
|
|
142
|
+
ms: Math.round(elapsedMs(start))
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
let _queue = Promise.resolve();
|
|
146
|
+
const inetSpeed = async (downloadUrl, uploadUrl) => {
|
|
147
|
+
await (0, common_1.nextTick)();
|
|
148
|
+
const run = _queue.then(() => measure(downloadUrl, uploadUrl));
|
|
149
|
+
_queue = run.catch(() => null);
|
|
150
|
+
return run;
|
|
151
|
+
};
|
|
152
|
+
exports.inetSpeed = inetSpeed;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FsBlockDevicesData } from '../common/types';
|
|
1
|
+
import type { FsBlockDevicesData } from '../common/types';
|
|
2
2
|
export declare const blockDevices: () => Promise<FsBlockDevicesData[]>;
|
|
@@ -1,28 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.blockDevices = void 0;
|
|
4
|
-
const exec_1 = require("../common/exec");
|
|
5
4
|
const common_1 = require("../common");
|
|
6
|
-
const filesys_1 = require("../common/filesys");
|
|
7
5
|
const const_1 = require("../common/const");
|
|
6
|
+
const exec_1 = require("../common/exec");
|
|
7
|
+
const files_1 = require("../common/files");
|
|
8
|
+
const filesys_1 = require("../common/filesys");
|
|
9
|
+
const security_1 = require("../common/security");
|
|
8
10
|
const poolMatchLinux = async (data) => (0, filesys_1.applyPoolsLinux)(data, [...(await (0, filesys_1.zfsPoolsLinux)(data)), ...(await (0, filesys_1.btrfsPoolsLinux)(data))]);
|
|
11
|
+
const partStartLinux = async (data) => {
|
|
12
|
+
await Promise.all(data
|
|
13
|
+
.filter((item) => item.type === 'part' && (0, security_1.isSafePathSegment)(item.name))
|
|
14
|
+
.map(async (item) => {
|
|
15
|
+
const start = await (0, files_1.readSysfs)(`/sys/class/block/${item.name}/start`);
|
|
16
|
+
item.partStart = start ? (0, common_1.toInt)(start) * 512 : null;
|
|
17
|
+
}));
|
|
18
|
+
return data;
|
|
19
|
+
};
|
|
9
20
|
const blockDevices = async () => {
|
|
10
21
|
await (0, common_1.nextTick)();
|
|
11
22
|
let stdout = '';
|
|
12
23
|
try {
|
|
13
|
-
|
|
24
|
+
try {
|
|
25
|
+
({ stdout } = await (0, exec_1.exec)('lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,TRAN,SERIAL,LABEL,MODEL,OWNER,PARTUUID,PARTLABEL,PARTTYPE,PARTFLAGS 2>/dev/null', const_1.execOptsLinux));
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
({ stdout } = await (0, exec_1.exec)('lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,TRAN,SERIAL,LABEL,MODEL,OWNER 2>/dev/null', const_1.execOptsLinux));
|
|
29
|
+
}
|
|
14
30
|
const lines = (0, filesys_1.blkStdoutToObject)(stdout).split('\n');
|
|
15
31
|
let data = (0, filesys_1.parseLinuxBlk)(lines);
|
|
16
32
|
data = await (0, filesys_1.raidMatchLinux)(data);
|
|
17
33
|
data = await poolMatchLinux(data);
|
|
18
|
-
return (0, filesys_1.matchDevicesLinux)(data);
|
|
34
|
+
return partStartLinux((0, filesys_1.matchDevicesLinux)(data));
|
|
19
35
|
}
|
|
20
36
|
catch {
|
|
21
37
|
try {
|
|
22
38
|
({ stdout } = await (0, exec_1.exec)('lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER 2>/dev/null', const_1.execOptsLinux));
|
|
23
39
|
const lines = (0, filesys_1.blkStdoutToObject)(stdout).split('\n');
|
|
24
40
|
const data = (0, filesys_1.parseLinuxBlk)(lines);
|
|
25
|
-
return await poolMatchLinux(await (0, filesys_1.raidMatchLinux)(data));
|
|
41
|
+
return partStartLinux(await poolMatchLinux(await (0, filesys_1.raidMatchLinux)(data)));
|
|
26
42
|
}
|
|
27
43
|
catch {
|
|
28
44
|
return [];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cpuTopology = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
const files_1 = require("../common/files");
|
|
6
|
+
const toId = (value) => (/^\d+$/.test(value.trim()) ? (0, common_1.toInt)(value) : null);
|
|
7
|
+
const cpuTopology = async () => {
|
|
8
|
+
const names = (await (0, files_1.readFileLines)('/proc/stat')).map((line) => line.split(' ')[0] || '').filter((name) => /^cpu\d+$/.test(name));
|
|
9
|
+
return Promise.all(names.map(async (name) => {
|
|
10
|
+
const dir = `/sys/devices/system/cpu/${name}/topology`;
|
|
11
|
+
const [coreId, socketId] = await Promise.all([(0, files_1.readSysfs)(`${dir}/core_id`), (0, files_1.readSysfs)(`${dir}/physical_package_id`)]);
|
|
12
|
+
return { coreId: toId(coreId), socketId: toId(socketId) };
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
exports.cpuTopology = cpuTopology;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diskSpeed = void 0;
|
|
4
|
+
const disk_speed_1 = require("../common/disk-speed");
|
|
5
|
+
const exec_1 = require("../common/exec");
|
|
6
|
+
const readUncached = async (file, bytes) => {
|
|
7
|
+
try {
|
|
8
|
+
await (0, exec_1.execFile)('dd', [`if=${file}`, 'iflag=nocache', 'count=0'], { timeout: 10000 });
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return (0, disk_speed_1.readFileTimed)(file, bytes);
|
|
14
|
+
};
|
|
15
|
+
const diskSpeed = (path, sizeMB) => (0, disk_speed_1.runDiskSpeed)(path, sizeMB, { readUncached });
|
|
16
|
+
exports.diskSpeed = diskSpeed;
|
package/dist/linux/disks-io.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DisksIoData } from '../common/types';
|
|
1
|
+
import type { DisksIoData } from '../common/types';
|
|
2
2
|
export declare const disksIO: () => Promise<DisksIoData>;
|