@cyclonedx/cdxgen 10.5.1 → 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/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
- path: string,
33
- options: any,
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
- path: string,
47
- options: any,
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
- 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
- };
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
- 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
- )[];
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":"AAgtBA;;;;;;;;GAQG;AACH,gFAFW,MAAM,SAchB;AAwTD;;;;;;;GAOG;AACH,mCALW,MAAM,qBAiEhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM;;;;EAKhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM;;;;EAkBhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,8BA23BhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,8BAkZhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,8BAgWhB;AAED;;;;;GAKG;AACH,kCAHW,MAAM,8BAiThB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,8BAkGhB;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,8BAmRhB;AAED;;;;;GAKG;AACH,2CAHW,MAAM;;;;;;;;;;;;;;;;;;;;GAoChB;AAED;;;;;;;;KA8DC;AAED,uDAWC;AAED;;;;;;;;;GASG;AACH,2GA6BC;AAED;;;;;GAKG;AACH,0CAHW,MAAM,8BAoZhB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,8BAkUhB;AAED;;;;;GAKG;AACH,gCAHW,MAAM,qBAsQhB;AAED;;;;;GAKG;AACH,qEAyFC"}
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"}
@@ -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,6 +1,2 @@
1
- export function getTreeWithPlugin(
2
- env: any,
3
- python_cmd: any,
4
- basePath: any,
5
- ): any;
6
- //# sourceMappingURL=piptree.d.ts.map
1
+ export function getTreeWithPlugin(env: any, python_cmd: any, basePath: any): any;
2
+ //# sourceMappingURL=piptree.d.ts.map
@@ -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
@@ -1,7 +1,3 @@
1
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
2
+ export function readBinary(binFile: string, asJson?: boolean, specVersion?: number): any;
3
+ //# sourceMappingURL=protobom.d.ts.map
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