systeminformation 5.33.4 → 5.33.5
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 +2 -1
- package/lib/osinfo.js +1 -0
- package/lib/util.js +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,8 +84,9 @@ If you want to run the whole test locally on your machines (without writing any
|
|
|
84
84
|
git clone -b v6 https://github.com/sebhildebrandt/systeminformation.git
|
|
85
85
|
cd systeminformation
|
|
86
86
|
|
|
87
|
-
# install dev dependencies
|
|
87
|
+
# install dev dependencies and build
|
|
88
88
|
npm ci
|
|
89
|
+
npm run build
|
|
89
90
|
|
|
90
91
|
# run tests
|
|
91
92
|
npm run ci # for the whole test run
|
package/lib/osinfo.js
CHANGED
|
@@ -336,6 +336,7 @@ function osInfo(callback) {
|
|
|
336
336
|
result.codename = result.release.startsWith('14.') ? 'Sonoma' : result.codename;
|
|
337
337
|
result.codename = result.release.startsWith('15.') ? 'Sequoia' : result.codename;
|
|
338
338
|
result.codename = result.release.startsWith('26.') ? 'Tahoe' : result.codename;
|
|
339
|
+
result.codename = result.release.startsWith('27.') ? 'Golden Gate' : result.codename;
|
|
339
340
|
result.uefi = true;
|
|
340
341
|
result.codepage = util.getCodepage();
|
|
341
342
|
if (callback) {
|
package/lib/util.js
CHANGED
|
@@ -202,7 +202,14 @@ function parseTime(t, pmDesignator) {
|
|
|
202
202
|
parts[1] += parts[2];
|
|
203
203
|
}
|
|
204
204
|
const p1 = (parts[1] || '').toLowerCase();
|
|
205
|
-
let isPM =
|
|
205
|
+
let isPM =
|
|
206
|
+
p1.indexOf('pm') > -1 ||
|
|
207
|
+
p1.indexOf('p.m.') > -1 ||
|
|
208
|
+
p1.indexOf('p. m.') > -1 ||
|
|
209
|
+
p1.indexOf('n') > -1 ||
|
|
210
|
+
p1.indexOf('ch') > -1 ||
|
|
211
|
+
p1.indexOf('ös') > -1 ||
|
|
212
|
+
(pmDesignator && p1.indexOf(pmDesignator) > -1);
|
|
206
213
|
hour = parseInt(parts[0], 10);
|
|
207
214
|
min = parseInt(parts[1], 10);
|
|
208
215
|
hour = isPM && hour < 12 ? hour + 12 : hour;
|
|
@@ -1430,6 +1437,8 @@ function semverCompare(v1, v2) {
|
|
|
1430
1437
|
return res;
|
|
1431
1438
|
}
|
|
1432
1439
|
|
|
1440
|
+
// Mac model name and serial number / model identifier
|
|
1441
|
+
|
|
1433
1442
|
function getAppleModel(key) {
|
|
1434
1443
|
const appleModelIds = [
|
|
1435
1444
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.33.
|
|
3
|
+
"version": "5.33.5",
|
|
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)",
|