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.
Files changed (80) hide show
  1. package/README.md +57 -6
  2. package/dist/bsd/index.d.ts +3 -0
  3. package/dist/bsd/index.js +7 -1
  4. package/dist/common/darwin.d.ts +1 -0
  5. package/dist/common/darwin.js +15 -3
  6. package/dist/common/defaults.js +15 -4
  7. package/dist/common/disk-speed.d.ts +20 -0
  8. package/dist/common/disk-speed.js +142 -0
  9. package/dist/common/filesys.d.ts +1 -1
  10. package/dist/common/filesys.js +24 -4
  11. package/dist/common/mappings.d.ts +1 -1
  12. package/dist/common/mappings.js +14 -4
  13. package/dist/common/types.d.ts +41 -0
  14. package/dist/common/windows.d.ts +1 -0
  15. package/dist/common/windows.js +19 -5
  16. package/dist/cpu-current-load.js +45 -0
  17. package/dist/cpu-current-speed.js +6 -0
  18. package/dist/darwin/bluetooth.d.ts +1 -1
  19. package/dist/darwin/bluetooth.js +2 -2
  20. package/dist/darwin/cpu-current-speed.d.ts +2 -0
  21. package/dist/darwin/cpu-current-speed.js +30 -0
  22. package/dist/darwin/cpu-temperature.js +7 -13
  23. package/dist/darwin/disk-speed.d.ts +2 -0
  24. package/dist/darwin/disk-speed.js +18 -0
  25. package/dist/darwin/disks-io.js +3 -1
  26. package/dist/darwin/fans.js +11 -13
  27. package/dist/darwin/gpu.d.ts +1 -1
  28. package/dist/darwin/gpu.js +4 -4
  29. package/dist/darwin/index.d.ts +3 -0
  30. package/dist/darwin/index.js +8 -2
  31. package/dist/darwin/network-interfaces.js +14 -4
  32. package/dist/darwin/network-routes.d.ts +3 -0
  33. package/dist/darwin/network-routes.js +74 -0
  34. package/dist/darwin/wifi-connections.js +3 -2
  35. package/dist/disk-speed.d.ts +1 -0
  36. package/dist/disk-speed.js +17 -0
  37. package/dist/get.js +5 -5
  38. package/dist/index.d.ts +12 -8
  39. package/dist/index.js +30 -21
  40. package/dist/inet-speed.d.ts +11 -0
  41. package/dist/inet-speed.js +152 -0
  42. package/dist/linux/block-devices.d.ts +1 -1
  43. package/dist/linux/block-devices.js +21 -5
  44. package/dist/linux/cpu-topology.d.ts +2 -0
  45. package/dist/linux/cpu-topology.js +15 -0
  46. package/dist/linux/disk-speed.d.ts +2 -0
  47. package/dist/linux/disk-speed.js +16 -0
  48. package/dist/linux/disks-io.d.ts +1 -1
  49. package/dist/linux/disks-io.js +18 -7
  50. package/dist/linux/index.d.ts +3 -0
  51. package/dist/linux/index.js +8 -2
  52. package/dist/linux/mem.js +20 -1
  53. package/dist/linux/network-interfaces.js +18 -7
  54. package/dist/linux/network-routes.d.ts +4 -0
  55. package/dist/linux/network-routes.js +69 -0
  56. package/dist/linux/os-info.js +32 -4
  57. package/dist/linux/pci.d.ts +1 -1
  58. package/dist/linux/pci.js +4 -3
  59. package/dist/linux/wifi-connections.d.ts +4 -0
  60. package/dist/linux/wifi-connections.js +20 -2
  61. package/dist/network-routes.d.ts +1 -0
  62. package/dist/network-routes.js +17 -0
  63. package/dist/powershell.d.ts +2 -0
  64. package/dist/powershell.js +15 -0
  65. package/dist/sun/index.d.ts +1 -0
  66. package/dist/sun/index.js +3 -1
  67. package/dist/windows/block-devices.js +6 -1
  68. package/dist/windows/cpu-topology.d.ts +3 -0
  69. package/dist/windows/cpu-topology.js +90 -0
  70. package/dist/windows/disk-speed.d.ts +6 -0
  71. package/dist/windows/disk-speed.js +73 -0
  72. package/dist/windows/disks-io.js +3 -1
  73. package/dist/windows/index.d.ts +3 -0
  74. package/dist/windows/index.js +8 -2
  75. package/dist/windows/network-interfaces.js +6 -3
  76. package/dist/windows/network-routes.d.ts +3 -0
  77. package/dist/windows/network-routes.js +41 -0
  78. package/dist/windows/wifi-connections.d.ts +1 -0
  79. package/dist/windows/wifi-connections.js +10 -3
  80. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.diskSpeed = exports.parseReadResult = void 0;
