systeminformation 5.24.5 → 5.24.6

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
@@ -1186,7 +1186,7 @@ All other trademarks are the property of their respective owners.
1186
1186
  [daviddm-url]: https://david-dm.org/sebhildebrandt/systeminformation
1187
1187
  [issues-img]: https://img.shields.io/github/issues/sebhildebrandt/systeminformation.svg?style=flat-square
1188
1188
  [issues-url]: https://github.com/sebhildebrandt/systeminformation/issues
1189
- [closed-issues-img]: https://img.shields.io/github/issues-closed-raw/sebhildebrandt/systeminformation.svg?style=flat-square&color=brightgreen
1189
+ [closed-issues-img]: https://img.shields.io/github/issues-search?query=repo%3Asebhildebrandt/systeminformation+is%3Aclosed&style=flat-square&color=brightgreen&label=Issues+closed
1190
1190
  [closed-issues-url]: https://github.com/sebhildebrandt/systeminformation/issues?q=is%3Aissue+is%3Aclosed
1191
1191
  [new-issue]: https://github.com/sebhildebrandt/systeminformation/issues/new/choose
1192
1192
  [mmon-npm-url]: https://npmjs.org/package/mmon
package/lib/cpu.js CHANGED
@@ -737,6 +737,7 @@ function getCpu() {
737
737
  }
738
738
  modelline = util.getValue(lines, 'model name') || modelline;
739
739
  modelline = util.getValue(lines, 'bios model name') || modelline;
740
+ modelline = util.cleanString(modelline);
740
741
  const modellineParts = modelline.split('@');
741
742
  result.brand = modellineParts[0].trim();
742
743
  result.speed = modellineParts[1] ? parseFloat(modellineParts[1].trim()) : 0;
package/lib/util.js CHANGED
@@ -2535,6 +2535,9 @@ function checkWebsite(url, timeout = 5000) {
2535
2535
  });
2536
2536
  };
2537
2537
 
2538
+ function cleanString(str) {
2539
+ return str.replace(/To Be Filled By O.E.M./g, '');
2540
+ }
2538
2541
  function noop() { }
2539
2542
 
2540
2543
  exports.toInt = toInt;
@@ -2591,3 +2594,4 @@ exports.getFilesInPath = getFilesInPath;
2591
2594
  exports.semverCompare = semverCompare;
2592
2595
  exports.getAppleModel = getAppleModel;
2593
2596
  exports.checkWebsite = checkWebsite;
2597
+ exports.cleanString = cleanString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.24.5",
3
+ "version": "5.24.6",
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)",