@cyclonedx/cdxgen 10.5.0 → 10.5.2
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 +86 -127
- package/bin/cdxgen.js +4 -2
- package/bin/evinse.js +2 -1
- package/bin/repl.js +38 -23
- package/bin/verify.js +2 -1
- package/binary.js +41 -7
- package/data/spdx.schema.json +117 -1
- package/display.js +28 -0
- package/docker.js +35 -7
- package/index.js +330 -103
- package/package.json +21 -12
- package/types/analyzer.d.ts +4 -7
- package/types/binary.d.ts +8 -12
- package/types/binary.d.ts.map +1 -1
- package/types/cbomutils.d.ts +1 -1
- package/types/db.d.ts +9 -22
- package/types/display.d.ts +2 -1
- package/types/display.d.ts.map +1 -1
- package/types/docker.d.ts +33 -52
- package/types/docker.d.ts.map +1 -1
- package/types/envcontext.d.ts +40 -40
- package/types/evinser.d.ts +717 -3436
- package/types/index.d.ts +48 -67
- package/types/index.d.ts.map +1 -1
- package/types/jest.config.d.ts +2 -2
- package/types/piptree.d.ts +2 -6
- package/types/postgen.d.ts +1 -1
- package/types/protobom.d.ts +2 -6
- package/types/server.d.ts +1 -1
- package/types/utils.d.ts +344 -510
- package/types/utils.d.ts.map +1 -1
- package/types/validator.d.ts +1 -1
- package/utils.js +382 -41
- package/utils.test.js +207 -18
package/types/index.d.ts
CHANGED
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
* @param {Object} pkg Package object
|
|
8
8
|
* @param {string} ptype Package type
|
|
9
9
|
*/
|
|
10
|
-
export function listComponents(
|
|
11
|
-
options: any,
|
|
12
|
-
allImports: any,
|
|
13
|
-
pkg: any,
|
|
14
|
-
ptype?: string,
|
|
15
|
-
): any[];
|
|
10
|
+
export function listComponents(options: any, allImports: any, pkg: any, ptype?: string): any[];
|
|
16
11
|
/**
|
|
17
12
|
* Function to create bom string for Java jars
|
|
18
13
|
*
|
|
@@ -28,13 +23,10 @@ export function createJarBom(path: string, options: any): any;
|
|
|
28
23
|
* @param {string} path to the project
|
|
29
24
|
* @param {Object} options Parse options from the cli
|
|
30
25
|
*/
|
|
31
|
-
export function createAndroidBom(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
bomJson: any;
|
|
36
|
-
dependencies: any;
|
|
37
|
-
parentComponent: any;
|
|
26
|
+
export function createAndroidBom(path: string, options: any): {
|
|
27
|
+
bomJson: any;
|
|
28
|
+
dependencies: any;
|
|
29
|
+
parentComponent: any;
|
|
38
30
|
};
|
|
39
31
|
/**
|
|
40
32
|
* Function to create bom string for binaries using blint
|
|
@@ -42,13 +34,10 @@ export function createAndroidBom(
|
|
|
42
34
|
* @param {string} path to the project
|
|
43
35
|
* @param {Object} options Parse options from the cli
|
|
44
36
|
*/
|
|
45
|
-
export function createBinaryBom(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
bomJson: any;
|
|
50
|
-
dependencies: any;
|
|
51
|
-
parentComponent: any;
|
|
37
|
+
export function createBinaryBom(path: string, options: any): {
|
|
38
|
+
bomJson: any;
|
|
39
|
+
dependencies: any;
|
|
40
|
+
parentComponent: any;
|
|
52
41
|
};
|
|
53
42
|
/**
|
|
54
43
|
* Function to create bom string for Java projects
|
|
@@ -196,47 +185,44 @@ export function createCsharpBom(path: string, options: any): Promise<any>;
|
|
|
196
185
|
* @param {string} path to the project
|
|
197
186
|
* @param {Object} options Parse options from the cli
|
|
198
187
|
*/
|
|
199
|
-
export function createCryptoCertsBom(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}[];
|
|
220
|
-
}[];
|
|
221
|
-
};
|
|
188
|
+
export function createCryptoCertsBom(path: string, options: any): Promise<{
|
|
189
|
+
bomJson: {
|
|
190
|
+
components: {
|
|
191
|
+
name: string;
|
|
192
|
+
type: string;
|
|
193
|
+
version: string;
|
|
194
|
+
"bom-ref": string;
|
|
195
|
+
cryptoProperties: {
|
|
196
|
+
assetType: string;
|
|
197
|
+
algorithmProperties: {
|
|
198
|
+
executionEnvironment: string;
|
|
199
|
+
implementationPlatform: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
properties: {
|
|
203
|
+
name: string;
|
|
204
|
+
value: string;
|
|
205
|
+
}[];
|
|
206
|
+
}[];
|
|
207
|
+
};
|
|
222
208
|
}>;
|
|
223
|
-
export function mergeDependencies(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
export function trimComponents(components: any): any[];
|
|
209
|
+
export function mergeDependencies(dependencies: any, newDependencies: any, parentComponent?: {}): ({
|
|
210
|
+
ref: string;
|
|
211
|
+
dependsOn: any[];
|
|
212
|
+
provides: any[];
|
|
213
|
+
} | {
|
|
214
|
+
ref: string;
|
|
215
|
+
dependsOn: any[];
|
|
216
|
+
provides?: undefined;
|
|
217
|
+
})[];
|
|
218
|
+
/**
|
|
219
|
+
* Trim duplicate components by retaining all the properties
|
|
220
|
+
*
|
|
221
|
+
* @param {Array} components Components
|
|
222
|
+
*
|
|
223
|
+
* @returns {Array} Filtered components
|
|
224
|
+
*/
|
|
225
|
+
export function trimComponents(components: any[]): any[];
|
|
240
226
|
/**
|
|
241
227
|
* Dedupe components
|
|
242
228
|
*
|
|
@@ -247,12 +233,7 @@ export function trimComponents(components: any): any[];
|
|
|
247
233
|
*
|
|
248
234
|
* @returns {Object} Object including BOM Json
|
|
249
235
|
*/
|
|
250
|
-
export function dedupeBom(
|
|
251
|
-
options: any,
|
|
252
|
-
components: any[],
|
|
253
|
-
parentComponent: any,
|
|
254
|
-
dependencies: any[],
|
|
255
|
-
): any;
|
|
236
|
+
export function dedupeBom(options: any, components: any[], parentComponent: any, dependencies: any[]): any;
|
|
256
237
|
/**
|
|
257
238
|
* Function to create bom string for all languages
|
|
258
239
|
*
|
|
@@ -281,4 +262,4 @@ export function createBom(path: string, options: any): any;
|
|
|
281
262
|
* @param {Object} bomContents BOM Json
|
|
282
263
|
*/
|
|
283
264
|
export function submitBom(args: any, bomContents: any): Promise<any>;
|
|
284
|
-
//# sourceMappingURL=index.d.ts.map
|
|
265
|
+
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":"AA2tBA;;;;;;;;GAQG;AACH,gFAFW,MAAM,SAchB;AA4TD;;;;;;;GAOG;AACH,mCALW,MAAM,qBAiEhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM;;;;EAKhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM;;;;EAkBhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,8BA64BhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,8BAochB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,8BAgWhB;AAED;;;;;GAKG;AACH,kCAHW,MAAM,8BA8ThB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,8BAqIhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,8BAiDhB;AAED;;;;;GAKG;AACH,mCAHW,MAAM,qBA+KhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,qBAsHhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,qBA2BhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,qBA2BhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,qBA2BhB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,qBAuBhB;AAED;;;;;GAKG;AACH,kCAHW,MAAM,8BAqDhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,8BA4ChB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,qBA2BhB;AAED;;;;;GAKG;AACH,qCAHW,MAAM,8BAwFhB;AAED;;;;;GAKG;AACH,iDAHW,MAAM,qBA8ThB;AAED;;;;;GAKG;AACH,mCAHW,MAAM,qBAwJhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,8BAmFhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,8BA+VhB;AAED;;;;;GAKG;AACH,2CAHW,MAAM;;;;;;;;;;;;;;;;;;;;GAoChB;AAED;;;;;;;;KA8DC;AAED;;;;;;GAMG;AACH,yDAmCC;AAED;;;;;;;;;GASG;AACH,2GA6BC;AAED;;;;;GAKG;AACH,0CAHW,MAAM,8BAoZhB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,8BAkUhB;AAED;;;;;GAKG;AACH,gCAHW,MAAM,qBAuQhB;AAED;;;;;GAKG;AACH,qEAyFC"}
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export function postProcess(bomNSData: any, options: any): any;
|
|
2
2
|
export function applyStandards(bomJson: any, options: any): any;
|
|
3
3
|
export function filterBom(bomJson: any, options: any): any;
|
|
4
|
-
//# sourceMappingURL=postgen.d.ts.map
|
|
4
|
+
//# sourceMappingURL=postgen.d.ts.map
|
package/types/protobom.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
export function writeBinary(bomJson: string | any, binFile: string): void;
|
|
2
|
-
export function readBinary(
|
|
3
|
-
|
|
4
|
-
asJson?: boolean,
|
|
5
|
-
specVersion?: number,
|
|
6
|
-
): any;
|
|
7
|
-
//# sourceMappingURL=protobom.d.ts.map
|
|
2
|
+
export function readBinary(binFile: string, asJson?: boolean, specVersion?: number): any;
|
|
3
|
+
//# sourceMappingURL=protobom.d.ts.map
|
package/types/server.d.ts
CHANGED