4
+ const disk_speed_1 = require("../common/disk-speed");
5
+ const windows_1 = require("../common/windows");
6
+ const READ_SOURCE = `
7
+ using System;
8
+ using System.Diagnostics;
9
+ using System.Globalization;
10
+ using System.Runtime.InteropServices;
11
+ using System.Threading;
12
+ using Microsoft.Win32.SafeHandles;
13
+ public static class SiDiskRead {
14
+ [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
15
+ static extern SafeFileHandle CreateFileW(string name, uint access, uint share, IntPtr security, uint disposition, uint flags, IntPtr template);
16
+ [DllImport("kernel32.dll", SetLastError = true)]
17
+ static extern bool ReadFile(SafeFileHandle handle, IntPtr buffer, uint toRead, out uint read, ref NativeOverlapped overlapped);
18
+ [DllImport("kernel32.dll", SetLastError = true)]
19
+ static extern IntPtr VirtualAlloc(IntPtr address, UIntPtr size, uint type, uint protect);
20
+ [DllImport("kernel32.dll", SetLastError = true)]
21
+ static extern bool VirtualFree(IntPtr address, UIntPtr size, uint type);
22
+
23
+ public static string Read(string path, long maxBytes, long budgetMs, int block, int queue) {
24
+ long next = 0;
25
+ long total = 0;
26
+ bool failed = false;
27
+ Stopwatch watch = Stopwatch.StartNew();
28
+ Thread[] threads = new Thread[queue];
29
+ for (int i = 0; i < queue; i++) {
30
+ threads[i] = new Thread(() => {
31
+ // GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING, FILE_FLAG_NO_BUFFERING
32
+ using (SafeFileHandle handle = CreateFileW(path, 0x80000000, 1, IntPtr.Zero, 3, 0x20000000, IntPtr.Zero)) {
33
+ if (handle.IsInvalid) { failed = true; return; }
34
+ // MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE
35
+ IntPtr buffer = VirtualAlloc(IntPtr.Zero, (UIntPtr)(uint)block, 0x3000, 0x04);
36
+ if (buffer == IntPtr.Zero) { failed = true; return; }
37
+ try {
38
+ while (watch.ElapsedMilliseconds < budgetMs) {
39
+ long pos = Interlocked.Add(ref next, block) - block;
40
+ if (pos >= maxBytes) break;
41
+ NativeOverlapped position = new NativeOverlapped();
42
+ position.OffsetLow = (int)(pos & 0xFFFFFFFF);
43
+ position.OffsetHigh = (int)(pos >> 32);
44
+ uint read;
45
+ if (!ReadFile(handle, buffer, (uint)block, out read, ref position) || read == 0) break;
46
+ Interlocked.Add(ref total, read);
47
+ }
48
+ } finally {
49
+ VirtualFree(buffer, UIntPtr.Zero, 0x8000);
50
+ }
51
+ }
52
+ });
53
+ threads[i].Start();
54
+ }
55
+ foreach (Thread thread in threads) thread.Join();
56
+ watch.Stop();
57
+ if (failed) return "";
58
+ return total + "," + watch.Elapsed.TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
59
+ }
60
+ }
61
+ `;
62
+ const parseReadResult = (stdout) => {
63
+ const [bytes, ms] = stdout.trim().split(',').map(Number);
64
+ return bytes !== undefined && ms !== undefined && Number.isFinite(bytes) && Number.isFinite(ms) && bytes > 0 && ms > 0 ? { bytes, ms } : null;
65
+ };
66
+ exports.parseReadResult = parseReadResult;
67
+ const readUncached = async (file, bytes) => {
68
+ const path64 = Buffer.from(file, 'utf8').toString('base64');
69
+ const script = `if (-not ('SiDiskRead' -as [type])) { Add-Type -TypeDefinition @'${READ_SOURCE}'@ }; [SiDiskRead]::Read([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${path64}')), ${Math.trunc(bytes)}, ${disk_speed_1.DISK_SPEED.budgetMs}, ${disk_speed_1.DISK_SPEED.block}, ${disk_speed_1.DISK_SPEED.queue})`;
70
+ return (0, exports.parseReadResult)(String((await windows_1.ps.exec(script)) || ''));
71
+ };
72
+ const diskSpeed = (path, sizeMB) => (0, disk_speed_1.runDiskSpeed)(path, sizeMB, { readUncached });
73
+ exports.diskSpeed = diskSpeed;
@@ -39,7 +39,9 @@ const disksIO = async () => {
39
39
  tWaitTime: filesys_1._disk_io.tWaitTimeDelta,
40
40
  rWaitPercent: filesys_1._disk_io.rWaitPercent,
41
41
  wWaitPercent: filesys_1._disk_io.wWaitPercent,
42
- tWaitPercent: filesys_1._disk_io.tWaitPercent
42
+ tWaitPercent: filesys_1._disk_io.tWaitPercent,
43
+ busyPercent: filesys_1._disk_io.busyPercent,
44
+ idlePercent: filesys_1._disk_io.idlePercent
43
45
  };
