@cyclonedx/cdxgen 10.3.2 → 10.3.4

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 (3) hide show
  1. package/README.md +0 -1
  2. package/bin/cdxgen.js +12 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  ![cdxgen logo](cdxgen.png)
6
6
 
7
-
8
7
  cdxgen is a CLI tool, library, [REPL](./ADVANCED.md), and server to create a valid and compliant [CycloneDX][cyclonedx-homepage] Bill of Materials (BOM) containing an aggregate of all project dependencies for C/C++, Node.js, PHP, Python, Ruby, Rust, Java, .Net, Dart, Haskell, Elixir, and Go projects in JSON format. CycloneDX is a full-stack BOM specification that is easily created, human and machine-readable, and simple to parse. The tool supports CycloneDX specification versions from 1.4 - 1.6.
9
8
 
10
9
  When used with plugins:
package/bin/cdxgen.js CHANGED
@@ -299,7 +299,18 @@ if (process.argv[1].includes("obom") && !args.type) {
299
299
  args.type = "os";
300
300
  }
301
301
 
302
- if (process.argv[1].includes("cbom") && !args.type) {
302
+ /**
303
+ * Command line options
304
+ */
305
+ const options = Object.assign({}, args, {
306
+ projectType: args.type,
307
+ multiProject: args.recurse,
308
+ noBabel: args.noBabel || args.babel === false,
309
+ project: args.projectId,
310
+ deep: args.deep || args.evidence
311
+ });
312
+
313
+ if (process.argv[1].includes("cbom")) {
303
314
  options.includeCrypto = true;
304
315
  options.includeFormulation = true;
305
316
  options.evidence = true;
@@ -374,16 +385,6 @@ const applyAdvancedOptions = (options) => {
374
385
  return options;
375
386
  };
376
387
 
377
- /**
378
- * Command line options
379
- */
380
- const options = Object.assign({}, args, {
381
- projectType: args.type,
382
- multiProject: args.recurse,
383
- noBabel: args.noBabel || args.babel === false,
384
- project: args.projectId,
385
- deep: args.deep || args.evidence
386
- });
387
388
  applyAdvancedOptions(options);
388
389
 
389
390
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclonedx/cdxgen",
3
- "version": "10.3.2",
3
+ "version": "10.3.4",
4
4
  "description": "Creates CycloneDX Software Bill of Materials (SBOM) from source or container image",
5
5
  "homepage": "http://github.com/cyclonedx/cdxgen",
6
6
  "author": "Prabhu Subramanian <prabhu@appthreat.com>",