diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5161dec..575819b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
+| 5.27.1 | 2025-05-24 | `wifiConnections()`, `wifiNetworks()` fix security mode parsing (macOS) |
| 5.27.0 | 2025-05-24 | `mem()` added reclaimable (Linux, macOS) |
| 5.26.2 | 2025-05-23 | `memLayout()` manufacturers reference updated |
| 5.26.1 | 2025-05-22 | `inetChecksite()` fix timeout |
diff --git a/docs/history.html b/docs/history.html
index f768c89..b87972d 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -57,6 +57,11 @@
+
+ | 5.27.1 |
+ 2024-05-25 |
+ wifiNetworks() fix security mode parsing (macOS) |
+
| 5.27.0 |
2024-05-24 |
diff --git a/docs/index.html b/docs/index.html
index 5a9aaec..bfe945c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- 3New Version: 5.27.0
+ 3New Version: 5.27.1
@@ -204,7 +204,7 @@
-
18,452
+
18,504
Lines of code
@@ -212,7 +212,7 @@
Downloads last month
diff --git a/lib/cpu.js b/lib/cpu.js
index 602e8a2..dfd6e50 100644
--- a/lib/cpu.js
+++ b/lib/cpu.js
@@ -571,6 +571,21 @@ const socketTypes = {
70: 'LGA2422',
71: 'LGA5773',
72: 'BGA5773',
+ 73: 'AM5',
+ 74: 'SP5',
+ 75: 'SP6',
+ 76: 'BGA883',
+ 77: 'BGA1190',
+ 78: 'BGA4129',
+ 79: 'LGA4710',
+ 80: 'LGA7529',
+ 81: 'BGA1964',
+ 82: 'BGA1792',
+ 83: 'BGA2049',
+ 84: 'BGA2551',
+ 85: 'LGA1851',
+ 86: 'BGA2114',
+ 87: 'BGA2833'
};
const socketTypesByName = {
diff --git a/lib/util.js b/lib/util.js
index f90ab17..2b2b6f3 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -635,6 +635,10 @@ function smartMonToolsInstalled() {
return _smartMonToolsInstalled;
}
+// reference values: https://elinux.org/RPi_HardwareHistory
+// https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
+// https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#hardware-revision-codes
+
function isRaspberry(cpuinfo) {
const PI_MODEL_NO = [
'BCM2708',
diff --git a/lib/wifi.js b/lib/wifi.js
index f250585..4b62185 100644
--- a/lib/wifi.js
+++ b/lib/wifi.js
@@ -405,7 +405,7 @@ function parseWifiDarwin(wifiStr) {
wifiObj.forEach(function (wifiItem) {
let security = [];
- const sm = wifiItem.spairport_security_mode;
+ const sm = wifiItem.spairport_security_mode || '';
if (sm === 'spairport_security_mode_wep') {
security.push('WEP');
} else if (sm === 'spairport_security_mode_wpa2_personal') {
@@ -666,7 +666,7 @@ function wifiConnections(callback) {
const signalLevel = airportWifiObj.spairport_signal_noise || null;
let security = [];
- const sm = airportWifiObj.spairport_security_mode;
+ const sm = airportWifiObj.spairport_security_mode || '';
if (sm === 'spairport_security_mode_wep') {
security.push('WEP');
} else if (sm === 'spairport_security_mode_wpa2_personal') {
diff --git a/test/si.js b/test/si.js
index 2290735..09bca2c 100644
--- a/test/si.js
+++ b/test/si.js
@@ -69,6 +69,11 @@ function test(f) {
});
}
+if (process.argv.length < 3) {
+ console.log("error - a test key is required");
+ process.exit(1);
+}
+
const key = process.argv[2];
test(key).then((data) => {