@soos-io/soos-sbom 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/bin/index.js +8 -2
  2. package/package.json +2 -3
package/bin/index.js CHANGED
@@ -26,6 +26,9 @@ class SOOSSBOMAnalysis {
26
26
  help: "SOOS API URL - Intended for internal use only, do not modify.",
27
27
  default: "https://api.soos.io/api/",
28
28
  required: false,
29
+ type: (value) => {
30
+ return (0, utilities_1.ensureNonEmptyValue)(value, "apiURL");
31
+ },
29
32
  });
30
33
  parser.add_argument("--appVersion", {
31
34
  help: "App Version - Intended for internal use only.",
@@ -86,6 +89,9 @@ class SOOSSBOMAnalysis {
86
89
  parser.add_argument("--projectName", {
87
90
  help: "Project Name - this is what will be displayed in the SOOS app.",
88
91
  required: true,
92
+ type: (value) => {
93
+ return (0, utilities_1.ensureNonEmptyValue)(value, "projectName");
94
+ },
89
95
  });
90
96
  parser.add_argument("--scriptVersion", {
91
97
  help: "Script Version - Intended for internal use only.",
@@ -213,8 +219,8 @@ class SOOSSBOMAnalysis {
213
219
  api_client_1.soosLogger.setVerbose(args.verbose);
214
220
  api_client_1.soosLogger.info("Configuration read");
215
221
  api_client_1.soosLogger.verboseDebug(JSON.stringify((0, utilities_1.obfuscateProperties)(args, ["apiKey"]), null, 2));
216
- (0, utilities_1.ensureValue)(args.clientId, "clientId");
217
- (0, utilities_1.ensureValue)(args.apiKey, "apiKey");
222
+ (0, utilities_1.ensureNonEmptyValue)(args.clientId, "clientId");
223
+ (0, utilities_1.ensureNonEmptyValue)(args.apiKey, "apiKey");
218
224
  api_client_1.soosLogger.logLineSeparator();
219
225
  const soosSBOMAnalysis = new SOOSSBOMAnalysis(args);
220
226
  await soosSBOMAnalysis.runAnalysis();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soos-io/soos-sbom",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "SOOS wrapper script to upload sboms.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -16,9 +16,8 @@
16
16
  "check": "npm run format && npm run typecheck && npm outdated"
17
17
  },
18
18
  "dependencies": {
19
- "@soos-io/api-client": "0.1.7",
19
+ "@soos-io/api-client": "0.1.8",
20
20
  "argparse": "^2.0.1",
21
- "axios": "^0.27.2",
22
21
  "tslib": "^2.6.2"
23
22
  },
24
23
  "devDependencies": {