systeminformation 5.11.0 → 5.11.1

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 CHANGED
@@ -30,7 +30,7 @@
30
30
  [![Sponsoring][sponsor-badge]][sponsor-url]
31
31
  [![MIT license][license-img]][license-url]
32
32
 
33
- This is amazing. Started as a small project just for myself, it now has > 10,000 lines of code, > 450 versions published, up to 4 mio downloads per month, > 50 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
33
+ This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 versions published, up to 4 mio downloads per month, > 60 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
34
34
 
35
35
  ## New Version 5.0
36
36
 
@@ -919,6 +919,8 @@ e.g. on DEBIAN based systems by running `sudo apt-get install lm-sensors`
919
919
 
920
920
  To be able to detect S.M.A.R.T. status on Linux you need to install `smartmontools`. On DEBIAN based Linux distributions you can install it by running `sudo apt-get install smartmontools`
921
921
 
922
+ #### Windows Encoding Issues
923
+ I now reimplemented all windows functions to avoid encoding problems (special chacarters). And as Windows 11 now droppend `wmic` support, I had to move completely to `powershell`. Be sure that powershell version 5+ is installed on your machine. On older Windows versions (7, 8) you might still see encoding problems due to the old powershell version.
922
924
  ## *: Additional Notes
923
925
 
924
926
  In `fsStats()`, `disksIO()` and `networkStats()` the results / sec. values (rx_sec, IOPS, ...) are calculated correctly beginning
package/lib/osinfo.js CHANGED
@@ -167,7 +167,7 @@ function getLogoFile(distro) {
167
167
 
168
168
  function getFQDN() {
169
169
  let fqdn = os.hostname;
170
- if (_linux || _darwin || _freebsd || _openbsd || _netbsd) {
170
+ if (_linux || _darwin) {
171
171
  try {
172
172
  const stdout = execSync('hostname -f');
173
173
  fqdn = stdout.toString().split(os.EOL)[0];
@@ -175,6 +175,14 @@ function getFQDN() {
175
175
  util.noop();
176
176
  }
177
177
  }
178
+ if (_freebsd || _openbsd || _netbsd) {
179
+ try {
180
+ const stdout = execSync('hostname');
181
+ fqdn = stdout.toString().split(os.EOL)[0];
182
+ } catch (e) {
183
+ util.noop();
184
+ }
185
+ }
178
186
  if (_windows) {
179
187
  try {
180
188
  const stdout = execSync('echo %COMPUTERNAME%.%USERDNSDOMAIN%', util.execOptsWin);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.11.0",
3
+ "version": "5.11.1",
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)",