@cyclonedx/cdxgen 9.8.7 → 9.8.9
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 +16 -7
- package/analyzer.js +3 -3
- package/bin/cdxgen.js +3 -3
- package/bin/repl.js +20 -20
- package/binary.js +1 -1
- package/docker.js +1 -1
- package/index.js +162 -74
- package/package.json +11 -11
- package/server.js +1 -2
- package/utils.js +319 -66
- package/utils.test.js +75 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclonedx/cdxgen",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.9",
|
|
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>",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"type": "module",
|
|
32
32
|
"exports": "./index.js",
|
|
33
33
|
"bin": {
|
|
34
|
-
"cdxgen": "
|
|
35
|
-
"obom": "
|
|
36
|
-
"cdxi": "
|
|
37
|
-
"evinse": "
|
|
38
|
-
"cdx-verify": "
|
|
34
|
+
"cdxgen": "bin/cdxgen.js",
|
|
35
|
+
"obom": "bin/cdxgen.js",
|
|
36
|
+
"cdxi": "bin/repl.js",
|
|
37
|
+
"evinse": "bin/evinse.js",
|
|
38
|
+
"cdx-verify": "bin/verify.js"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"docs": "docsify serve docs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/CycloneDX/cdxgen"
|
|
52
|
+
"url": "git+https://github.com/CycloneDX/cdxgen.git"
|
|
53
53
|
},
|
|
54
54
|
"bugs": {
|
|
55
55
|
"url": "https://github.com/cyclonedx/cdxgen/issues"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/parser": "^7.23.0",
|
|
59
59
|
"@babel/traverse": "^7.23.0",
|
|
60
|
-
"@npmcli/arborist": "^7.
|
|
60
|
+
"@npmcli/arborist": "^7.2.0",
|
|
61
61
|
"ajv": "^8.12.0",
|
|
62
62
|
"ajv-formats": "^2.1.1",
|
|
63
63
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"caxa": "^3.0.1",
|
|
103
103
|
"docsify-cli": "^4.4.4",
|
|
104
|
-
"eslint": "^8.
|
|
104
|
+
"eslint": "^8.51.0",
|
|
105
105
|
"eslint-config-prettier": "^9.0.0",
|
|
106
|
-
"eslint-plugin-prettier": "^5.0.
|
|
106
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
107
107
|
"jest": "^29.7.0",
|
|
108
108
|
"prettier": "3.0.3"
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
}
|
package/server.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import connect from "connect";
|
|
2
2
|
import http from "node:http";
|
|
3
3
|
import bodyParser from "body-parser";
|
|
4
|
-
import url from "node:url";
|
|
4
|
+
import url, { URL } from "node:url";
|
|
5
5
|
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
9
|
import { createBom, submitBom } from "./index.js";
|
|
10
10
|
import compression from "compression";
|
|
11
|
-
import { URL } from "url";
|
|
12
11
|
|
|
13
12
|
// Timeout milliseconds. Default 10 mins
|
|
14
13
|
const TIMEOUT_MS =
|