@contrast/contrast 2.5.0 → 2.5.2
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/dist/constants/constants.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +5 -5
|
@@ -17,7 +17,7 @@ export const HIGH = 'HIGH';
|
|
|
17
17
|
export const CRITICAL = 'CRITICAL';
|
|
18
18
|
// App
|
|
19
19
|
export const APP_NAME = 'contrast';
|
|
20
|
-
const APP_VERSION = '2.5.
|
|
20
|
+
const APP_VERSION = '2.5.2';
|
|
21
21
|
export const TIMEOUT = 120000;
|
|
22
22
|
export const CRITICAL_PRIORITY = 1;
|
|
23
23
|
export const HIGH_PRIORITY = 2;
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const getMainOption = () => {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
const start = async () => {
|
|
35
|
+
// testing changes
|
|
35
36
|
try {
|
|
36
37
|
if (await isCorrectNodeVersion(process.version)) {
|
|
37
38
|
const { mainOptions, argv: argvMain } = getMainOption();
|
|
@@ -55,7 +56,6 @@ const start = async () => {
|
|
|
55
56
|
config.set('numOfRuns', 0);
|
|
56
57
|
}
|
|
57
58
|
if (command === 'config') {
|
|
58
|
-
console.log('config command');
|
|
59
59
|
return processConfig(argvMain, config);
|
|
60
60
|
}
|
|
61
61
|
if (command === 'auth') {
|
|
@@ -109,7 +109,7 @@ const start = async () => {
|
|
|
109
109
|
process.exit(9);
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
|
-
logInfo('Contrast supports Node versions >=
|
|
112
|
+
logInfo('Contrast supports Node versions >=18.16.0 Node LTS. Please use one of those versions.');
|
|
113
113
|
process.exit(9);
|
|
114
114
|
}
|
|
115
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/contrast",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Contrast Security's command line tool",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsc",
|
|
28
28
|
"build-binary": "esbuild src/index.ts --bundle --outdir=dist-binary --platform=node",
|
|
29
|
-
"package-binary": "pkg dist-binary/index.js --out-path binaries --targets
|
|
29
|
+
"package-binary": "pkg dist-binary/index.js --out-path binaries --targets node18-macos,node18-linux,node18-win",
|
|
30
30
|
"build-package": "yarn build && yarn build-binary && yarn package-binary",
|
|
31
31
|
"test": "export VITEST_MAX_THREADS=4 && export VITEST_MIN_THREADS=1 && vitest --dir ./tests/unit-tests/",
|
|
32
32
|
"test-debug": "export VITEST_MAX_THREADS=4 && export VITEST_MIN_THREADS=1 && vitest --dir ./tests/unit-tests/ --inspect-brk",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"proxy-tests": "vitest ./tests/integration-tests/proxy/proxy-coverage.spec.js --pool=forks"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
|
-
"node": ">=
|
|
53
|
+
"node": ">=18.16.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@aws-sdk/client-iam": "3.370.0",
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"semver": "7.5.4",
|
|
85
85
|
"string-builder": "0.1.8",
|
|
86
86
|
"string-multiple-replace": "1.0.5",
|
|
87
|
-
"tsx": "^4.19.2",
|
|
88
87
|
"xml2js": "0.6.1",
|
|
89
88
|
"yarn-lockfile": "1.1.1"
|
|
90
89
|
},
|
|
@@ -101,7 +100,6 @@
|
|
|
101
100
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
102
101
|
"@typescript-eslint/parser": "5.62.0",
|
|
103
102
|
"@vitest/coverage-v8": "0.34.3",
|
|
104
|
-
"@yao-pkg/pkg": "^6.1.0",
|
|
105
103
|
"csv-writer": "1.6.0",
|
|
106
104
|
"dotenv": "16.3.1",
|
|
107
105
|
"esbuild": "0.18.16",
|
|
@@ -112,8 +110,10 @@
|
|
|
112
110
|
"mocha": "10.2.0",
|
|
113
111
|
"nock": "13.3.2",
|
|
114
112
|
"npm-license-crawler": "0.2.1",
|
|
113
|
+
"pkg": "5.8.1",
|
|
115
114
|
"prettier": "2.8.8",
|
|
116
115
|
"tmp": "0.2.1",
|
|
116
|
+
"ts-node": "^10.9.2",
|
|
117
117
|
"typescript": "5.1.6",
|
|
118
118
|
"uuid": "9.0.0",
|
|
119
119
|
"vitest": "1.4.0"
|