@cyclonedx/cdxgen 8.4.12 → 8.5.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 +2 -2
- package/docker.test.js +3 -5
- package/index.js +199 -280
- package/package.json +1 -1
- package/spdx-licenses.json +54 -0
- package/utils.js +161 -38
- package/utils.test.js +102 -47
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ NOTE:
|
|
|
53
53
|
Footnotes:
|
|
54
54
|
|
|
55
55
|
- [1] - For multi-module application, the BoM file could include components that may not be included in the packaged war or ear file.
|
|
56
|
-
- [2] - Pip freeze is automatically performed to improve precision.
|
|
56
|
+
- [2] - Pip freeze is automatically performed to improve precision. Requires virtual environment.
|
|
57
57
|
- [3] - Perform dotnet or nuget restore to generate project.assets.json. Without this file cdxgen would not include indirect dependencies.
|
|
58
58
|
- [4] - See section on plugins
|
|
59
59
|
- [5] - Powered by osquery. See section on plugins
|
|
@@ -254,7 +254,7 @@ cdxgen can retain the dependency tree under the `dependencies` attribute for a s
|
|
|
254
254
|
| MVN_ARGS | Set to pass additional arguments such as profile or settings to maven |
|
|
255
255
|
| MAVEN_HOME | Specify maven home |
|
|
256
256
|
| GRADLE_CACHE_DIR | Specify gradle cache directory. Useful for class name resolving |
|
|
257
|
-
| GRADLE_MULTI_PROJECT_MODE |
|
|
257
|
+
| GRADLE_MULTI_PROJECT_MODE | Unused. Automatically handled |
|
|
258
258
|
| GRADLE_ARGS | Set to pass additional arguments such as profile or settings to gradle. Eg: --configuration runtimeClassPath |
|
|
259
259
|
| GRADLE_HOME | Specify gradle home |
|
|
260
260
|
| GRADLE_CMD | Set to override gradle command |
|
package/docker.test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const dockerLib = require("./docker");
|
|
2
|
-
const {
|
|
2
|
+
const { expect, test } = require("@jest/globals");
|
|
3
3
|
|
|
4
4
|
test("docker connection", async () => {
|
|
5
5
|
const dockerConn = await dockerLib.getConnection();
|
|
@@ -58,16 +58,14 @@ test("parseImageName tests", () => {
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
test("docker getImage", async () => {
|
|
61
|
-
jest.setTimeout(120000);
|
|
62
61
|
const imageData = await dockerLib.getImage("hello-world:latest");
|
|
63
62
|
if (imageData) {
|
|
64
63
|
const removeData = await dockerLib.removeImage("hello-world:latest");
|
|
65
64
|
expect(removeData);
|
|
66
65
|
}
|
|
67
|
-
});
|
|
66
|
+
}, 120000);
|
|
68
67
|
|
|
69
68
|
test("docker getImage", async () => {
|
|
70
|
-
jest.setTimeout(120000);
|
|
71
69
|
const imageData = await dockerLib.exportImage("hello-world:latest");
|
|
72
70
|
expect(imageData);
|
|
73
|
-
});
|
|
71
|
+
}, 120000);
|