44
46
  }
45
47
  };
@@ -3,6 +3,7 @@ export { cpuCurrentSpeed } from '../cpu-current-speed';
3
3
  export { fullLoad } from '../cpu-full-load';
4
4
  export { dockerAll, dockerContainerProcesses, dockerContainers, dockerContainerStats, dockerImages, dockerInfo, dockerVolumes } from '../docker';
5
5
  export { inetChecksite } from '../inet-checksite';
6
+ export { inetSpeed } from '../inet-speed';
6
7
  export { time } from '../time';
7
8
  export { version } from '../version';
8
9
  export { versions } from '../versions';
@@ -21,6 +22,7 @@ export { cpuFlags } from './cpu-flags';
21
22
  export { cpuTemperature } from './cpu-temperature';
22
23
  export { fans } from './fans';
23
24
  export { diskLayout } from './disk-layout';
25
+ export { diskSpeed } from './disk-speed';
24
26
  export { disksIO } from './disks-io';
25
27
  export { displays } from './displays';
26
28
  export { fsOpenFiles } from './fs-open-files';
@@ -36,6 +38,7 @@ export { networkConnections } from './network-connections';
36
38
  export { networkGatewayDefault } from './network-gateway-default';
37
39
  export { networkInterfaceDefault } from './network-interface-default';
38
40
  export { networkInterfaces } from './network-interfaces';
41
+ export { networkRoutes } from './network-routes';
39
42
  export { networkStats } from './network-stats';
40
43
  export { npm } from './npm';
41
44
  export { npu } from './npu';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printer = exports.pci = exports.osInfo = exports.npu = exports.npm = exports.networkStats = exports.networkInterfaces = exports.networkInterfaceDefault = exports.networkGatewayDefault = exports.networkConnections = exports.mouse = exports.memLayout = exports.mem = exports.keyboard = exports.inetLatency = exports.gpu = exports.fsStats = exports.fsSize = exports.fsOpenFiles = exports.displays = exports.disksIO = exports.diskLayout = exports.fans = exports.cpuTemperature = exports.cpuFlags = exports.cpuCache = exports.cpu = exports.chassis = exports.camera = exports.bluetoothDevices = exports.blockDevices = exports.bios = exports.battery = exports.baseboard = exports.audio = exports.vboxInfo = exports.versions = exports.version = exports.time = exports.inetChecksite = exports.dockerVolumes = exports.dockerInfo = exports.dockerImages = exports.dockerContainerStats = exports.dockerContainers = exports.dockerContainerProcesses = exports.dockerAll = exports.fullLoad = exports.cpuCurrentSpeed = exports.currentLoad = void 0;
