@cyclonedx/cdxgen 10.3.4 → 10.4.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 -4
- package/analyzer.js +18 -18
- package/bin/cdxgen.js +79 -77
- package/bin/evinse.js +26 -26
- package/bin/repl.js +56 -62
- package/bin/verify.js +9 -9
- package/binary.js +55 -54
- package/cbomutils.js +6 -6
- package/db.js +17 -17
- package/display.js +30 -30
- package/display.test.js +2 -2
- package/docker.js +92 -89
- package/docker.test.js +30 -30
- package/envcontext.js +15 -15
- package/envcontext.test.js +1 -1
- package/evinser.js +94 -93
- package/evinser.test.js +24 -24
- package/index.js +523 -483
- package/package.json +8 -16
- package/piptree.js +6 -6
- package/postgen.js +2 -2
- package/postgen.test.js +5 -5
- package/protobom.js +37 -7
- package/protobom.test.js +6 -6
- package/server.js +16 -16
- package/types/analyzer.d.ts +7 -4
- package/types/binary.d.ts +12 -8
- package/types/cbomutils.d.ts +1 -1
- package/types/db.d.ts +23 -11
- package/types/display.d.ts +1 -1
- package/types/docker.d.ts +52 -32
- package/types/envcontext.d.ts +40 -40
- package/types/evinser.d.ts +3436 -717
- package/types/index.d.ts +66 -40
- package/types/jest.config.d.ts +2 -2
- package/types/piptree.d.ts +6 -2
- package/types/postgen.d.ts +1 -1
- package/types/protobom.d.ts +7 -3
- package/types/protobom.d.ts.map +1 -1
- package/types/server.d.ts +1 -1
- package/types/utils.d.ts +496 -302
- package/types/validator.d.ts +1 -1
- package/utils.js +742 -675
- package/utils.test.js +716 -674
- package/validator.js +20 -17
package/types/index.d.ts
CHANGED
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
* @param {Object} pkg Package object
|
|
8
8
|
* @param {string} ptype Package type
|
|
9
9
|
*/
|
|
10
|
-
export function listComponents(
|
|
10
|
+
export function listComponents(
|
|
11
|
+
options: any,
|
|
12
|
+
allImports: any,
|
|
13
|
+
pkg: any,
|
|
14
|
+
ptype?: string,
|
|
15
|
+
): any[];
|
|
11
16
|
/**
|
|
12
17
|
* Function to create bom string for Java jars
|
|
13
18
|
*
|
|
@@ -23,10 +28,13 @@ export function createJarBom(path: string, options: any): any;
|
|
|
23
28
|
* @param {string} path to the project
|
|
24
29
|
* @param {Object} options Parse options from the cli
|
|
25
30
|
*/
|
|
26
|
-
export function createAndroidBom(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
export function createAndroidBom(
|
|
32
|
+
path: string,
|
|
33
|
+
options: any,
|
|
34
|
+
): {
|
|
35
|
+
bomJson: any;
|
|
36
|
+
dependencies: any;
|
|
37
|
+
parentComponent: any;
|
|
30
38
|
};
|
|
31
39
|
/**
|
|
32
40
|
* Function to create bom string for binaries using blint
|
|
@@ -34,10 +42,13 @@ export function createAndroidBom(path: string, options: any): {
|
|
|
34
42
|
* @param {string} path to the project
|
|
35
43
|
* @param {Object} options Parse options from the cli
|
|
36
44
|
*/
|
|
37
|
-
export function createBinaryBom(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
export function createBinaryBom(
|
|
46
|
+
path: string,
|
|
47
|
+
options: any,
|
|
48
|
+
): {
|
|
49
|
+
bomJson: any;
|
|
50
|
+
dependencies: any;
|
|
51
|
+
parentComponent: any;
|
|
41
52
|
};
|
|
42
53
|
/**
|
|
43
54
|
* Function to create bom string for Java projects
|
|
@@ -185,36 +196,46 @@ export function createCsharpBom(path: string, options: any): Promise<any>;
|
|
|
185
196
|
* @param {string} path to the project
|
|
186
197
|
* @param {Object} options Parse options from the cli
|
|
187
198
|
*/
|
|
188
|
-
export function createCryptoCertsBom(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
export function createCryptoCertsBom(
|
|
200
|
+
path: string,
|
|
201
|
+
options: any,
|
|
202
|
+
): Promise<{
|
|
203
|
+
bomJson: {
|
|
204
|
+
components: {
|
|
205
|
+
name: string;
|
|
206
|
+
type: string;
|
|
207
|
+
version: string;
|
|
208
|
+
"bom-ref": string;
|
|
209
|
+
cryptoProperties: {
|
|
210
|
+
assetType: string;
|
|
211
|
+
algorithmProperties: {
|
|
212
|
+
executionEnvironment: string;
|
|
213
|
+
implementationPlatform: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
properties: {
|
|
217
|
+
name: string;
|
|
218
|
+
value: string;
|
|
219
|
+
}[];
|
|
220
|
+
}[];
|
|
221
|
+
};
|
|
208
222
|
}>;
|
|
209
|
-
export function mergeDependencies(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
223
|
+
export function mergeDependencies(
|
|
224
|
+
dependencies: any,
|
|
225
|
+
newDependencies: any,
|
|
226
|
+
parentComponent?: {},
|
|
227
|
+
): (
|
|
228
|
+
| {
|
|
229
|
+
ref: string;
|
|
230
|
+
dependsOn: any[];
|
|
231
|
+
provides: any[];
|
|
232
|
+
}
|
|
233
|
+
| {
|
|
234
|
+
ref: string;
|
|
235
|
+
dependsOn: any[];
|
|
236
|
+
provides?: undefined;
|
|
237
|
+
}
|
|
238
|
+
)[];
|
|
218
239
|
export function trimComponents(components: any): any[];
|
|
219
240
|
/**
|
|
220
241
|
* Dedupe components
|
|
@@ -226,7 +247,12 @@ export function trimComponents(components: any): any[];
|
|
|
226
247
|
*
|
|
227
248
|
* @returns {Object} Object including BOM Json
|
|
228
249
|
*/
|
|
229
|
-
export function dedupeBom(
|
|
250
|
+
export function dedupeBom(
|
|
251
|
+
options: any,
|
|
252
|
+
components: any[],
|
|
253
|
+
parentComponent: any,
|
|
254
|
+
dependencies: any[],
|
|
255
|
+
): any;
|
|
230
256
|
/**
|
|
231
257
|
* Function to create bom string for all languages
|
|
232
258
|
*
|
|
@@ -255,4 +281,4 @@ export function createBom(path: string, options: any): any;
|
|
|
255
281
|
* @param {Object} bomContents BOM Json
|
|
256
282
|
*/
|
|
257
283
|
export function submitBom(args: any, bomContents: any): Promise<any>;
|
|
258
|
-
//# sourceMappingURL=index.d.ts.map
|
|
284
|
+
//# sourceMappingURL=index.d.ts.map
|
package/types/jest.config.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export const coveragePathIgnorePatterns: string[];
|
|
|
4
4
|
export const coverageReporters: string[];
|
|
5
5
|
export const testEnvironment: "node";
|
|
6
6
|
declare namespace _default {
|
|
7
|
-
|
|
7
|
+
let transform: {};
|
|
8
8
|
}
|
|
9
9
|
export default _default;
|
|
10
|
-
//# sourceMappingURL=jest.config.d.ts.map
|
|
10
|
+
//# sourceMappingURL=jest.config.d.ts.map
|
package/types/piptree.d.ts
CHANGED
package/types/postgen.d.ts
CHANGED
package/types/protobom.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export function writeBinary(bomJson: any, binFile:
|
|
2
|
-
export function readBinary(
|
|
3
|
-
|
|
1
|
+
export function writeBinary(bomJson: string | any, binFile: string): void;
|
|
2
|
+
export function readBinary(
|
|
3
|
+
binFile: string,
|
|
4
|
+
asJson?: boolean,
|
|
5
|
+
specVersion?: number,
|
|
6
|
+
): any;
|
|
7
|
+
//# sourceMappingURL=protobom.d.ts.map
|
package/types/protobom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobom.d.ts","sourceRoot":"","sources":["../protobom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protobom.d.ts","sourceRoot":"","sources":["../protobom.js"],"names":[],"mappings":"AAsBO,qCAHI,MAAM,MAAS,WACf,MAAM,QAmBhB;AASM,oCAJI,MAAM,WACN,OAAO,gBACP,MAAM,OAmBhB"}
|
package/types/server.d.ts
CHANGED