systeminformation 5.32.0 → 5.33.0

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
@@ -163,7 +163,8 @@ si.cpu()
163
163
 
164
164
  (last 7 major and minor version releases)
165
165
 
166
- - Version 5.32.0: `graphics()` added temperature values (macOS), `dockerContainer()` addes labels
166
+ - Version 5.33.0: `dockerContainer()` added status (healtthy, ...)
167
+ - Version 5.32.0: `graphics()` added temperature values (macOS), `dockerContainers()` added labels
167
168
  - Version 5.31.0: `diskLayout()` added smartmontools support (macOS)
168
169
  - Version 5.30.0: `processes()` added user (windows) - needed to be reverted
169
170
  - Version 5.29.0: `osInfo()` added OS code name (windows)
@@ -831,6 +832,7 @@ Full function reference with examples can be found at
831
832
  | | [0].createdAt | X | X | X | X | X | creation date time string |
832
833
  | | [0].startedAt | X | X | X | X | X | creation date time string |
833
834
  | | [0].finishedAt | X | X | X | X | X | creation date time string |
835
+ | | [0].status | X | X | X | X | X | healthy, starting, unhealthy |
834
836
  | | [0].state | X | X | X | X | X | created, running, exited |
835
837
  | | [0].labels | X | X | X | X | X | object of labels (key-value pairs) |
836
838
  | | [0].ports | X | X | X | X | X | array of ports |
package/lib/docker.js CHANGED
@@ -315,6 +315,7 @@ function dockerContainerInspect(containerID, payload) {
315
315
  createdAt: data.Created ? data.Created : '',
316
316
  startedAt: data.State && data.State.StartedAt ? data.State.StartedAt : '',
317
317
  finishedAt: data.State && data.State.FinishedAt && !data.State.FinishedAt.startsWith('0001-01-01') ? data.State.FinishedAt : '',
318
+ status: data.State && data.State.Health && data.State.Health.Status ? data.State.Health.Status : '',
318
319
  state: payload.State,
319
320
  restartCount: data.RestartCount || 0,
320
321
  platform: data.Platform || '',
package/lib/index.d.ts CHANGED
@@ -5,7 +5,6 @@
5
5
  /// <reference types="node" />
6
6
 
7
7
  export namespace Systeminformation {
8
-
9
8
  // 1. General
10
9
 
11
10
  interface TimeData {
@@ -225,7 +224,7 @@ export namespace Systeminformation {
225
224
  nvme_pci_vendor?: {
226
225
  id: number;
227
226
  subsystem_id: number;
228
- },
227
+ };
229
228
  nvme_smart_health_information_log?: {
230
229
  critical_warning?: number;
231
230
  temperature?: number;
@@ -245,11 +244,11 @@ export namespace Systeminformation {
245
244
  warning_temp_time?: number;
246
245
  critical_comp_time?: number;
247
246
  temperature_sensors?: number[];
248
- },
247
+ };
249
248
  user_capacity?: {
250
249
  blocks: number;
251
250
  bytes: number;
252
- },
251
+ };
253
252
  logical_block_size?: number;
254
253
  temperature: {
255
254
  current: number;
@@ -758,6 +757,7 @@ export namespace Systeminformation {
758
757
  createdAt: string;
759
758
  startedAt: string;
760
759
  finishedAt: string;
760
+ status: string;
761
761
  state: string;
762
762
  restartCount: number;
763
763
  platform: string;
@@ -997,10 +997,7 @@ export function networkInterfaces(): Promise<Systeminformation.NetworkInterfaces
997
997
  export function networkInterfaces(defaultString: 'default'): Promise<Systeminformation.NetworkInterfacesData>;
998
998
  export function networkInterfaces(rescan: boolean): Promise<Systeminformation.NetworkInterfacesData[]>;
999
999
  export function networkInterfaces(
1000
- cb:
1001
- | ((data: Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData) => any)
1002
- | boolean
1003
- | string,
1000
+ cb: ((data: Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData) => any) | boolean | string,
1004
1001
  rescan?: boolean,
1005
1002
  defaultString?: string
1006
1003
  ): Promise<Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.32.0",
3
+ "version": "5.33.0",
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)",