systeminformation 5.33.1 → 5.33.2

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
@@ -31,8 +31,8 @@
31
31
  ## The Systeminformation Project
32
32
 
33
33
  This is amazing. Started as a small project just for myself, it now has > 20,000
34
- lines of code, > 750 versions published, up to 30 mio downloads per month, > 600
35
- mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
34
+ lines of code, > 750 versions published, up to 50 mio downloads per month, > 700
35
+ mio downloads overall. Top 5 NPM ranking for backend packages. Thank you to all
36
36
  who contributed to this project!
37
37
 
38
38
  > **Upcoming Version 6** ⭐️⭐️⭐️
package/lib/util.js CHANGED
@@ -405,9 +405,12 @@ function powerShellStart() {
405
405
  _psPersistent = true;
406
406
  _psChild.stdout.on('data', (data) => {
407
407
  _psResult = _psResult + data.toString('utf8');
408
- if (data.indexOf(_psCmdSeperator) >= 0) {
409
- powerShellProceedResults(_psResult);
410
- _psResult = '';
408
+ let sepIndex = _psResult.indexOf(_psCmdSeperator);
409
+ while (sepIndex >= 0) {
410
+ const end = sepIndex + _psCmdSeperator.length;
411
+ powerShellProceedResults(_psResult.slice(0, end));
412
+ _psResult = _psResult.slice(end);
413
+ sepIndex = _psResult.indexOf(_psCmdSeperator);
411
414
  }
412
415
  });
413
416
  _psChild.stderr.on('data', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.33.1",
3
+ "version": "5.33.2",
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)",