@contrast/common 1.32.0 → 1.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/lib/types.d.ts +42 -34
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -60,58 +60,66 @@ export interface AppInfo {
|
|
|
60
60
|
buildId: string;
|
|
61
61
|
}
|
|
62
62
|
export interface SystemInfo {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
reportDate: string;
|
|
64
|
+
hostname: string;
|
|
65
|
+
contrast: {
|
|
66
|
+
url: string | null;
|
|
67
|
+
proxy: {
|
|
68
68
|
enable: boolean;
|
|
69
69
|
url: string | null;
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
server: {
|
|
72
|
+
name: string;
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
agent: {
|
|
75
|
+
name: string;
|
|
76
|
+
version: string;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
node: {
|
|
80
|
+
path: string;
|
|
81
|
+
version: string;
|
|
82
|
+
memory: {
|
|
83
|
+
total: string;
|
|
84
|
+
free: string;
|
|
85
|
+
used: string;
|
|
86
|
+
};
|
|
82
87
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
os: {
|
|
89
|
+
architecture: string;
|
|
90
|
+
name: string;
|
|
91
|
+
version: string;
|
|
92
|
+
kernelVersion: string;
|
|
93
|
+
cpu: {
|
|
94
|
+
type: string;
|
|
95
|
+
count: number;
|
|
96
|
+
};
|
|
97
|
+
memory: {
|
|
98
|
+
total: string;
|
|
91
99
|
};
|
|
100
|
+
id: string | undefined;
|
|
101
|
+
versionId: string | undefined;
|
|
92
102
|
};
|
|
93
|
-
|
|
94
|
-
|
|
103
|
+
host: {
|
|
104
|
+
docker: {
|
|
95
105
|
isDocker: boolean;
|
|
96
|
-
|
|
106
|
+
containerId: string | null;
|
|
97
107
|
};
|
|
98
|
-
|
|
108
|
+
kubernetes: {
|
|
99
109
|
isKubernetes: boolean;
|
|
100
110
|
};
|
|
101
|
-
|
|
111
|
+
pm2: {
|
|
102
112
|
used: boolean;
|
|
103
113
|
version: string | null;
|
|
104
114
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Free: string;
|
|
108
|
-
Used: string;
|
|
115
|
+
memory: {
|
|
116
|
+
total: string;
|
|
109
117
|
};
|
|
110
118
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
application: object;
|
|
120
|
+
cloud: {
|
|
121
|
+
provider: string | null;
|
|
122
|
+
resourceId: string | null;
|
|
115
123
|
};
|
|
116
124
|
}
|
|
117
125
|
export type CommonRules = Rule.SQL_INJECTION | Rule.CMD_INJECTION | Rule.PATH_TRAVERSAL | Rule.REFLECTED_XSS | Rule.SSJS_INJECTION | Rule.NOSQL_INJECTION_MONGO | Rule.UNSAFE_FILE_UPLOAD | Rule.NOSQL_INJECTION | Rule.METHOD_TAMPERING | Rule.BOT_BLOCKER;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.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)",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsc --build src/",
|
|
21
|
-
"test": "../scripts/test.sh"
|
|
21
|
+
"test": "bash ../scripts/test.sh"
|
|
22
22
|
}
|
|
23
23
|
}
|