systeminformation 5.27.9 → 5.27.11
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/README.md +1 -1
- package/lib/util.js +30 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
## The Systeminformation Project
|
|
32
32
|
|
|
33
33
|
This is amazing. Started as a small project just for myself, it now has > 18,000
|
|
34
|
-
lines of code, > 700 versions published, up to
|
|
34
|
+
lines of code, > 700 versions published, up to 10 mio downloads per month, > 400
|
|
35
35
|
mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
|
|
36
36
|
who contributed to this project!
|
|
37
37
|
|
package/lib/util.js
CHANGED
|
@@ -490,7 +490,7 @@ function powerShell(cmd) {
|
|
|
490
490
|
return new Promise((resolve) => {
|
|
491
491
|
process.nextTick(() => {
|
|
492
492
|
try {
|
|
493
|
-
const child = spawn(_powerShell, ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-
|
|
493
|
+
const child = spawn(_powerShell, ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', cmd], {
|
|
494
494
|
stdio: 'pipe',
|
|
495
495
|
windowsHide: true,
|
|
496
496
|
maxBuffer: 1024 * 20000,
|
|
@@ -520,14 +520,14 @@ function powerShell(cmd) {
|
|
|
520
520
|
child.kill();
|
|
521
521
|
resolve(result);
|
|
522
522
|
});
|
|
523
|
-
try {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
} catch (e) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
523
|
+
// try {
|
|
524
|
+
// child.stdin.write(_psToUTF8 + cmd + os.EOL);
|
|
525
|
+
// child.stdin.write('exit' + os.EOL);
|
|
526
|
+
// child.stdin.end();
|
|
527
|
+
// } catch (e) {
|
|
528
|
+
// child.kill();
|
|
529
|
+
// resolve(result);
|
|
530
|
+
// }
|
|
531
531
|
} else {
|
|
532
532
|
resolve(result);
|
|
533
533
|
}
|
|
@@ -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.11",
|
|
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",
|