systeminformation 6.0.0-beta.16 → 6.0.0-beta.17
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/dist/common/mappings.js
CHANGED
|
@@ -1676,6 +1676,38 @@ const graphicsMetalVersion = (id) => {
|
|
|
1676
1676
|
exports.graphicsMetalVersion = graphicsMetalVersion;
|
|
1677
1677
|
const getAppleModel = (key) => {
|
|
1678
1678
|
const appleModelIds = [
|
|
1679
|
+
{
|
|
1680
|
+
key: 'Mac18,5',
|
|
1681
|
+
name: 'Mac mini',
|
|
1682
|
+
size: '',
|
|
1683
|
+
processor: 'M6',
|
|
1684
|
+
year: '2026',
|
|
1685
|
+
additional: ''
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
key: 'Mac17,16',
|
|
1689
|
+
name: 'Mac mini',
|
|
1690
|
+
size: '',
|
|
1691
|
+
processor: 'M5 Pro',
|
|
1692
|
+
year: '2026',
|
|
1693
|
+
additional: ''
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
key: 'Mac17,15',
|
|
1697
|
+
name: 'Mac Studio',
|
|
1698
|
+
size: '',
|
|
1699
|
+
processor: 'M5 Ultra',
|
|
1700
|
+
year: '2026',
|
|
1701
|
+
additional: ''
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
key: 'Mac17,14',
|
|
1705
|
+
name: 'Mac Studio',
|
|
1706
|
+
size: '',
|
|
1707
|
+
processor: 'M5 Max',
|
|
1708
|
+
year: '2026',
|
|
1709
|
+
additional: ''
|
|
1710
|
+
},
|
|
1679
1711
|
{
|
|
1680
1712
|
key: 'Mac17,9',
|
|
1681
1713
|
name: 'MacBook Pro',
|
|
@@ -313,14 +313,17 @@ const networkInterfaces = async (defaultString = '', rescan = true) => {
|
|
|
313
313
|
const ifaceDevName = dev.split(':')[0].trim();
|
|
314
314
|
const ifaceSanitized = (0, security_1.sanitizeString)(ifaceDevName, true);
|
|
315
315
|
let lines = [];
|
|
316
|
+
let hasDevice = true;
|
|
316
317
|
try {
|
|
317
318
|
const safe = (0, security_1.isSafePathSegment)(ifaceSanitized);
|
|
318
319
|
const connectionName = getLinuxIfaceConnectionName(deviceStatus, ifaceSanitized);
|
|
319
|
-
const [sysfsLines, iwOut, details] = await Promise.all([
|
|
320
|
+
const [sysfsLines, iwOut, details, device] = await Promise.all([
|
|
320
321
|
safe ? (0, files_1.readSysfsMany)(`/sys/class/net/${ifaceSanitized}`, ['address', 'carrier_changes', 'duplex', 'mtu', 'operstate', 'speed', 'type']) : [],
|
|
321
322
|
safe ? (0, files_1.fileExists)(`/sys/class/net/${ifaceSanitized}/phy80211`).then((wifi) => (wifi ? (0, exec_1.execSecure)('iw', ['dev', ifaceSanitized, 'link'], EXEC_OPTS) : '')) : '',
|
|
322
|
-
getLinuxConnectionDetails(connectionName)
|
|
323
|
+
getLinuxConnectionDetails(connectionName),
|
|
324
|
+
safe ? (0, files_1.fileExists)(`/sys/class/net/${ifaceSanitized}/device`) : true
|
|
323
325
|
]);
|
|
326
|
+
hasDevice = device;
|
|
324
327
|
lines = sysfsLines;
|
|
325
328
|
lines.push(`wireless: ${wirelessLines.find((line) => line.indexOf(ifaceSanitized) >= 0) || ''}`);
|
|
326
329
|
lines.push(...iwOut.split('\n').filter((line) => line.indexOf('bitrate') >= 0).map((line) => line.trim()));
|
|
@@ -352,7 +355,7 @@ const networkInterfaces = async (defaultString = '', rescan = true) => {
|
|
|
352
355
|
if (dev.toLowerCase().indexOf('loopback') > -1 || ifaceName.toLowerCase().indexOf('loopback') > -1) {
|
|
353
356
|
internal = true;
|
|
354
357
|
}
|
|
355
|
-
const virtual = internal ? false : (0, network_1.testVirtualNic)(dev, ifaceName, mac);
|
|
358
|
+
const virtual = internal ? false : !hasDevice || (0, network_1.testVirtualNic)(dev, ifaceName, mac);
|
|
356
359
|
return {
|
|
357
360
|
...defaults_1.initNetworkInterface,
|
|
358
361
|
iface: ifaceSanitized,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.17",
|
|
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)",
|