systeminformation 5.21.19 → 5.21.20

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.
Files changed (2) hide show
  1. package/lib/util.js +5 -5
  2. package/package.json +1 -1
package/lib/util.js CHANGED
@@ -423,10 +423,10 @@ function powerShellRelease() {
423
423
 
424
424
  function powerShell(cmd) {
425
425
 
426
- const pattern = [
427
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
428
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
429
- ].join('|');
426
+ /// const pattern = [
427
+ /// '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
428
+ /// '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
429
+ /// ].join('|');
430
430
 
431
431
  if (_psPersistent) {
432
432
  const id = Math.random().toString(36).substring(2, 12);
@@ -472,7 +472,7 @@ function powerShell(cmd) {
472
472
  }
473
473
  if (child && child.pid) {
474
474
  child.stdout.on('data', function (data) {
475
- result = result + data.toString('utf8').replace(pattern, '');
475
+ result = result + data.toString('utf8');
476
476
  });
477
477
  child.stderr.on('data', function () {
478
478
  child.kill();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.21.19",
3
+ "version": "5.21.20",
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)",