@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/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(options: any, allImports: any, pkg: any, ptype?: string): any[];
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(path: string, options: any): {
27
- bomJson: any;
28
- dependencies: any;
29
- parentComponent: any;
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(path: string, options: any): {
38
- bomJson: any;
39
- dependencies: any;
40
- parentComponent: any;
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(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
- };
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(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
- })[];
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(options: any, components: any[], parentComponent: any, dependencies: any[]): any;
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
@@ -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
- let transform: {};
7
+ let transform: {};
8
8
  }
9
9
  export default _default;
10
- //# sourceMappingURL=jest.config.d.ts.map
10
+ //# sourceMappingURL=jest.config.d.ts.map
@@ -1,2 +1,6 @@
1
- export function getTreeWithPlugin(env: any, python_cmd: any, basePath: any): any;
2
- //# sourceMappingURL=piptree.d.ts.map
1
+ export function getTreeWithPlugin(
2
+ env: any,
3
+ python_cmd: any,
4
+ basePath: any,
5
+ ): any;
6
+ //# sourceMappingURL=piptree.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export function postProcess(bomNSData: any, options: any): any;
2
2
  export function filterBom(bomJson: any, options: any): any;
3
- //# sourceMappingURL=postgen.d.ts.map
3
+ //# sourceMappingURL=postgen.d.ts.map
@@ -1,3 +1,7 @@
1
- export function writeBinary(bomJson: any, binFile: any): void;
2
- export function readBinary(binFile: any, asJson?: boolean): any;
3
- //# sourceMappingURL=protobom.d.ts.map
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
@@ -1 +1 @@
1
- {"version":3,"file":"protobom.d.ts","sourceRoot":"","sources":["../protobom.js"],"names":[],"mappings":"AAUO,8DAYN;AAEM,gEAWN"}
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
@@ -1,3 +1,3 @@
1
1
  export function configureServer(cdxgenServer: any): void;
2
2
  export function start(options: any): void;
3
- //# sourceMappingURL=server.d.ts.map
3
+ //# sourceMappingURL=server.d.ts.map