systeminformation 5.27.2 → 5.27.4

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.
Files changed (2) hide show
  1. package/lib/osinfo.js +4 -2
  2. package/package.json +1 -1
package/lib/osinfo.js CHANGED
@@ -345,6 +345,8 @@ function osInfo(callback) {
345
345
  result.codename = (result.release.startsWith('13.') ? 'Ventura' : result.codename);
346
346
  result.codename = (result.release.startsWith('14.') ? 'Sonoma' : result.codename);
347
347
  result.codename = (result.release.startsWith('15.') ? 'Sequoia' : result.codename);
348
+ result.codename = (result.release.startsWith('16.') ? 'Tahoe' : result.codename);
349
+ result.codename = (result.release.startsWith('26.') ? 'Tahoe' : result.codename);
348
350
  result.uefi = true;
349
351
  result.codepage = util.getCodepage();
350
352
  if (callback) {
@@ -1238,8 +1240,8 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
1238
1240
  if (_freebsd || _openbsd || _netbsd) {
1239
1241
  exec('sysctl -i kern.hostid kern.hostuuid', function (error, stdout) {
1240
1242
  const lines = stdout.toString().split('\n');
1241
- result.os = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
1242
- result.hardware = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
1243
+ result.hardware = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
1244
+ result.os = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
1243
1245
  if (result.os.indexOf('unknown') >= 0) { result.os = ''; }
1244
1246
  if (result.hardware.indexOf('unknown') >= 0) { result.hardware = ''; }
1245
1247
  if (callback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.27.2",
3
+ "version": "5.27.4",
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)",