4
- exports.wifiNetworks = exports.wifiInterfaces = exports.wifiConnections = exports.uuid = exports.users = exports.usb = exports.serialPorts = exports.thunderbolt = exports.system = exports.software = exports.shell = exports.services = exports.processes = exports.processFocused = exports.processLoad = void 0;
3
+ exports.npu = exports.npm = exports.networkStats = exports.networkRoutes = exports.networkInterfaces = exports.networkInterfaceDefault = exports.networkGatewayDefault = exports.networkConnections = exports.mouse = exports.memLayout = exports.mem = exports.keyboard = exports.inetLatency = exports.gpu = exports.fsStats = exports.fsSize = exports.fsOpenFiles = exports.displays = exports.disksIO = exports.diskSpeed = exports.diskLayout = exports.fans = exports.cpuTemperature = exports.cpuFlags = exports.cpuCache = exports.cpu = exports.chassis = exports.camera = exports.bluetoothDevices = exports.blockDevices = exports.bios = exports.battery = exports.baseboard = exports.audio = exports.vboxInfo = exports.versions = exports.version = exports.time = exports.inetSpeed = exports.inetChecksite = exports.dockerVolumes = exports.dockerInfo = exports.dockerImages = exports.dockerContainerStats = exports.dockerContainers = exports.dockerContainerProcesses = exports.dockerAll = exports.fullLoad = exports.cpuCurrentSpeed = exports.currentLoad = void 0;
4
+ exports.wifiNetworks = exports.wifiInterfaces = exports.wifiConnections = exports.uuid = exports.users = exports.usb = exports.serialPorts = exports.thunderbolt = exports.system = exports.software = exports.shell = exports.services = exports.processes = exports.processFocused = exports.processLoad = exports.printer = exports.pci = exports.osInfo = void 0;
5
5
  var cpu_current_load_1 = require("../cpu-current-load");
6
6
  Object.defineProperty(exports, "currentLoad", { enumerable: true, get: function () { return cpu_current_load_1.currentLoad; } });
