systeminformation 5.23.20 → 5.23.22
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/memory.js +4 -3
- package/lib/network.js +1 -1
- package/lib/osinfo.js +3 -10
- package/lib/wifi.js +1 -1
- package/package.json +1 -1
package/lib/memory.js
CHANGED
|
@@ -498,15 +498,16 @@ function memLayout(callback) {
|
|
|
498
498
|
const lines = stdout.toString().split('\n');
|
|
499
499
|
const size = parseInt(util.getValue(lines, ' Memory:'));
|
|
500
500
|
const type = util.getValue(lines, ' Type:');
|
|
501
|
+
const manufacturerId = util.getValue(lines, ' Manufacturer:');
|
|
501
502
|
if (size && type) {
|
|
502
503
|
result.push({
|
|
503
504
|
size: size * 1024 * 1024 * 1024,
|
|
504
505
|
bank: '0',
|
|
505
506
|
type,
|
|
506
507
|
ecc: false,
|
|
507
|
-
clockSpeed:
|
|
508
|
-
formFactor: '',
|
|
509
|
-
manufacturer:
|
|
508
|
+
clockSpeed: null,
|
|
509
|
+
formFactor: 'SOC',
|
|
510
|
+
manufacturer: getManufacturerDarwin(manufacturerId),
|
|
510
511
|
partNum: '',
|
|
511
512
|
serialNum: '',
|
|
512
513
|
voltageConfigured: null,
|
package/lib/network.js
CHANGED
|
@@ -403,7 +403,7 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) {
|
|
|
403
403
|
|
|
404
404
|
let ifaceSanitized = '';
|
|
405
405
|
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(SSID);
|
|
406
|
-
const l = util.mathMin(s.length,
|
|
406
|
+
const l = util.mathMin(s.length, 32);
|
|
407
407
|
|
|
408
408
|
for (let i = 0; i <= l; i++) {
|
|
409
409
|
if (s[i] !== undefined) {
|
package/lib/osinfo.js
CHANGED
|
@@ -190,17 +190,10 @@ function getFQDN() {
|
|
|
190
190
|
let fqdn = os.hostname;
|
|
191
191
|
if (_linux || _darwin) {
|
|
192
192
|
try {
|
|
193
|
-
const stdout = execSync('
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
fqdn = json['StaticHostname'];
|
|
193
|
+
const stdout = execSync('hostname -f 2>/dev/null', util.execOptsLinux);
|
|
194
|
+
fqdn = stdout.toString().split(os.EOL)[0];
|
|
197
195
|
} catch (e) {
|
|
198
|
-
|
|
199
|
-
const stdout = execSync('hostname -f 2>/dev/null', util.execOptsLinux);
|
|
200
|
-
fqdn = stdout.toString().split(os.EOL)[0];
|
|
201
|
-
} catch (e) {
|
|
202
|
-
util.noop();
|
|
203
|
-
}
|
|
196
|
+
util.noop();
|
|
204
197
|
}
|
|
205
198
|
}
|
|
206
199
|
if (_freebsd || _openbsd || _netbsd) {
|
package/lib/wifi.js
CHANGED
|
@@ -612,7 +612,7 @@ function wifiConnections(callback) {
|
|
|
612
612
|
const network = networkList.filter(nw => nw.ssid === ssid);
|
|
613
613
|
let ssidSanitized = '';
|
|
614
614
|
const t = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(ssid, true);
|
|
615
|
-
const l = util.mathMin(t.length,
|
|
615
|
+
const l = util.mathMin(t.length, 32);
|
|
616
616
|
for (let i = 0; i <= l; i++) {
|
|
617
617
|
if (t[i] !== undefined) {
|
|
618
618
|
ssidSanitized = ssidSanitized + t[i];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.23.
|
|
3
|
+
"version": "5.23.22",
|
|
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)",
|