@contrast/contrast 2.0.0 → 2.0.2-beta.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/dist/audit/report/reportingFeature.js +7 -0
- package/dist/cliConstants.js +22 -1
- package/dist/commands/audit/help.js +1 -3
- package/dist/commands/audit/processAudit.js +0 -2
- package/dist/commands/github/fingerprintConfig.js +2 -1
- package/dist/commands/github/processFingerprint.js +28 -0
- package/dist/commands/github/projectGroup.js +124 -34
- package/dist/commands/github/repoServices.js +108 -0
- package/dist/common/HTTPClient.js +38 -17
- package/dist/common/baseRequest.js +74 -0
- package/dist/common/errorHandling.js +1 -1
- package/dist/constants/constants.js +1 -1
- package/dist/index.js +4 -0
- package/dist/scaAnalysis/common/auditReport.js +8 -1
- package/dist/scaAnalysis/common/scaServicesUpload.js +3 -1
- package/dist/scaAnalysis/go/goReadDepFile.js +5 -1
- package/dist/scaAnalysis/java/analysis.js +1 -1
- package/dist/scaAnalysis/java/javaBuildDepsParser.js +11 -1
- package/dist/scaAnalysis/legacy/legacyFlow.js +0 -6
- package/dist/scaAnalysis/processServicesFlow.js +49 -10
- package/dist/scaAnalysis/repoMode/mavenParser.js +19 -1
- package/dist/scaAnalysis/scaAnalysis.js +4 -8
- package/dist/scan/autoDetection.js +14 -3
- package/dist/scan/fileUtils.js +33 -19
- package/dist/utils/paramsUtil/paramHandler.js +11 -2
- package/dist/utils/validationCheck.js +5 -1
- package/package.json +6 -3
- package/src/audit/report/reportingFeature.ts +7 -0
- package/src/cliConstants.js +22 -1
- package/src/commands/audit/help.js +1 -3
- package/src/commands/audit/processAudit.js +0 -2
- package/src/commands/github/fingerprintConfig.js +2 -2
- package/src/commands/github/processFingerprint.js +37 -0
- package/src/commands/github/projectGroup.js +146 -39
- package/src/commands/github/repoServices.js +122 -0
- package/src/common/HTTPClient.js +47 -18
- package/src/common/baseRequest.ts +83 -0
- package/src/common/errorHandling.js +2 -2
- package/src/constants/constants.js +1 -1
- package/src/index.ts +5 -0
- package/src/scaAnalysis/common/auditReport.js +8 -1
- package/src/scaAnalysis/common/scaServicesUpload.js +5 -1
- package/src/scaAnalysis/go/goReadDepFile.js +5 -1
- package/src/scaAnalysis/java/analysis.js +1 -1
- package/src/scaAnalysis/java/javaBuildDepsParser.js +17 -1
- package/src/scaAnalysis/legacy/legacyFlow.js +0 -5
- package/src/scaAnalysis/processServicesFlow.js +107 -17
- package/src/scaAnalysis/repoMode/mavenParser.js +24 -1
- package/src/scaAnalysis/scaAnalysis.js +9 -8
- package/src/scan/autoDetection.js +14 -3
- package/src/scan/fileUtils.js +33 -19
- package/src/utils/paramsUtil/paramHandler.js +16 -2
- package/src/utils/validationCheck.js +6 -1
- package/dist/utils/settingsHelper.js +0 -14
- package/src/utils/settingsHelper.js +0 -16
|
@@ -27,8 +27,13 @@ const validateAuthParams = params => {
|
|
|
27
27
|
)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
const validateFingerprintParams = params => {
|
|
31
|
+
return !!(params.repositoryUrl && params.repositoryName)
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
module.exports = {
|
|
31
35
|
checkConfigHasRequiredValues: checkConfigHasRequiredValues,
|
|
32
36
|
validateAuthParams: validateAuthParams,
|
|
33
|
-
validateRequiredScanParams: validateRequiredScanParams
|
|
37
|
+
validateRequiredScanParams: validateRequiredScanParams,
|
|
38
|
+
validateFingerprintParams: validateFingerprintParams
|
|
34
39
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const generalAPI = require('./generalAPI');
|
|
3
|
-
const { SAAS } = require('../constants/constants');
|
|
4
|
-
const getSettings = async (config) => {
|
|
5
|
-
config.isEOP =
|
|
6
|
-
(await generalAPI.getMode(config)).toUpperCase() === SAAS ? false : true;
|
|
7
|
-
if (config.legacy === undefined) {
|
|
8
|
-
config.legacy = config.isEOP;
|
|
9
|
-
}
|
|
10
|
-
return config;
|
|
11
|
-
};
|
|
12
|
-
module.exports = {
|
|
13
|
-
getSettings
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const generalAPI = require('./generalAPI')
|
|
2
|
-
const { SAAS } = require('../constants/constants')
|
|
3
|
-
|
|
4
|
-
const getSettings = async config => {
|
|
5
|
-
config.isEOP =
|
|
6
|
-
(await generalAPI.getMode(config)).toUpperCase() === SAAS ? false : true
|
|
7
|
-
|
|
8
|
-
if (config.legacy === undefined) {
|
|
9
|
-
config.legacy = config.isEOP
|
|
10
|
-
}
|
|
11
|
-
return config
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
module.exports = {
|
|
15
|
-
getSettings
|
|
16
|
-
}
|