systeminformation 5.17.0 → 5.17.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/lib/graphics.js CHANGED
@@ -689,11 +689,11 @@ function graphics(callback) {
689
689
  const current = obj['DisplayAnyUserSets'][0];
690
690
  let i = 0;
691
691
  current.forEach((o) => {
692
- if ('LimitsOriginX' in o && result.displays && result.displays[i]) {
693
- result.displays[i].positionX = o['LimitsOriginX'];
692
+ if ('OriginX' in o && result.displays && result.displays[i]) {
693
+ result.displays[i].positionX = o['OriginX'];
694
694
  }
695
- if ('LimitsOriginY' in o && result.displays && result.displays[i]) {
696
- result.displays[i].positionY = o['LimitsOriginY'];
695
+ if ('OriginY' in o && result.displays && result.displays[i]) {
696
+ result.displays[i].positionY = o['OriginY'];
697
697
  }
698
698
  if (o['Mode'] && 'BitsPerPixel' in o['Mode'] && result.displays && result.displays[i]) {
699
699
  result.displays[i].pixelDepth = o['Mode']['BitsPerPixel'];
package/lib/util.js CHANGED
@@ -414,7 +414,7 @@ function powerShellRelease() {
414
414
  _psPersistent = false;
415
415
  }
416
416
  } catch (e) {
417
- _psChild.kill();
417
+ if (_psChild) { _psChild.kill(); }
418
418
  }
419
419
  _psChild = null;
420
420
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.17.0",
3
+ "version": "5.17.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)",