@contrast/cli 1.12.0 → 1.14.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/LICENSE +12 -0
- package/lib/config-diagnostics.js +6 -2
- package/lib/system-diagnostics.js +4 -1
- package/package.json +14 -16
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright: 2023 Contrast Security, Inc
|
|
2
|
+
Contact: support@contrastsecurity.com
|
|
3
|
+
License: Commercial
|
|
4
|
+
|
|
5
|
+
NOTICE: This Software and the patented inventions embodied within may only be
|
|
6
|
+
used as part of Contrast Security’s commercial offerings. Even though it is
|
|
7
|
+
made available through public repositories, use of this Software is subject to
|
|
8
|
+
the applicable End User Licensing Agreement found at
|
|
9
|
+
https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
10
|
+
between Contrast Security and the End User. The Software may not be reverse
|
|
11
|
+
engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
12
|
+
way not consistent with the End User License Agreement.
|
|
@@ -33,9 +33,13 @@ if (require.main === module) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
async function action(entrypoint, options) {
|
|
36
|
-
const { reporter,
|
|
36
|
+
const { reporter, config } = core;
|
|
37
37
|
let Status;
|
|
38
38
|
|
|
39
|
+
for (const err of core.config._errors) {
|
|
40
|
+
throw err;
|
|
41
|
+
}
|
|
42
|
+
|
|
39
43
|
try {
|
|
40
44
|
if (!core.config.api.enable) {
|
|
41
45
|
throw new Error('config.api.enable = false');
|
|
@@ -46,7 +50,7 @@ async function action(entrypoint, options) {
|
|
|
46
50
|
Status = `Unable to connect to TeamServer. Remote settings are not included in output. Error: ${err.message}`;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
const content = JSON.stringify({ ...
|
|
53
|
+
const content = JSON.stringify({ ...config.getReport({ redact: true }), Status }, null, 2);
|
|
50
54
|
|
|
51
55
|
if (!options.quiet) {
|
|
52
56
|
fs.writeFileSync(1, content, 'utf8');
|
|
@@ -33,7 +33,10 @@ if (require.main === module) {
|
|
|
33
33
|
|
|
34
34
|
async function action(options) {
|
|
35
35
|
const content = JSON.stringify(core.getSystemInfo(), null, 2).concat();
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
for (const err of core.config._errors) {
|
|
38
|
+
throw err;
|
|
39
|
+
}
|
|
37
40
|
|
|
38
41
|
if (!options.quiet) {
|
|
39
42
|
fs.writeFileSync(1, content, 'utf8');
|
package/package.json
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
3
2
|
"name": "@contrast/cli",
|
|
4
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
5
4
|
"description": "A collection of agent related CLI utilities",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/"
|
|
9
|
+
],
|
|
9
10
|
"bin": {
|
|
10
11
|
"config-diagnostics": "lib/config-diagnostics.js",
|
|
11
12
|
"system-diagnostics": "lib/system-diagnostics.js"
|
|
12
13
|
},
|
|
13
|
-
"files": [
|
|
14
|
-
"package.json",
|
|
15
|
-
"lib/"
|
|
16
|
-
],
|
|
17
14
|
"engines": {
|
|
18
15
|
"npm": ">=6.13.7 <7 || >= 8.3.1",
|
|
19
16
|
"node": ">= 14.15.0"
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"@contrast/agent": "5.0.0-beta.1",
|
|
25
|
-
"@contrast/protect-agent": "5.11.0"
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "../scripts/test.sh"
|
|
26
20
|
},
|
|
27
21
|
"dependencies": {
|
|
28
|
-
"@contrast/core": "1.
|
|
22
|
+
"@contrast/core": "1.23.0",
|
|
29
23
|
"commander": "^9.4.1"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@contrast/agent": "5.0.0-beta.3",
|
|
27
|
+
"@contrast/protect-agent": "5.13.0"
|
|
30
28
|
}
|
|
31
|
-
}
|
|
29
|
+
}
|