From 67148f076f96288f5ff149f558e7eff068592568 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 31 Dec 2024 13:02:53 +0100 Subject: [PATCH] versions() fixed bun and deno --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/osinfo.js | 4 ++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9359291..28ff10c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.24.1 | 2024-12-31 | `versions()` fixed deno and bun | | 5.24.0 | 2024-12-31 | `versions()` added deno and bun | | 5.23.25 | 2024-12-30 | `system()` adapted model and version (macOS) | | 5.23.24 | 2024-12-29 | `osInfo()` improved logofile detection | diff --git a/docs/history.html b/docs/history.html index 0a287ab..03ef5c4 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.24.1 + 2024-12-31 + versions() fixed deno and bun + 5.24.0 2024-12-31 diff --git a/docs/index.html b/docs/index.html index c7728ea..7eb02b3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.24.0
+
New Version: 5.24.1
diff --git a/lib/osinfo.js b/lib/osinfo.js index 443344d..ddb804a 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -1033,7 +1033,7 @@ function versions(apps, callback) { exec('bun -v', function (error, stdout) { if (!error) { const line = stdout.toString().split('\n')[0].trim(); - appsObj.versions.fish = line; + appsObj.versions.bun = line; } functionProcessed(); }); @@ -1044,7 +1044,7 @@ function versions(apps, callback) { const line = stdout.toString().split('\n')[0].trim(); const parts = line.split(' '); if (parts.length > 1) { - appsObj.versions.fish = parts[1]; + appsObj.versions.deno = parts[1]; } } functionProcessed();