systeminformation 5.23.6 → 5.23.8
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/network.js +13 -3
- package/lib/util.js +3 -3
- package/package.json +1 -1
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.8",
|
|
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)",
|