systeminformation 5.23.6 → 5.23.9
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/lib/index.d.ts +8 -0
- package/lib/network.js +13 -3
- package/lib/util.js +3 -3
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -963,6 +963,7 @@ export function chassis(cb?: (data: Systeminformation.ChassisData) => any): Prom
|
|
|
963
963
|
export function time(): Systeminformation.TimeData;
|
|
964
964
|
export function osInfo(cb?: (data: Systeminformation.OsData) => any): Promise<Systeminformation.OsData>;
|
|
965
965
|
export function versions(apps?: string, cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
|
|
966
|
+
export function versions(cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
|
|
966
967
|
export function shell(cb?: (data: string) => any): Promise<string>;
|
|
967
968
|
export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise<Systeminformation.UuidData>;
|
|
968
969
|
|
|
@@ -981,6 +982,7 @@ export function battery(cb?: (data: Systeminformation.BatteryData) => any): Prom
|
|
|
981
982
|
export function graphics(cb?: (data: Systeminformation.GraphicsData) => any): Promise<Systeminformation.GraphicsData>;
|
|
982
983
|
|
|
983
984
|
export function fsSize(drive?: string, cb?: (data: Systeminformation.FsSizeData[]) => any): Promise<Systeminformation.FsSizeData[]>;
|
|
985
|
+
export function fsSize(cb?: (data: Systeminformation.FsSizeData[]) => any): Promise<Systeminformation.FsSizeData[]>;
|
|
984
986
|
export function fsOpenFiles(cb?: (data: Systeminformation.FsOpenFilesData[]) => any): Promise<Systeminformation.FsOpenFilesData[]>;
|
|
985
987
|
export function blockDevices(cb?: (data: Systeminformation.BlockDevicesData[]) => any): Promise<Systeminformation.BlockDevicesData[]>;
|
|
986
988
|
export function fsStats(cb?: (data: Systeminformation.FsStatsData) => any): Promise<Systeminformation.FsStatsData>;
|
|
@@ -999,9 +1001,11 @@ export function networkInterfaces(
|
|
|
999
1001
|
): Promise<Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData>;
|
|
1000
1002
|
|
|
1001
1003
|
export function networkStats(ifaces?: string, cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise<Systeminformation.NetworkStatsData[]>;
|
|
1004
|
+
export function networkStats(cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise<Systeminformation.NetworkStatsData[]>;
|
|
1002
1005
|
export function networkConnections(cb?: (data: Systeminformation.NetworkConnectionsData[]) => any): Promise<Systeminformation.NetworkConnectionsData[]>;
|
|
1003
1006
|
export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise<Systeminformation.InetChecksiteData>;
|
|
1004
1007
|
export function inetLatency(host?: string, cb?: (data: number) => any): Promise<number>;
|
|
1008
|
+
export function inetLatency(cb?: (data: number) => any): Promise<number>;
|
|
1005
1009
|
|
|
1006
1010
|
export function wifiNetworks(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise<Systeminformation.WifiNetworkData[]>;
|
|
1007
1011
|
export function wifiInterfaces(cb?: (data: Systeminformation.WifiInterfaceData[]) => any): Promise<Systeminformation.WifiInterfaceData[]>;
|
|
@@ -1015,9 +1019,13 @@ export function services(serviceName: string, cb?: (data: Systeminformation.Serv
|
|
|
1015
1019
|
|
|
1016
1020
|
export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any): Promise<Systeminformation.DockerInfoData>;
|
|
1017
1021
|
export function dockerImages(all?: boolean, cb?: (data: Systeminformation.DockerImageData[]) => any): Promise<Systeminformation.DockerImageData[]>;
|
|
1022
|
+
export function dockerImages(cb?: (data: Systeminformation.DockerImageData[]) => any): Promise<Systeminformation.DockerImageData[]>;
|
|
1018
1023
|
export function dockerContainers(all?: boolean, cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise<Systeminformation.DockerContainerData[]>;
|
|
1024
|
+
export function dockerContainers(cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise<Systeminformation.DockerContainerData[]>;
|
|
1019
1025
|
export function dockerContainerStats(id?: string, cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise<Systeminformation.DockerContainerStatsData[]>;
|
|
1026
|
+
export function dockerContainerStats(cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise<Systeminformation.DockerContainerStatsData[]>;
|
|
1020
1027
|
export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise<Systeminformation.DockerContainerProcessData[]>;
|
|
1028
|
+
export function dockerContainerProcesses(cb?: (data: any) => any): Promise<Systeminformation.DockerContainerProcessData[]>;
|
|
1021
1029
|
export function dockerVolumes(cb?: (data: Systeminformation.DockerVolumeData[]) => any): Promise<Systeminformation.DockerVolumeData[]>;
|
|
1022
1030
|
export function dockerAll(cb?: (data: any) => any): Promise<any>;
|
|
1023
1031
|
|
package/lib/network.js
CHANGED
|
@@ -348,7 +348,7 @@ function getWindowsWirelessIfaceSSID(interfaceName) {
|
|
|
348
348
|
try {
|
|
349
349
|
const result = execSync(`netsh wlan show interface name="${interfaceName}" | findstr "SSID"`, util.execOptsWin);
|
|
350
350
|
const SSID = result.split('\r\n').shift();
|
|
351
|
-
const parseSSID = SSID.split(':').pop();
|
|
351
|
+
const parseSSID = SSID.split(':').pop().trim();
|
|
352
352
|
return parseSSID;
|
|
353
353
|
} catch (error) {
|
|
354
354
|
return 'Unknown';
|
|
@@ -400,8 +400,18 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) {
|
|
|
400
400
|
try {
|
|
401
401
|
const SSID = getWindowsWirelessIfaceSSID(iface);
|
|
402
402
|
if (SSID !== 'Unknown') {
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
|
|
404
|
+
let ifaceSanitized = '';
|
|
405
|
+
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(SSID);
|
|
406
|
+
const l = util.mathMin(s.length, 2000);
|
|
407
|
+
|
|
408
|
+
for (let i = 0; i <= l; i++) {
|
|
409
|
+
if (s[i] !== undefined) {
|
|
410
|
+
ifaceSanitized = ifaceSanitized + s[i];
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
i8021xState = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "802.1X"`, util.execOptsWin);
|
|
414
|
+
i8021xProtocol = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "EAP"`, util.execOptsWin);
|
|
405
415
|
}
|
|
406
416
|
|
|
407
417
|
if (i8021xState.includes(':') && i8021xProtocol.includes(':')) {
|
package/lib/util.js
CHANGED
|
@@ -1020,9 +1020,9 @@ function decodePiCpuinfo(lines) {
|
|
|
1020
1020
|
'15': 'CM4S',
|
|
1021
1021
|
'16': 'Internal use only',
|
|
1022
1022
|
'17': '5',
|
|
1023
|
-
'18': 'CM5
|
|
1024
|
-
'19': '
|
|
1025
|
-
'1a': 'CM5
|
|
1023
|
+
'18': 'CM5',
|
|
1024
|
+
'19': '500',
|
|
1025
|
+
'1a': 'CM5 Lite',
|
|
1026
1026
|
};
|
|
1027
1027
|
|
|
1028
1028
|
const revisionCode = getValue(lines, 'revision', ':', true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.23.
|
|
3
|
+
"version": "5.23.9",
|
|
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)",
|