Skip to content

Commit 2983707

Browse files
committed
prep demo
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent f4411da commit 2983707

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

Diff for: HISTORY.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ All notable changes to this project will be documented in this file.
99
* Misc
1010
* Added test for flattened results (via [#312])
1111

12-
[#312]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/312
13-
1412
[#306]: https://github.com/CycloneDX/cyclonedx-node-npm/issues/306
1513
[#309]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/309
14+
[#312]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/312
1615

1716
## 1.6.0 - 2022-11-12
1817

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ Options:
8383
(can be set multiple times)
8484
(choices: "dev", "optional", "peer", default: "dev" if the NODE_ENV environment variable is set to "production", otherwise empty)
8585
--flatten-components Whether to flatten the components.
86-
Enabling this feature means the actual nesting of node packages is not represented in the SBOM result.
86+
Enabling this feature means the actual nesting of node packages is not represented in the SBOM result, which causes a massive information loss.
8787
(default: false)
8888
--deduplicate-components Whether to artificially de-duplicate the node packages.
89+
Enabling this feature means the actual multiple/parallel installed instances of a packages are displayed as one component, which causes a massive information loss.
8990
Enabling this feature implies option "--flatten-components=true"
9091
(default: false)
9192
--short-PURLs Omit all qualifiers from PackageURLs.

Diff for: demo/gen-boms.sh

+10
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ do
3939
--output-format "$format" \
4040
--output-file "$result_dir/flat/bom.$spec.$format" \
4141
"$package"
42+
43+
echo ">>> $result_dir $spec $format deduplicated"
44+
mkdir -p "$result_dir/deduplicated"
45+
node -- "$BIN_CDX_N" \
46+
--deduplicate-components \
47+
--spec-version "$spec" \
48+
--output-reproducible \
49+
--output-format "$format" \
50+
--output-file "$result_dir/deduplicated/bom.$spec.$format" \
51+
"$package"
4252
done
4353
done
4454
done

Diff for: src/cli.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ function makeCommand (process: NodeJS.Process): Command {
8787
new Option(
8888
'--flatten-components',
8989
'Whether to flatten the components.\n' +
90-
'Enabling this feature means the actual nesting of node packages is not represented in the SBOM result.'
90+
'Enabling this feature means the actual nesting of node packages is not represented in the SBOM result, which causes a massive information loss.'
9191
).default(false)
9292
).addOption(
9393
new Option(
9494
'--deduplicate-components',
9595
'Whether to artificially de-duplicate the node packages.\n' +
96+
'Enabling this feature means the actual multiple/parallel installed instances of a packages are displayed as one component, which causes a massive information loss.\n' +
9697
'Enabling this feature implies option "--flatten-components=true"'
9798
).default(false)
9899
).addOption(

0 commit comments

Comments
 (0)