systeminformation 5.9.8 → 5.9.9

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
@@ -1005,7 +1005,7 @@ function graphics(callback) {
1005
1005
 
1006
1006
  let linesConnection = tsections[i].split('\n');
1007
1007
  const bitsPerPixel = util.getValue(linesScreen, 'BitsPerPixel');
1008
- const bounds = util.getValue(linesScreen, 'Bounds').replace('{', '').replace('}', '').split(',');
1008
+ const bounds = util.getValue(linesScreen, 'Bounds').replace('{', '').replace('}', '').replace(/=/g, ':').split(',');
1009
1009
  const primary = util.getValue(linesScreen, 'Primary');
1010
1010
  const sizeX = util.getValue(linesMonitor, 'MaxHorizontalImageSize');
1011
1011
  const sizeY = util.getValue(linesMonitor, 'MaxVerticalImageSize');
package/lib/index.d.ts CHANGED
@@ -48,6 +48,8 @@ export namespace Systeminformation {
48
48
  version: string;
49
49
  serial: string;
50
50
  assetTag: string;
51
+ memMax: number | null;
52
+ memSlots: number | null;
51
53
  }
52
54
 
53
55
  interface ChassisData {
@@ -127,14 +129,15 @@ export namespace Systeminformation {
127
129
  size: number;
128
130
  bank: string;
129
131
  type: string;
130
- ecc?: boolean;
131
- clockSpeed: number;
132
+ ecc?: boolean | null;
133
+ clockSpeed: number | null;
132
134
  formFactor: string;
135
+ manufacturer?: string;
133
136
  partNum: string;
134
137
  serialNum: string;
135
- voltageConfigured: number;
136
- voltageMin: number;
137
- voltageMax: number;
138
+ voltageConfigured: number | null;
139
+ voltageMin: number | null;
140
+ voltageMax: number | null;
138
141
  }
139
142
 
140
143
  interface SmartData {
@@ -360,11 +363,13 @@ export namespace Systeminformation {
360
363
  uefi: boolean;
361
364
  hypervizor?: boolean;
362
365
  remoteSession?: boolean;
366
+ hypervisor?: boolean;
363
367
  }
364
368
 
365
369
  interface UuidData {
366
370
  os: string;
367
371
  hardware: string;
372
+ macs: string[];
368
373
  }
369
374
 
370
375
  interface VersionData {
@@ -537,6 +542,7 @@ export namespace Systeminformation {
537
542
  iface: string;
538
543
  model: string;
539
544
  vendor: string;
545
+ mac: string;
540
546
  }
541
547
 
542
548
  interface WifiConnectionData {
@@ -741,6 +747,7 @@ export namespace Systeminformation {
741
747
  memLimit: number;
742
748
  memPercent: number;
743
749
  cpuPercent: number;
750
+ pids: number;
744
751
  netIO: {
745
752
  rx: number;
746
753
  wx: number;
@@ -756,6 +763,23 @@ export namespace Systeminformation {
756
763
  networks: any;
757
764
  }
758
765
 
766
+ interface DockerContainerProcessData {
767
+ pidHost: string;
768
+ ppid: string;
769
+ pgid: string;
770
+ user: string;
771
+ ruser: string;
772
+ group: string;
773
+ rgroup: string;
774
+ stat: string;
775
+ time: string;
776
+ elapsed: string;
777
+ nice: string;
778
+ rss: string;
779
+ vsz: string;
780
+ command: string;
781
+ }
782
+
759
783
  interface DockerVolumeData {
760
784
  name: string;
761
785
  driver: string;
@@ -931,7 +955,7 @@ export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any)
931
955
  export function dockerImages(all?: boolean, cb?: (data: Systeminformation.DockerImageData[]) => any): Promise<Systeminformation.DockerImageData[]>;
932
956
  export function dockerContainers(all?: boolean, cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise<Systeminformation.DockerContainerData[]>;
933
957
  export function dockerContainerStats(id?: string, cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise<Systeminformation.DockerContainerStatsData[]>;
934
- export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise<any>;
958
+ export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise<Systeminformation.DockerContainerProcessData[]>;
935
959
  export function dockerVolumes(cb?: (data: Systeminformation.DockerVolumeData[]) => any): Promise<Systeminformation.DockerVolumeData[]>;
936
960
  export function dockerAll(cb?: (data: any) => any): Promise<any>;
937
961
 
package/lib/memory.js CHANGED
@@ -329,9 +329,9 @@ function memLayout(callback) {
329
329
  manufacturer: getManufacturerLinux(util.getValue(lines, 'Manufacturer:')),
330
330
  partNum: util.getValue(lines, 'Part Number:'),
331
331
  serialNum: util.getValue(lines, 'Serial Number:'),
332
- voltageConfigured: parseFloat(util.getValue(lines, 'Configured Voltage:') || null),
333
- voltageMin: parseFloat(util.getValue(lines, 'Minimum Voltage:') || null),
334
- voltageMax: parseFloat(util.getValue(lines, 'Maximum Voltage:') || null),
332
+ voltageConfigured: parseFloat(util.getValue(lines, 'Configured Voltage:')) || null,
333
+ voltageMin: parseFloat(util.getValue(lines, 'Minimum Voltage:')) || null,
334
+ voltageMax: parseFloat(util.getValue(lines, 'Maximum Voltage:'))|| null,
335
335
  });
336
336
  } else {
337
337
  result.push({
@@ -384,14 +384,14 @@ function memLayout(callback) {
384
384
  result[0].type = version && version[2] && version[2] === '3' ? 'LPDDR4' : result[0].type;
385
385
  result[0].ecc = false;
386
386
  result[0].clockSpeed = version && version[2] && clockSpeed[version[2]] || 400;
387
- result[0].clockSpeed = version && version[4] && version[4] === 'd' ? '500' : result[0].clockSpeed;
387
+ result[0].clockSpeed = version && version[4] && version[4] === 'd' ? 500 : result[0].clockSpeed;
388
388
  result[0].formFactor = 'SoC';
389
389
 
390
390
  stdout = execSync('vcgencmd get_config sdram_freq 2>/dev/null');
391
391
  lines = stdout.toString().split('\n');
392
392
  let freq = parseInt(util.getValue(lines, 'sdram_freq', '=', true), 10) || 0;
393
393
  if (freq) {
394
- result.clockSpeed = freq;
394
+ result[0].clockSpeed = freq;
395
395
  }
396
396
 
397
397
  stdout = execSync('vcgencmd measure_volts sdram_p 2>/dev/null');
@@ -469,7 +469,7 @@ function memLayout(callback) {
469
469
  if (size && type) {
470
470
  result.push({
471
471
  size: size * 1024 * 1024 * 1024,
472
- bank: 0,
472
+ bank: '0',
473
473
  type,
474
474
  ecc: false,
475
475
  clockSpeed: 0,
package/lib/osinfo.js CHANGED
@@ -196,7 +196,7 @@ function osInfo(callback) {
196
196
  process.nextTick(() => {
197
197
  let result = {
198
198
 
199
- platform: (_platform === 'Windows_NT' ? 'Windows' : _platform),
199
+ platform: (_platform === 'win32' ? 'Windows' : _platform),
200
200
  distro: 'unknown',
201
201
  release: 'unknown',
202
202
  codename: '',
@@ -299,6 +299,7 @@ function osInfo(callback) {
299
299
  result.codename = (result.release.indexOf('10.14') > -1 ? 'macOS Mojave' : result.codename);
300
300
  result.codename = (result.release.indexOf('10.15') > -1 ? 'macOS Catalina' : result.codename);
301
301
  result.codename = (result.release.startsWith('11.') ? 'macOS Big Sur' : result.codename);
302
+ result.codename = (result.release.startsWith('12.') ? 'macOS Monterey' : result.codename);
302
303
  result.uefi = true;
303
304
  result.codepage = util.getCodepage();
304
305
  if (callback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.9.8",
3
+ "version": "5.9.9",
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)",