@cyclonedx/cdxgen 10.8.5 → 10.8.6
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/package.json +1 -1
- package/server.js +1 -1
- package/utils.js +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclonedx/cdxgen",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.6",
|
|
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>",
|
package/server.js
CHANGED
package/utils.js
CHANGED
|
@@ -464,7 +464,8 @@ export function isSpdxLicenseExpression(license) {
|
|
|
464
464
|
* Convert the array of licenses to a CycloneDX 1.5 compliant license array.
|
|
465
465
|
* This should return an array containing:
|
|
466
466
|
* - one or more SPDX license if no expression is present
|
|
467
|
-
* - the
|
|
467
|
+
* - the license of the expression if one expression is present
|
|
468
|
+
* - a unified conditional 'OR' license expression if more then one expression is present
|
|
468
469
|
*
|
|
469
470
|
* @param {Array} licenses Array of licenses
|
|
470
471
|
* @returns {Array} CycloneDX 1.5 compliant license array
|
|
@@ -479,7 +480,14 @@ export function adjustLicenseInformation(licenses) {
|
|
|
479
480
|
});
|
|
480
481
|
if (expressions.length >= 1) {
|
|
481
482
|
if (expressions.length > 1) {
|
|
482
|
-
|
|
483
|
+
return [
|
|
484
|
+
{
|
|
485
|
+
expression: expressions
|
|
486
|
+
.map((e) => e.expression || "")
|
|
487
|
+
.filter(Boolean)
|
|
488
|
+
.join(" OR "),
|
|
489
|
+
},
|
|
490
|
+
];
|
|
483
491
|
}
|
|
484
492
|
return [{ expression: expressions[0].expression }];
|
|
485
493
|
}
|
|
@@ -2861,6 +2869,7 @@ export function executeGradleProperties(dir, rootPath, subProject) {
|
|
|
2861
2869
|
cwd: dir,
|
|
2862
2870
|
encoding: "utf-8",
|
|
2863
2871
|
shell: isWin,
|
|
2872
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
2864
2873
|
});
|
|
2865
2874
|
if (result.status !== 0 || result.error) {
|
|
2866
2875
|
if (result.stderr) {
|