@contrast/common 1.33.0 → 1.34.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/lib/types.d.ts +18 -2
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -81,14 +81,21 @@ export interface SystemInfo {
|
|
|
81
81
|
version: string;
|
|
82
82
|
memory: {
|
|
83
83
|
total: string;
|
|
84
|
+
totalBytes: number;
|
|
84
85
|
free: string;
|
|
86
|
+
freeBytes: number;
|
|
85
87
|
used: string;
|
|
88
|
+
usedBytes: number;
|
|
86
89
|
};
|
|
87
90
|
};
|
|
88
91
|
os: {
|
|
92
|
+
/** `os.arch()` */
|
|
89
93
|
architecture: string;
|
|
94
|
+
/** `os.type()` */
|
|
90
95
|
name: string;
|
|
96
|
+
/** `os.release()` */
|
|
91
97
|
version: string;
|
|
98
|
+
/** `os.version()` */
|
|
92
99
|
kernelVersion: string;
|
|
93
100
|
cpu: {
|
|
94
101
|
type: string;
|
|
@@ -96,9 +103,17 @@ export interface SystemInfo {
|
|
|
96
103
|
};
|
|
97
104
|
memory: {
|
|
98
105
|
total: string;
|
|
106
|
+
totalBytes: number;
|
|
99
107
|
};
|
|
100
|
-
|
|
101
|
-
|
|
108
|
+
linuxInfo: {
|
|
109
|
+
file: string;
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
} | null;
|
|
112
|
+
macOsInfo: {
|
|
113
|
+
productName: string;
|
|
114
|
+
productVersion: string;
|
|
115
|
+
buildVersion: string;
|
|
116
|
+
} | null;
|
|
102
117
|
};
|
|
103
118
|
host: {
|
|
104
119
|
docker: {
|
|
@@ -114,6 +129,7 @@ export interface SystemInfo {
|
|
|
114
129
|
};
|
|
115
130
|
memory: {
|
|
116
131
|
total: string;
|
|
132
|
+
totalBytes: number;
|
|
117
133
|
};
|
|
118
134
|
};
|
|
119
135
|
application: object;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Shared constants and utilities for all Contrast Agent modules",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|