7
7
  var cpu_current_speed_1 = require("../cpu-current-speed");
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "dockerInfo", { enumerable: true, get: function (
18
18
  Object.defineProperty(exports, "dockerVolumes", { enumerable: true, get: function () { return docker_1.dockerVolumes; } });
19
19
  var inet_checksite_1 = require("../inet-checksite");
20
20
  Object.defineProperty(exports, "inetChecksite", { enumerable: true, get: function () { return inet_checksite_1.inetChecksite; } });
21
+ var inet_speed_1 = require("../inet-speed");
22
+ Object.defineProperty(exports, "inetSpeed", { enumerable: true, get: function () { return inet_speed_1.inetSpeed; } });
21
23
  var time_1 = require("../time");
22
24
  Object.defineProperty(exports, "time", { enumerable: true, get: function () { return time_1.time; } });
23
25
  var version_1 = require("../version");
@@ -54,6 +56,8 @@ var fans_1 = require("./fans");
54
56
  Object.defineProperty(exports, "fans", { enumerable: true, get: function () { return fans_1.fans; } });
55
57
  var disk_layout_1 = require("./disk-layout");
56
58
  Object.defineProperty(exports, "diskLayout", { enumerable: true, get: function () { return disk_layout_1.diskLayout; } });
59
+ var disk_speed_1 = require("./disk-speed");
60
+ Object.defineProperty(exports, "diskSpeed", { enumerable: true, get: function () { return disk_speed_1.diskSpeed; } });
57
61
  var disks_io_1 = require("./disks-io");
58
62
  Object.defineProperty(exports, "disksIO", { enumerable: true, get: function () { return disks_io_1.disksIO; } });
59
63
  var displays_1 = require("./displays");
@@ -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");
@@ -17,7 +17,7 @@ const parseLinesWindowsNics = (sections, nconfigsections) => {
17
17
  const nics = [];
18
18
  for (let i = 0; i < sections.length; i++) {
19
19
  try {
20
- if (Object.prototype.hasOwnProperty.call(sections, i)) {
20
+ if (Object.hasOwn(sections, i)) {
21
21
  if (sections[i].trim() !== '') {
22
22
  const lines = sections[i].trim().split('\r\n');
23
23
  let linesNicConfig = null;
@@ -154,7 +154,9 @@ const getWindowsWiredProfilesInformation = async () => {
154
154
  const getWindowsWirelessIfaceSSID = async (interfaceName) => {
155
155
  try {
156
156
  const { stdout } = await (0, exec_1.execFile)('netsh', ['wlan', 'show', 'interface', `name=${(0, security_1.sanitizeString)(interfaceName)}`], const_1.execOptsWin);
157
- const SSID = String(stdout).split('\r\n').find((l) => l.includes('SSID')) || '';
157
+ const SSID = String(stdout)
158
+ .split('\r\n')
159
+ .find((l) => l.includes('SSID')) || '';
158
160
  const parseSSID = (SSID.split(':').pop() || '').trim();
159
161
  return parseSSID;
160
162
  }
@@ -232,7 +234,7 @@ const networkInterfaces = async (defaultString = '', rescan = true) => {
232
234
  return (0, network_1.filterDefaultInterface)(_networkInterfaces, defaultString);
233
235
  }
234
236
  _interfaces = (0, index_1.cloneObj)(interfaces);
235
- let result = [];
237
+ const result = [];
236
238
  try {
237
239
  const defaultInterface = await (0, network_interface_default_1.networkInterfaceDefault)();
238
240
  const nics = await getWindowsNics();
@@ -311,6 +313,7 @@ const networkInterfaces = async (defaultString = '', rescan = true) => {
311
313
  const virtual = internal ? false : (0, network_1.testVirtualNic)(dev, ifaceName, mac);
312
314
  result.push({
313
315
  ...defaults_1.initNetworkInterface,
316
+ bridgeMembers: [],
314
317
  iface,
315
318
  ifaceName,
316
319
  vendor,
@@ -0,0 +1,3 @@
1
+ import type { NetworkRouteData } from '../common/types';
2
+ export declare const parseWindowsRoutes: (data: any) => NetworkRouteData[];
3
+ export declare const networkRoutes: () => Promise<NetworkRouteData[]>;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.networkRoutes = exports.parseWindowsRoutes = void 0;
4
+ const common_1 = require("../common");
5
+ const windows_1 = require("../common/windows");
6
+ const ROUTES_SCRIPT = [
7
+ "$routes = @(Get-NetRoute -PolicyStore ActiveStore -ErrorAction SilentlyContinue | Select-Object DestinationPrefix,NextHop,InterfaceAlias,InterfaceIndex,RouteMetric,@{n='Family';e={[int]$_.AddressFamily}});",
8
+ "$ifaces = @(Get-NetIPInterface -ErrorAction SilentlyContinue | Select-Object InterfaceIndex,InterfaceMetric,@{n='Family';e={[int]$_.AddressFamily}});",
9
+ '@{ routes = $routes; ifaces = $ifaces } | ConvertTo-Json -Depth 3 -Compress'
10
+ ].join(' ');
11
+ const familyName = (value) => ((0, common_1.toInt)(String(value)) === 23 ? 'IPv6' : 'IPv4');
12
+ const parseWindowsRoutes = (data) => {
13
+ const ifaceMetrics = new Map();
14
+ for (const iface of (0, windows_1.psArray)(data?.ifaces)) {
15
+ ifaceMetrics.set(`${iface?.InterfaceIndex}/${familyName(iface?.Family)}`, (0, common_1.toInt)(String(iface?.InterfaceMetric)) || 0);
16
+ }
17
+ return (0, windows_1.psArray)(data?.routes).map((route) => {
18
+ const family = familyName(route?.Family);
19
+ const routeMetric = typeof route?.RouteMetric === 'number' ? route.RouteMetric : Number.NaN;
20
+ const ifaceMetric = ifaceMetrics.get(`${route?.InterfaceIndex}/${family}`) ?? 0;
21
+ const nextHop = String(route?.NextHop || '');
22
+ return {
23
+ destination: String(route?.DestinationPrefix || ''),
24
+ gateway: nextHop === '0.0.0.0' || nextHop === '::' ? '' : nextHop,
25
+ iface: String(route?.InterfaceAlias || ''),
26
+ metric: Number.isNaN(routeMetric) ? null : routeMetric + ifaceMetric,
27
+ family
28
+ };
29
+ });
30
+ };
31
+ exports.parseWindowsRoutes = parseWindowsRoutes;
32
+ const networkRoutes = async () => {
33
+ await (0, common_1.nextTick)();
34
+ try {
35
+ return (0, exports.parseWindowsRoutes)(await windows_1.ps.exec(ROUTES_SCRIPT));
36
+ }
37
+ catch {
38
+ return [];
39
+ }
40
+ };
41
+ exports.networkRoutes = networkRoutes;
@@ -1,2 +1,3 @@
1
1
  import type { WifiConnectionData } from '../common/types';
2
+ export declare const rateValue: (lines: string[], label: RegExp) => number | null;
2
3
  export declare const wifiConnections: () => Promise<WifiConnectionData[]>;
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wifiConnections = void 0;
3
+ exports.wifiConnections = exports.rateValue = void 0;
4
4
  const common_1 = require("../common");
5
5
  const network_1 = require("../common/network");
6
6
  const windows_1 = require("../common/windows");
7
+ const rateValue = (lines, label) => {
8
+ const line = lines.find((l) => label.test(l.split(':')[0] || ''));
9
+ return (line && (0, common_1.toInt)(line.split(':').slice(1).join(':'))) || null;
10
+ };
11
+ exports.rateValue = rateValue;
7
12
  const wifiConnections = async () => {
8
13
  await (0, common_1.nextTick)();
9
14
  const result = [];
@@ -32,7 +37,8 @@ const wifiConnections = async () => {
32
37
  const type = (0, common_1.getValue)(lines, 'Radio type', ':', true) || (0, common_1.getValue)(lines, 'Type de radio', ':', true) || (0, common_1.getValue)(lines, 'Funktyp', ':', true) || null;
33
38
  const security = (0, common_1.getValue)(lines, 'authentication', ':', true) || (0, common_1.getValue)(lines, 'Authentification', ':', true) || (0, common_1.getValue)(lines, 'Authentifizierung', ':', true) || null;
34
39
  const channel = (0, common_1.toInt)((0, common_1.getValue)(lines, 'Channel', ':', true) || (0, common_1.getValue)(lines, 'Canal', ':', true) || (0, common_1.getValue)(lines, 'Kanal', ':', true)) || null;
35
- const txRate = (0, common_1.getValue)(lines, 'Transmit rate (mbps)', ':', true) || (0, common_1.getValue)(lines, 'Transmission (mbit/s)', ':', true) || (0, common_1.getValue)(lines, 'Empfangsrate (MBit/s)', ':', true) || null;
40
+ const txRate = (0, exports.rateValue)(lines, /transmit rate|^transmission|bertragungsrate/i);
41
+ const rxRate = (0, exports.rateValue)(lines, /receive rate|ception \(|empfangsrate/i);
36
42
  if (model && id && ssid && bssid) {
37
43
  result.push({
38
44
  id,
@@ -46,7 +52,8 @@ const wifiConnections = async () => {
46
52
  security,
47
53
  signalLevel,
48
54
  quality: quality ? parseInt(quality, 10) : null,
49
- txRate: (0, common_1.toInt)(txRate) || null
55
+ txRate,
56
+ rxRate
50
57
  });
51
58
  }
52
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "6.0.0-beta.24",
3
+ "version": "6.0.0-beta.26",
4
4
  "description": "Advanced, lightweight system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",