osInfo() added macOS Sonoma code name (mac OS)

This commit is contained in:
Sebastian Hildebrandt 2023-07-12 21:24:56 +02:00
parent f1eb82d4b7
commit adb939ad68
5 changed files with 11 additions and 2 deletions

View File

@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.18.7 | 2023-06-28 | `osInfo()` added macOS Sonoma code name (mac OS) |
| 5.18.6 | 2023-06-28 | `graphics()` fixed catched errors (mac OS) |
| 5.18.5 | 2023-06-26 | `cpu()` fixed parsing (mac OS) |
| 5.18.4 | 2023-06-22 | `graphics()` fixed parsing (mac OS) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.18.7</th>
<td>2023-07-12</td>
<td><span class="code">osInfo()</span> added macOS Sonoma code name (mac OS)</td>
</tr>
<tr>
<th scope="row">5.18.6</th>
<td>2023-06-28</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.18.6</span></div>
<div class="version">New Version: <span id="version">5.18.7</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
@ -212,7 +212,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">622</div>
<div class="numbers">632</div>
<div class="title">Dependents</div>
</div>
</div>

2
lib/index.d.ts vendored
View File

@ -2,6 +2,8 @@
// Project: https://github.com/sebhildebrandt/systeminformation
// Definitions by: sebhildebrandt <https://github.com/sebhildebrandt>
/// <reference types="node" />
export namespace Systeminformation {
// 1. General

View File

@ -314,6 +314,7 @@ function osInfo(callback) {
result.codename = (result.release.startsWith('11.') ? 'macOS Big Sur' : result.codename);
result.codename = (result.release.startsWith('12.') ? 'macOS Monterey' : result.codename);
result.codename = (result.release.startsWith('13.') ? 'macOS Ventura' : result.codename);
result.codename = (result.release.startsWith('14.') ? 'macOS Sonoma' : result.codename);
result.uefi = true;
result.codepage = util.getCodepage();
if (callback) {