systeminformation 5.27.10 → 5.27.12
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 +12 -2
- package/lib/util.js +21 -5
- package/package.json +2 -2
package/lib/network.js
CHANGED
|
@@ -1563,7 +1563,7 @@ function networkConnections(callback) {
|
|
|
1563
1563
|
lines.shift();
|
|
1564
1564
|
let pidPos = 8;
|
|
1565
1565
|
if (lines.length > 1 && lines[0].indexOf('pid') > 0) {
|
|
1566
|
-
const header = (lines.shift() || '').replace(/ Address/g, '_Address').replace(/ +/g, ' ').split(' ');
|
|
1566
|
+
const header = (lines.shift() || '').replace(/ Address/g, '_Address').replace(/process:/g, "").replace(/ +/g, ' ').split(' ');
|
|
1567
1567
|
pidPos = header.indexOf('pid');
|
|
1568
1568
|
}
|
|
1569
1569
|
lines.forEach(function (line) {
|
|
@@ -1587,7 +1587,17 @@ function networkConnections(callback) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
const hasState = states.indexOf(line[5]) >= 0;
|
|
1589
1589
|
let connstate = hasState ? line[5] : 'UNKNOWN';
|
|
1590
|
-
let
|
|
1590
|
+
let pidField = "";
|
|
1591
|
+
if (line[line.length - 9].indexOf(":") >= 0) {
|
|
1592
|
+
pidField = line[line.length - 9].split(":")[1];
|
|
1593
|
+
} else {
|
|
1594
|
+
pidField = line[pidPos + (hasState ? 0 : -1)];
|
|
1595
|
+
|
|
1596
|
+
if (pidField.indexOf(":") >= 0) {
|
|
1597
|
+
pidField = pidField.split(":")[1];
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
let pid = parseInt(pidField, 10);
|
|
1591
1601
|
if (connstate) {
|
|
1592
1602
|
result.push({
|
|
1593
1603
|
protocol: line[0],
|
package/lib/util.js
CHANGED
|
@@ -1053,7 +1053,7 @@ function decodePiCpuinfo(lines) {
|
|
|
1053
1053
|
'16': 'Internal use only',
|
|
1054
1054
|
'17': '5',
|
|
1055
1055
|
'18': 'CM5',
|
|
1056
|
-
'19': '500',
|
|
1056
|
+
'19': '500/500+',
|
|
1057
1057
|
'1a': 'CM5 Lite',
|
|
1058
1058
|
};
|
|
1059
1059
|
|
|
@@ -2051,7 +2051,7 @@ function getAppleModel(key) {
|
|
|
2051
2051
|
key: 'Mac14,13',
|
|
2052
2052
|
name: 'Mac Studio',
|
|
2053
2053
|
size: '',
|
|
2054
|
-
processor: '',
|
|
2054
|
+
processor: 'M2 Max',
|
|
2055
2055
|
year: '2023',
|
|
2056
2056
|
additional: ''
|
|
2057
2057
|
},
|
|
@@ -2059,15 +2059,31 @@ function getAppleModel(key) {
|
|
|
2059
2059
|
key: 'Mac14,14',
|
|
2060
2060
|
name: 'Mac Studio',
|
|
2061
2061
|
size: '',
|
|
2062
|
-
processor: '',
|
|
2062
|
+
processor: 'M2 Ultra',
|
|
2063
2063
|
year: '2023',
|
|
2064
2064
|
additional: ''
|
|
2065
2065
|
},
|
|
2066
|
+
{
|
|
2067
|
+
key: 'Mac15,14',
|
|
2068
|
+
name: 'Mac Studio',
|
|
2069
|
+
size: '',
|
|
2070
|
+
processor: 'M3 Ultra',
|
|
2071
|
+
year: '2025',
|
|
2072
|
+
additional: ''
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
key: 'Mac16,9',
|
|
2076
|
+
name: 'Mac Studio',
|
|
2077
|
+
size: '',
|
|
2078
|
+
processor: 'M4 Max',
|
|
2079
|
+
year: '2025',
|
|
2080
|
+
additional: ''
|
|
2081
|
+
},
|
|
2066
2082
|
{
|
|
2067
2083
|
key: 'Mac13,1',
|
|
2068
2084
|
name: 'Mac Studio',
|
|
2069
2085
|
size: '',
|
|
2070
|
-
processor: '',
|
|
2086
|
+
processor: 'M1 Max',
|
|
2071
2087
|
year: '2022',
|
|
2072
2088
|
additional: ''
|
|
2073
2089
|
},
|
|
@@ -2075,7 +2091,7 @@ function getAppleModel(key) {
|
|
|
2075
2091
|
key: 'Mac13,2',
|
|
2076
2092
|
name: 'Mac Studio',
|
|
2077
2093
|
size: '',
|
|
2078
|
-
processor: '',
|
|
2094
|
+
processor: 'M1 Ultra',
|
|
2079
2095
|
year: '2022',
|
|
2080
2096
|
additional: ''
|
|
2081
2097
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.12",
|
|
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)",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
],
|
|
80
80
|
"repository": {
|
|
81
81
|
"type": "git",
|
|
82
|
-
"url": "https://github.com/sebhildebrandt/systeminformation.git"
|
|
82
|
+
"url": "git+https://github.com/sebhildebrandt/systeminformation.git"
|
|
83
83
|
},
|
|
84
84
|
"funding": {
|
|
85
85
|
"type": "Buy me a coffee",
|