@soos-io/soos-sbom 0.1.1-pre.2 → 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 -7
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -75,13 +75,7 @@ class SOOSSBOMAnalysis {
|
|
|
75
75
|
default: api_client_1.LogLevel.INFO,
|
|
76
76
|
required: false,
|
|
77
77
|
type: (value) => {
|
|
78
|
-
|
|
79
|
-
if (upperCaseValue in api_client_1.LogLevel) {
|
|
80
|
-
return api_client_1.LogLevel[upperCaseValue];
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
throw new Error(`Invalid log level: ${value}`);
|
|
84
|
-
}
|
|
78
|
+
return (0, utilities_1.ensureEnumValue)(api_client_1.LogLevel, value);
|
|
85
79
|
},
|
|
86
80
|
});
|
|
87
81
|
parser.add_argument("--operatingEnvironment", {
|
|
@@ -224,6 +218,8 @@ class SOOSSBOMAnalysis {
|
|
|
224
218
|
api_client_1.soosLogger.setVerbose(args.verbose);
|
|
225
219
|
api_client_1.soosLogger.info("Configuration read");
|
|
226
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");
|
|
227
223
|
api_client_1.soosLogger.logLineSeparator();
|
|
228
224
|
const soosSBOMAnalysis = new SOOSSBOMAnalysis(args);
|
|
229
225
|
await soosSBOMAnalysis.runAnalysis();
|