@soos-io/soos-sbom 0.1.1-pre.1 → 0.1.1-pre.3
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/bin/index.js +3 -8
- package/bin/utils/constants.d.ts +0 -1
- package/bin/utils/constants.js +0 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -64,7 +64,6 @@ class SOOSSBOMAnalysis {
|
|
|
64
64
|
parser.add_argument("--integrationName", {
|
|
65
65
|
help: "Integration Name - Intended for internal use only.",
|
|
66
66
|
required: false,
|
|
67
|
-
default: constants_1.CONSTANTS.SOOS.DEFAULT_INTEGRATION_NAME,
|
|
68
67
|
});
|
|
69
68
|
parser.add_argument("--integrationType", {
|
|
70
69
|
help: "Integration Type - Intended for internal use only.",
|
|
@@ -76,13 +75,7 @@ class SOOSSBOMAnalysis {
|
|
|
76
75
|
default: api_client_1.LogLevel.INFO,
|
|
77
76
|
required: false,
|
|
78
77
|
type: (value) => {
|
|
79
|
-
|
|
80
|
-
if (upperCaseValue in api_client_1.LogLevel) {
|
|
81
|
-
return api_client_1.LogLevel[upperCaseValue];
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
throw new Error(`Invalid log level: ${value}`);
|
|
85
|
-
}
|
|
78
|
+
return (0, utilities_1.ensureEnumValue)(api_client_1.LogLevel, value);
|
|
86
79
|
},
|
|
87
80
|
});
|
|
88
81
|
parser.add_argument("--operatingEnvironment", {
|
|
@@ -225,6 +218,8 @@ class SOOSSBOMAnalysis {
|
|
|
225
218
|
api_client_1.soosLogger.setVerbose(args.verbose);
|
|
226
219
|
api_client_1.soosLogger.info("Configuration read");
|
|
227
220
|
api_client_1.soosLogger.verboseDebug(JSON.stringify((0, utilities_1.obfuscateProperties)(args, ["apiKey"]), null, 2));
|
|
221
|
+
(0, utilities_1.ensureValue)(args.clientId, "clientId");
|
|
222
|
+
(0, utilities_1.ensureValue)(args.apiKey, "apiKey");
|
|
228
223
|
api_client_1.soosLogger.logLineSeparator();
|
|
229
224
|
const soosSBOMAnalysis = new SOOSSBOMAnalysis(args);
|
|
230
225
|
await soosSBOMAnalysis.runAnalysis();
|
package/bin/utils/constants.d.ts
CHANGED
package/bin/utils/constants.js
CHANGED