@cyclonedx/cdxgen 9.11.5 → 10.0.0
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/README.md +6 -5
- package/analyzer.js +1 -0
- package/bin/cdxgen.js +140 -142
- package/bin/repl.js +5 -5
- package/bin/verify.js +1 -1
- package/binary.js +19 -13
- package/cbomutils.js +39 -0
- package/cbomutils.test.js +8 -0
- package/data/README.md +1 -0
- package/data/cbomosdb-queries.json +68 -0
- package/data/cosdb-queries.json +1 -1
- package/display.js +2 -2
- package/docker.js +15 -3
- package/envcontext.js +302 -0
- package/envcontext.test.js +31 -0
- package/evinser.js +9 -8
- package/index.js +229 -486
- package/package.json +7 -8
- package/protobom.test.js +1 -1
- package/server.js +2 -1
- package/utils.js +225 -162
- package/utils.test.js +37 -32
- package/validator.js +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclonedx/cdxgen",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
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>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"pretty": "prettier --write *.js data/*.json bin/*.js *.md docs/*.md data/*.md"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": ">=
|
|
48
|
+
"node": ">=20"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"ajv-formats": "^2.1.1",
|
|
63
63
|
"cheerio": "^1.0.0-rc.12",
|
|
64
64
|
"edn-data": "1.1.1",
|
|
65
|
-
"find-up": "
|
|
65
|
+
"find-up": "7.0.0",
|
|
66
66
|
"glob": "^10.3.10",
|
|
67
67
|
"global-agent": "^3.0.0",
|
|
68
|
-
"got": "
|
|
68
|
+
"got": "14.0.0",
|
|
69
69
|
"iconv-lite": "^0.6.3",
|
|
70
70
|
"js-yaml": "^4.1.0",
|
|
71
71
|
"jws": "^4.0.0",
|
|
@@ -79,11 +79,10 @@
|
|
|
79
79
|
"tar": "^6.2.0",
|
|
80
80
|
"uuid": "^9.0.1",
|
|
81
81
|
"xml-js": "^1.6.11",
|
|
82
|
-
"xmlbuilder": "^15.1.1",
|
|
83
82
|
"yargs": "^17.7.2"
|
|
84
83
|
},
|
|
85
84
|
"optionalDependencies": {
|
|
86
|
-
"@appthreat/atom": "
|
|
85
|
+
"@appthreat/atom": "2.0.6",
|
|
87
86
|
"@appthreat/cdx-proto": "^0.0.4",
|
|
88
87
|
"@cyclonedx/cdxgen-plugins-bin": "^1.5.4",
|
|
89
88
|
"@cyclonedx/cdxgen-plugins-bin-windows-amd64": "^1.5.4",
|
|
@@ -106,8 +105,8 @@
|
|
|
106
105
|
"docsify-cli": "^4.4.4",
|
|
107
106
|
"eslint": "^8.56.0",
|
|
108
107
|
"eslint-config-prettier": "^9.1.0",
|
|
109
|
-
"eslint-plugin-prettier": "^5.1.
|
|
108
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
110
109
|
"jest": "^29.7.0",
|
|
111
|
-
"prettier": "3.
|
|
110
|
+
"prettier": "3.2.4"
|
|
112
111
|
}
|
|
113
112
|
}
|
package/protobom.test.js
CHANGED
|
@@ -10,7 +10,7 @@ const testBom = JSON.parse(
|
|
|
10
10
|
readFileSync("./test/data/bom-java.json", { encoding: "utf-8" })
|
|
11
11
|
);
|
|
12
12
|
|
|
13
|
-
test("proto binary tests",
|
|
13
|
+
test("proto binary tests", () => {
|
|
14
14
|
const binFile = join(tempDir, "test.cdx.bin");
|
|
15
15
|
writeBinary({}, binFile);
|
|
16
16
|
expect(existsSync(binFile)).toBeTruthy();
|
package/server.js
CHANGED
|
@@ -6,6 +6,7 @@ import { spawnSync } from "node:child_process";
|
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
|
+
import process from "node:process";
|
|
9
10
|
import { createBom, submitBom } from "./index.js";
|
|
10
11
|
import { postProcess } from "./postgen.js";
|
|
11
12
|
|
|
@@ -113,7 +114,7 @@ const start = (options) => {
|
|
|
113
114
|
.listen(options.serverPort, options.serverHost);
|
|
114
115
|
configureServer(cdxgenServer);
|
|
115
116
|
|
|
116
|
-
app.use("/health",
|
|
117
|
+
app.use("/health", function (_req, res) {
|
|
117
118
|
res.setHeader("Content-Type", "application/json");
|
|
118
119
|
res.end(JSON.stringify({ status: "OK" }, null, 2));
|
|
119
120
|
});
|