@cyclonedx/cdxgen 12.1.5 → 12.2.1

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.
Files changed (193) hide show
  1. package/README.md +51 -40
  2. package/bin/cdxgen.js +194 -97
  3. package/bin/evinse.js +4 -4
  4. package/bin/repl.js +1 -1
  5. package/bin/sign.js +102 -0
  6. package/bin/validate.js +233 -0
  7. package/bin/verify.js +69 -28
  8. package/data/queries.json +1 -1
  9. package/data/rules/ci-permissions.yaml +186 -0
  10. package/data/rules/dependency-sources.yaml +123 -0
  11. package/data/rules/package-integrity.yaml +135 -0
  12. package/data/rules/vscode-extensions.yaml +228 -0
  13. package/lib/cli/index.js +449 -429
  14. package/lib/cli/index.poku.js +117 -0
  15. package/lib/evinser/db.js +137 -0
  16. package/lib/{helpers → evinser}/db.poku.js +2 -6
  17. package/lib/evinser/evinser.js +2 -14
  18. package/lib/helpers/analyzer.js +606 -3
  19. package/lib/helpers/analyzer.poku.js +230 -0
  20. package/lib/helpers/bomSigner.js +312 -0
  21. package/lib/helpers/bomSigner.poku.js +156 -0
  22. package/lib/helpers/ciParsers/azurePipelines.js +295 -0
  23. package/lib/helpers/ciParsers/azurePipelines.poku.js +253 -0
  24. package/lib/helpers/ciParsers/circleCi.js +286 -0
  25. package/lib/helpers/ciParsers/circleCi.poku.js +230 -0
  26. package/lib/helpers/ciParsers/common.js +24 -0
  27. package/lib/helpers/ciParsers/githubActions.js +636 -0
  28. package/lib/helpers/ciParsers/githubActions.poku.js +802 -0
  29. package/lib/helpers/ciParsers/gitlabCi.js +213 -0
  30. package/lib/helpers/ciParsers/gitlabCi.poku.js +247 -0
  31. package/lib/helpers/ciParsers/jenkins.js +181 -0
  32. package/lib/helpers/ciParsers/jenkins.poku.js +197 -0
  33. package/lib/helpers/depsUtils.js +219 -0
  34. package/lib/helpers/depsUtils.poku.js +207 -0
  35. package/lib/helpers/display.js +426 -5
  36. package/lib/helpers/envcontext.js +18 -3
  37. package/lib/helpers/formulationParsers.js +351 -0
  38. package/lib/helpers/logger.js +14 -0
  39. package/lib/helpers/protobom.js +9 -9
  40. package/lib/helpers/pythonutils.js +9 -0
  41. package/lib/helpers/remote/dependency-track.js +84 -0
  42. package/lib/helpers/remote/dependency-track.poku.js +119 -0
  43. package/lib/helpers/table.js +384 -0
  44. package/lib/helpers/table.poku.js +186 -0
  45. package/lib/helpers/utils.js +865 -416
  46. package/lib/helpers/utils.poku.js +172 -265
  47. package/lib/helpers/versutils.js +202 -0
  48. package/lib/helpers/versutils.poku.js +315 -0
  49. package/lib/helpers/vsixutils.js +1061 -0
  50. package/lib/helpers/vsixutils.poku.js +2247 -0
  51. package/lib/managers/binary.js +19 -19
  52. package/lib/managers/docker.js +108 -1
  53. package/lib/managers/oci.js +10 -0
  54. package/lib/managers/piptree.js +3 -9
  55. package/lib/parsers/npmrc.js +17 -13
  56. package/lib/parsers/npmrc.poku.js +41 -5
  57. package/lib/server/openapi.yaml +34 -1
  58. package/lib/server/server.js +50 -13
  59. package/lib/server/server.poku.js +332 -144
  60. package/lib/stages/postgen/annotator.js +1 -1
  61. package/lib/stages/postgen/auditBom.js +196 -0
  62. package/lib/stages/postgen/auditBom.poku.js +378 -0
  63. package/lib/stages/postgen/postgen.js +54 -1
  64. package/lib/stages/postgen/postgen.poku.js +90 -1
  65. package/lib/stages/postgen/ruleEngine.js +369 -0
  66. package/lib/stages/pregen/envAudit.js +299 -0
  67. package/lib/stages/pregen/envAudit.poku.js +572 -0
  68. package/lib/stages/pregen/pregen.js +12 -8
  69. package/lib/{helpers/validator.js → validator/bomValidator.js} +107 -47
  70. package/lib/validator/complianceEngine.js +241 -0
  71. package/lib/validator/complianceEngine.poku.js +168 -0
  72. package/lib/validator/complianceRules.js +1610 -0
  73. package/lib/validator/complianceRules.poku.js +328 -0
  74. package/lib/validator/index.js +222 -0
  75. package/lib/validator/index.poku.js +144 -0
  76. package/lib/validator/reporters/annotations.js +121 -0
  77. package/lib/validator/reporters/console.js +149 -0
  78. package/lib/validator/reporters/index.js +41 -0
  79. package/lib/validator/reporters/json.js +37 -0
  80. package/lib/validator/reporters/sarif.js +184 -0
  81. package/lib/validator/reporters.poku.js +150 -0
  82. package/package.json +8 -9
  83. package/types/bin/sign.d.ts +3 -0
  84. package/types/bin/sign.d.ts.map +1 -0
  85. package/types/bin/validate.d.ts +3 -0
  86. package/types/bin/validate.d.ts.map +1 -0
  87. package/types/helpers/utils.d.ts +0 -1
  88. package/types/lib/cli/index.d.ts +49 -52
  89. package/types/lib/cli/index.d.ts.map +1 -1
  90. package/types/lib/evinser/db.d.ts +34 -0
  91. package/types/lib/evinser/db.d.ts.map +1 -0
  92. package/types/lib/evinser/evinser.d.ts +63 -16
  93. package/types/lib/evinser/evinser.d.ts.map +1 -1
  94. package/types/lib/helpers/analyzer.d.ts.map +1 -1
  95. package/types/lib/helpers/bomSigner.d.ts +27 -0
  96. package/types/lib/helpers/bomSigner.d.ts.map +1 -0
  97. package/types/lib/helpers/ciParsers/azurePipelines.d.ts +17 -0
  98. package/types/lib/helpers/ciParsers/azurePipelines.d.ts.map +1 -0
  99. package/types/lib/helpers/ciParsers/circleCi.d.ts +17 -0
  100. package/types/lib/helpers/ciParsers/circleCi.d.ts.map +1 -0
  101. package/types/lib/helpers/ciParsers/common.d.ts +11 -0
  102. package/types/lib/helpers/ciParsers/common.d.ts.map +1 -0
  103. package/types/lib/helpers/ciParsers/githubActions.d.ts +34 -0
  104. package/types/lib/helpers/ciParsers/githubActions.d.ts.map +1 -0
  105. package/types/lib/helpers/ciParsers/gitlabCi.d.ts +17 -0
  106. package/types/lib/helpers/ciParsers/gitlabCi.d.ts.map +1 -0
  107. package/types/lib/helpers/ciParsers/jenkins.d.ts +17 -0
  108. package/types/lib/helpers/ciParsers/jenkins.d.ts.map +1 -0
  109. package/types/lib/helpers/depsUtils.d.ts +21 -0
  110. package/types/lib/helpers/depsUtils.d.ts.map +1 -0
  111. package/types/lib/helpers/display.d.ts +111 -11
  112. package/types/lib/helpers/display.d.ts.map +1 -1
  113. package/types/lib/helpers/envcontext.d.ts +19 -7
  114. package/types/lib/helpers/envcontext.d.ts.map +1 -1
  115. package/types/lib/helpers/formulationParsers.d.ts +50 -0
  116. package/types/lib/helpers/formulationParsers.d.ts.map +1 -0
  117. package/types/lib/helpers/logger.d.ts +15 -1
  118. package/types/lib/helpers/logger.d.ts.map +1 -1
  119. package/types/lib/helpers/protobom.d.ts +2 -2
  120. package/types/lib/helpers/pythonutils.d.ts +10 -1
  121. package/types/lib/helpers/pythonutils.d.ts.map +1 -1
  122. package/types/lib/helpers/remote/dependency-track.d.ts +16 -0
  123. package/types/lib/helpers/remote/dependency-track.d.ts.map +1 -0
  124. package/types/lib/helpers/table.d.ts +6 -0
  125. package/types/lib/helpers/table.d.ts.map +1 -0
  126. package/types/lib/helpers/utils.d.ts +533 -128
  127. package/types/lib/helpers/utils.d.ts.map +1 -1
  128. package/types/lib/helpers/versutils.d.ts +8 -0
  129. package/types/lib/helpers/versutils.d.ts.map +1 -0
  130. package/types/lib/helpers/vsixutils.d.ts +130 -0
  131. package/types/lib/helpers/vsixutils.d.ts.map +1 -0
  132. package/types/lib/managers/docker.d.ts +12 -31
  133. package/types/lib/managers/docker.d.ts.map +1 -1
  134. package/types/lib/managers/oci.d.ts +11 -1
  135. package/types/lib/managers/oci.d.ts.map +1 -1
  136. package/types/lib/managers/piptree.d.ts.map +1 -1
  137. package/types/lib/parsers/npmrc.d.ts +4 -1
  138. package/types/lib/parsers/npmrc.d.ts.map +1 -1
  139. package/types/lib/server/server.d.ts +22 -2
  140. package/types/lib/server/server.d.ts.map +1 -1
  141. package/types/lib/stages/postgen/auditBom.d.ts +20 -0
  142. package/types/lib/stages/postgen/auditBom.d.ts.map +1 -0
  143. package/types/lib/stages/postgen/postgen.d.ts +8 -1
  144. package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
  145. package/types/lib/stages/postgen/ruleEngine.d.ts +18 -0
  146. package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -0
  147. package/types/lib/stages/pregen/envAudit.d.ts +8 -0
  148. package/types/lib/stages/pregen/envAudit.d.ts.map +1 -0
  149. package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
  150. package/types/lib/{helpers/validator.d.ts → validator/bomValidator.d.ts} +1 -1
  151. package/types/lib/validator/bomValidator.d.ts.map +1 -0
  152. package/types/lib/validator/complianceEngine.d.ts +66 -0
  153. package/types/lib/validator/complianceEngine.d.ts.map +1 -0
  154. package/types/lib/validator/complianceRules.d.ts +70 -0
  155. package/types/lib/validator/complianceRules.d.ts.map +1 -0
  156. package/types/lib/validator/index.d.ts +70 -0
  157. package/types/lib/validator/index.d.ts.map +1 -0
  158. package/types/lib/validator/reporters/annotations.d.ts +31 -0
  159. package/types/lib/validator/reporters/annotations.d.ts.map +1 -0
  160. package/types/lib/validator/reporters/console.d.ts +30 -0
  161. package/types/lib/validator/reporters/console.d.ts.map +1 -0
  162. package/types/lib/validator/reporters/index.d.ts +21 -0
  163. package/types/lib/validator/reporters/index.d.ts.map +1 -0
  164. package/types/lib/validator/reporters/json.d.ts +11 -0
  165. package/types/lib/validator/reporters/json.d.ts.map +1 -0
  166. package/types/lib/validator/reporters/sarif.d.ts +16 -0
  167. package/types/lib/validator/reporters/sarif.d.ts.map +1 -0
  168. package/lib/helpers/db.js +0 -162
  169. package/lib/stages/pregen/env-audit.js +0 -34
  170. package/lib/stages/pregen/env-audit.poku.js +0 -290
  171. package/types/helpers/db.d.ts +0 -35
  172. package/types/helpers/db.d.ts.map +0 -1
  173. package/types/lib/helpers/db.d.ts +0 -35
  174. package/types/lib/helpers/db.d.ts.map +0 -1
  175. package/types/lib/helpers/validator.d.ts.map +0 -1
  176. package/types/lib/stages/pregen/env-audit.d.ts +0 -2
  177. package/types/lib/stages/pregen/env-audit.d.ts.map +0 -1
  178. package/types/managers/binary.d.ts +0 -37
  179. package/types/managers/binary.d.ts.map +0 -1
  180. package/types/managers/docker.d.ts +0 -56
  181. package/types/managers/docker.d.ts.map +0 -1
  182. package/types/managers/oci.d.ts +0 -2
  183. package/types/managers/oci.d.ts.map +0 -1
  184. package/types/managers/piptree.d.ts +0 -2
  185. package/types/managers/piptree.d.ts.map +0 -1
  186. package/types/server/server.d.ts +0 -34
  187. package/types/server/server.d.ts.map +0 -1
  188. package/types/stages/postgen/annotator.d.ts +0 -27
  189. package/types/stages/postgen/annotator.d.ts.map +0 -1
  190. package/types/stages/postgen/postgen.d.ts +0 -51
  191. package/types/stages/postgen/postgen.d.ts.map +0 -1
  192. package/types/stages/pregen/pregen.d.ts +0 -59
  193. package/types/stages/pregen/pregen.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclonedx/cdxgen",
3
- "version": "12.1.5",
3
+ "version": "12.2.1",
4
4
  "description": "Creates CycloneDX Software Bill of Materials (SBOM) from source or container image",
5
5
  "keywords": [
6
6
  "sbom",
@@ -82,7 +82,9 @@
82
82
  "types": "./types/lib/cli/index.d.ts",
83
83
  "bin": {
84
84
  "cbom": "bin/cdxgen.js",
85
+ "cdx-validate": "bin/validate.js",
85
86
  "cdx-verify": "bin/verify.js",
87
+ "cdx-sign": "bin/sign.js",
86
88
  "cdxgen": "bin/cdxgen.js",
87
89
  "cdxgen-secure": "bin/cdxgen.js",
88
90
  "cdxi": "bin/repl.js",
@@ -117,7 +119,6 @@
117
119
  "got": "14.6.6",
118
120
  "iconv-lite": "0.7.2",
119
121
  "json-stringify-nice": "1.1.4",
120
- "jws": "4.0.1",
121
122
  "keyv": "5.6.0",
122
123
  "node-stream-zip": "1.15.0",
123
124
  "npm-package-arg": "13.0.2",
@@ -128,7 +129,6 @@
128
129
  "read-package-json-fast": "5.0.0",
129
130
  "semver": "7.7.4",
130
131
  "ssri": "13.0.1",
131
- "table": "6.9.0",
132
132
  "tar": "7.5.13",
133
133
  "treeverse": "3.0.0",
134
134
  "uuid": "13.0.0",
@@ -139,17 +139,16 @@
139
139
  "yoctocolors": "2.1.2"
140
140
  },
141
141
  "devDependencies": {
142
- "@biomejs/biome": "2.4.10",
142
+ "@biomejs/biome": "2.4.12",
143
143
  "esmock": "2.7.3",
144
- "poku": "4.2.0",
145
- "sinon": "21.0.3",
144
+ "poku": "4.2.1",
145
+ "sinon": "21.1.2",
146
146
  "typescript": "6.0.2"
147
147
  },
148
148
  "optionalDependencies": {
149
149
  "@appthreat/atom": "2.5.2",
150
- "@appthreat/atom-parsetools": "1.1.3",
151
- "@appthreat/cdx-proto": "1.2.1",
152
- "@appthreat/sqlite3": "8.0.1",
150
+ "@appthreat/atom-parsetools": "1.1.4",
151
+ "@appthreat/cdx-proto": "1.3.0",
153
152
  "@bufbuild/protobuf": "2.11.0",
154
153
  "@cdxgen/cdxgen-plugins-bin": "2.0.3",
155
154
  "@cdxgen/cdxgen-plugins-bin-darwin-amd64": "2.0.3",
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=sign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../bin/sign.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../bin/validate.js"],"names":[],"mappings":""}
@@ -1540,7 +1540,6 @@ export const dirNameStr: any;
1540
1540
  export const isSecureMode: any;
1541
1541
  export const isWin: boolean;
1542
1542
  export const isMac: boolean;
1543
- export let ATOM_DB: any;
1544
1543
  export const commandsExecuted: any;
1545
1544
  export const frameworksList: any;
1546
1545
  export const CDXGEN_VERSION: any;
@@ -6,8 +6,9 @@
6
6
  * @param {Object} allImports All imports
7
7
  * @param {Object} pkg Package object
8
8
  * @param {string} ptype Package type
9
+ * @returns {Object[]} Array of component objects
9
10
  */
10
- export function listComponents(options: Object, allImports: Object, pkg: Object, ptype?: string): any[];
11
+ export function listComponents(options: Object, allImports: Object, pkg: Object, ptype?: string): Object[];
11
12
  /**
12
13
  * Function to create bom string for Java jars
13
14
  *
@@ -22,28 +23,23 @@ export function createJarBom(path: string, options: Object): Object;
22
23
  *
23
24
  * @param {string} path to the project
24
25
  * @param {Object} options Parse options from the cli
26
+ * @returns {Object|undefined} BOM object
25
27
  */
26
- export function createAndroidBom(path: string, options: Object): {
27
- bomJson: any;
28
- dependencies: any;
29
- parentComponent: any;
30
- } | undefined;
28
+ export function createAndroidBom(path: string, options: Object): Object | undefined;
31
29
  /**
32
30
  * Function to create bom string for binaries using blint
33
31
  *
34
32
  * @param {string} path to the project
35
33
  * @param {Object} options Parse options from the cli
34
+ * @returns {Object|undefined} BOM object
36
35
  */
37
- export function createBinaryBom(path: string, options: Object): {
38
- bomJson: any;
39
- dependencies: any;
40
- parentComponent: any;
41
- } | undefined;
36
+ export function createBinaryBom(path: string, options: Object): Object | undefined;
42
37
  /**
43
38
  * Function to create bom string for Java projects
44
39
  *
45
40
  * @param {string} path to the project
46
41
  * @param {Object} options Parse options from the cli
42
+ * @returns {Promise<Object>} Promise resolving to BOM object
47
43
  */
48
44
  export function createJavaBom(path: string, options: Object): Promise<Object>;
49
45
  /**
@@ -51,6 +47,7 @@ export function createJavaBom(path: string, options: Object): Promise<Object>;
51
47
  *
52
48
  * @param {string} path to the project
53
49
  * @param {Object} options Parse options from the cli
50
+ * @returns {Promise<Object>} Promise resolving to BOM object
54
51
  */
55
52
  export function createNodejsBom(path: string, options: Object): Promise<Object>;
56
53
  /**
@@ -63,6 +60,7 @@ export function createNodejsBom(path: string, options: Object): Promise<Object>;
63
60
  *
64
61
  * @param {String} path
65
62
  * @param {Object} options
63
+ * @returns {Object | null} BOM object, or `null` when `pixi.lock` is absent and `options.installDeps` is false
66
64
  */
67
65
  export function createPixiBom(path: string, options: Object): Object | null;
68
66
  /**
@@ -70,6 +68,7 @@ export function createPixiBom(path: string, options: Object): Object | null;
70
68
  *
71
69
  * @param {string} path to the project
72
70
  * @param {Object} options Parse options from the cli
71
+ * @returns {Promise<Object>} Promise resolving to BOM object
73
72
  */
74
73
  export function createPythonBom(path: string, options: Object): Promise<Object>;
75
74
  /**
@@ -77,6 +76,7 @@ export function createPythonBom(path: string, options: Object): Promise<Object>;
77
76
  *
78
77
  * @param {string} path to the project
79
78
  * @param {Object} options Parse options from the cli
79
+ * @returns {Promise<Object | undefined>} Promise resolving to a BOM object or `undefined`
80
80
  */
81
81
  export function createGoBom(path: string, options: Object): Promise<Object | undefined>;
82
82
  /**
@@ -84,6 +84,7 @@ export function createGoBom(path: string, options: Object): Promise<Object | und
84
84
  *
85
85
  * @param {string} path to the project
86
86
  * @param {Object} options Parse options from the cli
87
+ * @returns {Promise<Object|undefined>} Promise resolving to a BOM object or undefined
87
88
  */
88
89
  export function createRustBom(path: string, options: Object): Promise<Object | undefined>;
89
90
  /**
@@ -91,6 +92,7 @@ export function createRustBom(path: string, options: Object): Promise<Object | u
91
92
  *
92
93
  * @param {string} path to the project
93
94
  * @param {Object} options Parse options from the cli
95
+ * @returns {Promise<Object>} Promise resolving to BOM object
94
96
  */
95
97
  export function createDartBom(path: string, options: Object): Promise<Object>;
96
98
  /**
@@ -98,6 +100,7 @@ export function createDartBom(path: string, options: Object): Promise<Object>;
98
100
  *
99
101
  * @param {string} path to the project
100
102
  * @param {Object} options Parse options from the cli
103
+ * @returns {Object} BOM object
101
104
  */
102
105
  export function createCppBom(path: string, options: Object): Object;
103
106
  /**
@@ -105,6 +108,7 @@ export function createCppBom(path: string, options: Object): Object;
105
108
  *
106
109
  * @param {string} path to the project
107
110
  * @param {Object} options Parse options from the cli
111
+ * @returns {Object} BOM object
108
112
  */
109
113
  export function createClojureBom(path: string, options: Object): Object;
110
114
  /**
@@ -112,6 +116,7 @@ export function createClojureBom(path: string, options: Object): Object;
112
116
  *
113
117
  * @param {string} path to the project
114
118
  * @param {Object} options Parse options from the cli
119
+ * @returns {Object} BOM object
115
120
  */
116
121
  export function createHaskellBom(path: string, options: Object): Object;
117
122
  /**
@@ -119,6 +124,7 @@ export function createHaskellBom(path: string, options: Object): Object;
119
124
  *
120
125
  * @param {string} path to the project
121
126
  * @param {Object} options Parse options from the cli
127
+ * @returns {Object} BOM object
122
128
  */
123
129
  export function createElixirBom(path: string, options: Object): Object;
124
130
  /**
@@ -126,6 +132,7 @@ export function createElixirBom(path: string, options: Object): Object;
126
132
  *
127
133
  * @param {string} path to the project
128
134
  * @param {Object} options Parse options from the cli
135
+ * @returns {Object} BOM object
129
136
  */
130
137
  export function createGitHubBom(path: string, options: Object): Object;
131
138
  /**
@@ -133,6 +140,7 @@ export function createGitHubBom(path: string, options: Object): Object;
133
140
  *
134
141
  * @param {string} path to the project
135
142
  * @param {Object} options Parse options from the cli
143
+ * @returns {Object} BOM object
136
144
  */
137
145
  export function createCloudBuildBom(path: string, options: Object): Object;
138
146
  /**
@@ -140,6 +148,7 @@ export function createCloudBuildBom(path: string, options: Object): Object;
140
148
  *
141
149
  * @param {string} _path to the project
142
150
  * @param {Object} options Parse options from the cli
151
+ * @returns {Promise<Object>} Promise resolving to BOM object
143
152
  */
144
153
  export function createOSBom(_path: string, options: Object): Promise<Object>;
145
154
  /**
@@ -147,6 +156,7 @@ export function createOSBom(_path: string, options: Object): Promise<Object>;
147
156
  *
148
157
  * @param {string} path to the project
149
158
  * @param {Object} options Parse options from the cli
159
+ * @returns {Promise<Object>} Promise resolving to BOM object
150
160
  */
151
161
  export function createJenkinsBom(path: string, options: Object): Promise<Object>;
152
162
  /**
@@ -154,6 +164,7 @@ export function createJenkinsBom(path: string, options: Object): Promise<Object>
154
164
  *
155
165
  * @param {string} path to the project
156
166
  * @param {Object} options Parse options from the cli
167
+ * @returns {Object} BOM object
157
168
  */
158
169
  export function createHelmBom(path: string, options: Object): Object;
159
170
  /**
@@ -161,6 +172,7 @@ export function createHelmBom(path: string, options: Object): Object;
161
172
  *
162
173
  * @param {string} path to the project
163
174
  * @param {Object} options Parse options from the cli
175
+ * @returns {Promise<Object>} Promise resolving to BOM object
164
176
  */
165
177
  export function createSwiftBom(path: string, options: Object): Promise<Object>;
166
178
  /**
@@ -168,6 +180,7 @@ export function createSwiftBom(path: string, options: Object): Promise<Object>;
168
180
  *
169
181
  * @param {string} path to the project
170
182
  * @param {Object} options Parse options from the cli
183
+ * @returns {Promise<Object | undefined>} Promise resolving to a BOM object, or `undefined` when no Podfiles are found
171
184
  */
172
185
  export function createCocoaBom(path: string, options: Object): Promise<Object | undefined>;
173
186
  /**
@@ -175,6 +188,7 @@ export function createCocoaBom(path: string, options: Object): Promise<Object |
175
188
  *
176
189
  * @param {string} path to the project
177
190
  * @param {Object} options Parse options from the cli
191
+ * @returns {Promise<Object>} Promise resolving to BOM object
178
192
  */
179
193
  export function createNixBom(path: string, options: Object): Promise<Object>;
180
194
  /**
@@ -182,6 +196,7 @@ export function createNixBom(path: string, options: Object): Promise<Object>;
182
196
  *
183
197
  * @param {string} path to the project
184
198
  * @param {Object} options Parse options from the cli
199
+ * @returns {Promise<Object>} Promise resolving to BOM object
185
200
  */
186
201
  export function createCaxaBom(path: string, options: Object): Promise<Object>;
187
202
  /**
@@ -189,13 +204,15 @@ export function createCaxaBom(path: string, options: Object): Promise<Object>;
189
204
  *
190
205
  * @param {string} path to the project
191
206
  * @param {Object} options Parse options from the cli
207
+ * @returns {Promise<Object>} Promise resolving to BOM object
192
208
  */
193
- export function createContainerSpecLikeBom(path: string, options: Object): any;
209
+ export function createContainerSpecLikeBom(path: string, options: Object): Promise<Object>;
194
210
  /**
195
211
  * Function to create bom string for php projects
196
212
  *
197
213
  * @param {string} path to the project
198
214
  * @param {Object} options Parse options from the cli
215
+ * @returns {Object} BOM object
199
216
  */
200
217
  export function createPHPBom(path: string, options: Object): Object;
201
218
  /**
@@ -203,6 +220,7 @@ export function createPHPBom(path: string, options: Object): Object;
203
220
  *
204
221
  * @param {string} path to the project
205
222
  * @param {Object} options Parse options from the cli
223
+ * @returns {Promise<Object>} Promise resolving to BOM object
206
224
  */
207
225
  export function createRubyBom(path: string, options: Object): Promise<Object>;
208
226
  /**
@@ -210,52 +228,28 @@ export function createRubyBom(path: string, options: Object): Promise<Object>;
210
228
  *
211
229
  * @param {string} path to the project
212
230
  * @param {Object} options Parse options from the cli
231
+ * @returns {Promise<Object|undefined>} Promise resolving to BOM object
213
232
  */
214
233
  export function createCsharpBom(path: string, options: Object): Promise<Object | undefined>;
215
234
  /**
216
- * Function to create bom object for cryptographic certificate files
235
+ * Function to create BOM for VS Code / IDE extensions.
236
+ * Supports two modes:
237
+ * 1. Directory scan: Discovers `.vsix` files and installed extension directories
238
+ * 2. IDE discovery: Automatically finds extensions installed by known IDEs
217
239
  *
218
- * @param {string} path to the project
240
+ * @param {string} path to the project or directory to scan
219
241
  * @param {Object} options Parse options from the cli
242
+ * @returns {Promise<Object>} Promise resolving to BOM object
220
243
  */
221
- export function createCryptoCertsBom(path: string, options: Object): Promise<{
222
- bomJson: {
223
- components: {
224
- name: any;
225
- type: string;
226
- version: string;
227
- "bom-ref": string;
228
- cryptoProperties: {
229
- assetType: string;
230
- algorithmProperties: {
231
- executionEnvironment: string;
232
- implementationPlatform: string;
233
- };
234
- };
235
- properties: {
236
- name: string;
237
- value: any;
238
- }[];
239
- }[];
240
- };
241
- }>;
242
- export function mergeDependencies(dependencies: any, newDependencies: any, parentComponent?: {}): ({
243
- ref: string;
244
- dependsOn: any[];
245
- provides: any[];
246
- } | {
247
- ref: string;
248
- dependsOn: any[];
249
- provides?: undefined;
250
- })[];
251
- /**
252
- * Trim duplicate components by retaining all the properties
253
- *
254
- * @param {Array} components Components
244
+ export function createVscodeExtensionBom(path: string, options: Object): Promise<Object>;
245
+ /**
246
+ * Function to create bom object for cryptographic certificate files
255
247
  *
256
- * @returns {Array} Filtered components
248
+ * @param {string} path to the project
249
+ * @param {Object} options Parse options from the cli
250
+ * @returns {Promise<Object>} Promise resolving to BOM object
257
251
  */
258
- export function trimComponents(components: any[]): any[];
252
+ export function createCryptoCertsBom(path: string, options: Object): Promise<Object>;
259
253
  /**
260
254
  * Dedupe components
261
255
  *
@@ -272,6 +266,7 @@ export function dedupeBom(options: Object, components: any[], parentComponent: O
272
266
  *
273
267
  * @param {string[]} pathList list of to the project
274
268
  * @param {Object} options Parse options from the cli
269
+ * @returns {Promise<Object>} Promise resolving to BOM object
275
270
  */
276
271
  export function createMultiXBom(pathList: string[], options: Object): Promise<Object>;
277
272
  /**
@@ -279,15 +274,17 @@ export function createMultiXBom(pathList: string[], options: Object): Promise<Ob
279
274
  *
280
275
  * @param {string} path to the project
281
276
  * @param {Object} options Parse options from the cli
277
+ * @returns {Promise<Object|undefined>} Promise resolving to BOM object, or undefined if path is not readable
282
278
  */
283
- export function createXBom(path: string, options: Object): Promise<any>;
279
+ export function createXBom(path: string, options: Object): Promise<Object | undefined>;
284
280
  /**
285
281
  * Function to create bom string for various languages
286
282
  *
287
283
  * @param {string} path to the project
288
284
  * @param {Object} options Parse options from the cli
285
+ * @returns {Promise<Object>} Promise resolving to BOM object
289
286
  */
290
- export function createBom(path: string, options: Object): any;
287
+ export function createBom(path: string, options: Object): Promise<Object>;
291
288
  /**
292
289
  * Method to submit the generated bom to dependency-track or cyclonedx server
293
290
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"AAk+BA;;;;;;;;GAQG;AACH,wCALW,MAAM,cACN,MAAM,OACN,MAAM,UACN,MAAM,SAchB;AAqYD;;;;;;;GAOG;AACH,mCALW,MAAM,WACN,MAAM,GAEJ,MAAM,CA0ElB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,WACN,MAAM;;;;cAIhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,WACN,MAAM;;;;cAiBhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,WACN,MAAM,mBAytChB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,WACN,MAAM,mBA24BhB;AAED;;;;;;;;;;GAUG;AACH,qDAFW,MAAM,iBAwEhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,WACN,MAAM,mBAuhBhB;AAED;;;;;GAKG;AACH,kCAHW,MAAM,WACN,MAAM,+BAoahB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,WACN,MAAM,+BAqIhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,WACN,MAAM,mBAiEhB;AAED;;;;;GAKG;AACH,mCAHW,MAAM,WACN,MAAM,UA6MhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,WACN,MAAM,UA+GhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,WACN,MAAM,UA0BhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,WACN,MAAM,UA0BhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,WACN,MAAM,UAyBhB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,WACN,MAAM,UAsBhB;AAED;;;;;GAKG;AACH,mCAHW,MAAM,WACN,MAAM,mBAoDhB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,WACN,MAAM,mBA2ChB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,WACN,MAAM,UA0BhB;AAED;;;;;GAKG;AACH,qCAHW,MAAM,WACN,MAAM,mBA0IhB;AAED;;;;;GAKG;AACH,qCAHW,MAAM,WACN,MAAM,+BAoJhB;AAED;;;;;GAKG;AACH,mCAHW,MAAM,WACN,MAAM,mBAoHhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,WACN,MAAM,mBA6ChB;AAED;;;;;GAKG;AACH,iDAHW,MAAM,WACN,MAAM,OAkUhB;AAED;;;;;GAKG;AACH,mCAHW,MAAM,WACN,MAAM,UA0JhB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,WACN,MAAM,mBAuPhB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,WACN,MAAM,+BAkbhB;AAED;;;;;GAKG;AACH,2CAHW,MAAM,WACN,MAAM;;;;;;;;;;;;;;;;;;;;GAmChB;AAED;;;;;;;;KA+DC;AAED;;;;;;GAMG;AACH,yDA+GC;AAED;;;;;;;;;GASG;AACH,mCAPW,MAAM,sCAEN,MAAM,wBAGJ,MAAM,CAyClB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,EAAE,WACR,MAAM,mBAuyBhB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,WACN,MAAM,gBAmVhB;AAED;;;;;GAKG;AACH,gCAHW,MAAM,WACN,MAAM,OAgRhB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,eACN,MAAM,GACL,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CA0IjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ export function createOrLoad(): Promise<{
2
+ sequelize: {
3
+ close: () => boolean;
4
+ };
5
+ Namespaces: Model;
6
+ Usages: Model;
7
+ DataFlows: Model;
8
+ }>;
9
+ declare class Model {
10
+ constructor(tableName: any);
11
+ tableName: any;
12
+ store: Map<any, any>;
13
+ init(): Promise<void>;
14
+ findByPk(purl: any): Promise<{
15
+ purl: any;
16
+ data: any;
17
+ createdAt: any;
18
+ updatedAt: any;
19
+ } | null>;
20
+ findOrCreate(options: any): Promise<(boolean | {
21
+ purl: any;
22
+ data: any;
23
+ createdAt: any;
24
+ updatedAt: any;
25
+ })[]>;
26
+ findAll(options: any): Promise<{
27
+ purl: any;
28
+ data: any;
29
+ createdAt: any;
30
+ updatedAt: any;
31
+ }[]>;
32
+ }
33
+ export {};
34
+ //# sourceMappingURL=db.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../lib/evinser/db.js"],"names":[],"mappings":"AAmHO;;;;;;;GAqBN;AAxID;IACE,4BAGC;IAFC,eAA0B;IAC1B,qBAAsB;IAGxB,sBAEC;IAED;;;;;cAoBC;IAED;;;;;UA2CC;IAED;;;;;SAmCC;CACF"}
@@ -4,30 +4,77 @@
4
4
  * @param {Object} options Command line options
5
5
  */
6
6
  export function prepareDB(options: Object): Promise<{
7
- sequelize: any;
7
+ sequelize: {
8
+ close: () => boolean;
9
+ };
8
10
  Namespaces: {
9
- db: any;
10
11
  tableName: any;
11
- init(): Promise<any>;
12
- findByPk(purl: any): Promise<any>;
13
- findOrCreate(options: Object): Promise<any>;
14
- findAll(options: Object): Promise<any>;
12
+ store: Map<any, any>;
13
+ init(): Promise<void>;
14
+ findByPk(purl: any): Promise<{
15
+ purl: any;
16
+ data: any;
17
+ createdAt: any;
18
+ updatedAt: any;
19
+ } | null>;
20
+ findOrCreate(options: any): Promise<(boolean | {
21
+ purl: any;
22
+ data: any;
23
+ createdAt: any;
24
+ updatedAt: any;
25
+ })[]>;
26
+ findAll(options: any): Promise<{
27
+ purl: any;
28
+ data: any;
29
+ createdAt: any;
30
+ updatedAt: any;
31
+ }[]>;
15
32
  };
16
33
  Usages: {
17
- db: any;
18
34
  tableName: any;
19
- init(): Promise<any>;
20
- findByPk(purl: any): Promise<any>;
21
- findOrCreate(options: Object): Promise<any>;
22
- findAll(options: Object): Promise<any>;
35
+ store: Map<any, any>;
36
+ init(): Promise<void>;
37
+ findByPk(purl: any): Promise<{
38
+ purl: any;
39
+ data: any;
40
+ createdAt: any;
41
+ updatedAt: any;
42
+ } | null>;
43
+ findOrCreate(options: any): Promise<(boolean | {
44
+ purl: any;
45
+ data: any;
46
+ createdAt: any;
47
+ updatedAt: any;
48
+ })[]>;
49
+ findAll(options: any): Promise<{
50
+ purl: any;
51
+ data: any;
52
+ createdAt: any;
53
+ updatedAt: any;
54
+ }[]>;
23
55
  };
24
56
  DataFlows: {
25
- db: any;
26
57
  tableName: any;
27
- init(): Promise<any>;
28
- findByPk(purl: any): Promise<any>;
29
- findOrCreate(options: Object): Promise<any>;
30
- findAll(options: Object): Promise<any>;
58
+ store: Map<any, any>;
59
+ init(): Promise<void>;
60
+ findByPk(purl: any): Promise<{
61
+ purl: any;
62
+ data: any;
63
+ createdAt: any;
64
+ updatedAt: any;
65
+ } | null>;
66
+ findOrCreate(options: any): Promise<(boolean | {
67
+ purl: any;
68
+ data: any;
69
+ createdAt: any;
70
+ updatedAt: any;
71
+ })[]>;
72
+ findAll(options: any): Promise<{
73
+ purl: any;
74
+ data: any;
75
+ createdAt: any;
76
+ updatedAt: any;
77
+ }[]>;
31
78
  };
32
79
  } | undefined>;
33
80
  export function catalogMavenDeps(dirPath: any, purlsJars: any, Namespaces: any, options?: {}): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"evinser.d.ts","sourceRoot":"","sources":["../../../lib/evinser/evinser.js"],"names":[],"mappings":"AA6BA;;;;GAIG;AACH,mCAFW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;eAmEhB;AAED,6GAiDC;AAED,gGAkCC;AAED,wGAqBC;AAED;;;;;;;;;;;;;;;;;;GAuKC;AAED,6EAuBC;AAED;;;EA8BC;AAcD;;;;;GAKG;AACH,yCAHW,MAAM,WACN,MAAM;;;;;;;;;;;;;;GA4KhB;AAED,wLA8DC;AAED;;;;;;;;;;;GAWG;AACH,2CARW,MAAM,uBACN,MAAM,0BAEN,MAAM,mBACN,MAAM,kBACN,MAAM,iBAqOhB;AAED;;;;;;;GAOG;AACH,yFAHW,MAAM,GACJ,MAAM,CAiGlB;AAyBD,sGAyEC;AAED,wGAmCC;AAED;;;;;;GAMG;AACH,mDAJW,MAAM,8BAEN,MAAM,uBA6DhB;AAED;;;;;;GAMG;AACH,gDAJW,MAAM,wCAEN,MAAM,QAkDhB;AAED,yEAWC;AAED,gEAsFC;AAED;;;;;;GAMG;AACH,iDAJW,MAAM,WACN,MAAM,OA2KhB;AAED;;;;;;;;;;GAUG;AACH,gDAPW,MAAM,uBACN,MAAM,iBACN,MAAM,YACN,MAAM,oBACN,MAAM,kBACN,MAAM,eAoHhB;AAED;;;;;;;GAOG;AACH,kDAHW,MAAM,mBACN,MAAM;;;;;;;;;;;;;EA4FhB;AAED;;;;;GAKG;AACH,kDAaC;AAED;;;;;GAKG;AACH,2CAHW,MAAM,UAKhB;AAED,gGAiDC"}
1
+ {"version":3,"file":"evinser.d.ts","sourceRoot":"","sources":["../../../lib/evinser/evinser.js"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,mCAFW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAyDhB;AAED,6GAiDC;AAED,gGAkCC;AAED,wGAqBC;AAED;;;;;;;;;;;;;;;;;;GAuKC;AAED,6EAuBC;AAED;;;EA8BC;AAcD;;;;;GAKG;AACH,yCAHW,MAAM,WACN,MAAM;;;;;;;;;;;;;;GA4KhB;AAED,wLA8DC;AAED;;;;;;;;;;;GAWG;AACH,2CARW,MAAM,uBACN,MAAM,0BAEN,MAAM,mBACN,MAAM,kBACN,MAAM,iBAqOhB;AAED;;;;;;;GAOG;AACH,yFAHW,MAAM,GACJ,MAAM,CAiGlB;AAyBD,sGAyEC;AAED,wGAmCC;AAED;;;;;;GAMG;AACH,mDAJW,MAAM,8BAEN,MAAM,uBA6DhB;AAED;;;;;;GAMG;AACH,gDAJW,MAAM,wCAEN,MAAM,QAkDhB;AAED,yEAWC;AAED,gEAsFC;AAED;;;;;;GAMG;AACH,iDAJW,MAAM,WACN,MAAM,OA2KhB;AAED;;;;;;;;;;GAUG;AACH,gDAPW,MAAM,uBACN,MAAM,iBACN,MAAM,YACN,MAAM,oBACN,MAAM,kBACN,MAAM,eAoHhB;AAED;;;;;;;GAOG;AACH,kDAHW,MAAM,mBACN,MAAM;;;;;;;;;;;;;EA4FhB;AAED;;;;;GAKG;AACH,kDAaC;AAED;;;;;GAKG;AACH,2CAHW,MAAM,UAKhB;AAED,gGAiDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../lib/helpers/analyzer.js"],"names":[],"mappings":"AAmSO;;;GAkBN"}
1
+ {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../lib/helpers/analyzer.js"],"names":[],"mappings":"AA83BO;;;GAkBN"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Recursively applies signatures to the BOM and its granular components.
3
+ *
4
+ * @param {Object} bomJson - CycloneDX BOM Object
5
+ * @param {Object} options - Signing options { privateKey, algorithm, mode, ... }
6
+ * @returns {Object} - Signed BOM Object
7
+ */
8
+ export function signBom(bomJson: Object, options?: Object): Object;
9
+ /**
10
+ * Verifies the integrity of a specific element node (e.g., BOM root, Component, Service, Annotation).
11
+ * Resolves standard JSF signatures, multisignature (signers), and chains.
12
+ *
13
+ * @param {Object} node - The BOM or granular object to verify
14
+ * @param {string|crypto.KeyObject} publicKey - The public key corresponding to the signature
15
+ * @returns {boolean|Object} - Signature block if signature is valid. False otherwise.
16
+ */
17
+ export function verifyNode(node: Object, publicKey: string | crypto.KeyObject): boolean | Object;
18
+ /**
19
+ * Verifies the integrity of a BOM's top-level signature, as well as nested components, services, and annotations.
20
+ * Returns true only if the root signature is valid AND all signed nested elements are valid.
21
+ *
22
+ * @param {Object} bom - CycloneDX BOM Object
23
+ * @param {string|crypto.KeyObject} publicKey - The public key corresponding to the signature
24
+ * @returns {boolean|Object} - Signature block if signature is valid. False otherwise.
25
+ */
26
+ export function verifyBom(bom: Object, publicKey: string | crypto.KeyObject): boolean | Object;
27
+ //# sourceMappingURL=bomSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bomSigner.d.ts","sourceRoot":"","sources":["../../../lib/helpers/bomSigner.js"],"names":[],"mappings":"AAiIA;;;;;;GAMG;AACH,iCAJW,MAAM,YACN,MAAM,GACJ,MAAM,CAkDlB;AAuDD;;;;;;;GAOG;AACH,iCAJW,MAAM,aACN,MAAM,GAAC,MAAM,CAAC,SAAS,GACrB,OAAO,GAAC,MAAM,CA0B1B;AAED;;;;;;;GAOG;AACH,+BAJW,MAAM,aACN,MAAM,GAAC,MAAM,CAAC,SAAS,GACrB,OAAO,GAAC,MAAM,CAgC1B"}
@@ -0,0 +1,17 @@
1
+ export namespace azurePipelinesParser {
2
+ let id: string;
3
+ let patterns: string[];
4
+ /**
5
+ * @param {string[]} files Matched pipeline file paths
6
+ * @param {Object} options CLI options
7
+ * @returns {{ workflows: Object[], components: Object[], services: Object[], properties: Object[], dependencies: Object[] }}
8
+ */
9
+ function parse(files: string[], options: Object): {
10
+ workflows: Object[];
11
+ components: Object[];
12
+ services: Object[];
13
+ properties: Object[];
14
+ dependencies: Object[];
15
+ };
16
+ }
17
+ //# sourceMappingURL=azurePipelines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azurePipelines.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/ciParsers/azurePipelines.js"],"names":[],"mappings":";;;IA6QE;;;;OAIG;IACH,sBAJW,MAAM,EAAE,WACR,MAAM,GACJ;QAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,CAqB3H"}
@@ -0,0 +1,17 @@
1
+ export namespace circleCiParser {
2
+ let id: string;
3
+ let patterns: string[];
4
+ /**
5
+ * @param {string[]} files Matched config file paths
6
+ * @param {Object} options CLI options
7
+ * @returns {{ workflows: Object[], components: Object[], services: Object[], properties: Object[], dependencies: Object[] }}
8
+ */
9
+ function parse(files: string[], options: Object): {
10
+ workflows: Object[];
11
+ components: Object[];
12
+ services: Object[];
13
+ properties: Object[];
14
+ dependencies: Object[];
15
+ };
16
+ }
17
+ //# sourceMappingURL=circleCi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circleCi.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/ciParsers/circleCi.js"],"names":[],"mappings":";;;IAoQE;;;;OAIG;IACH,sBAJW,MAAM,EAAE,WACR,MAAM,GACJ;QAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,CAqB3H"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Ensure all step objects in the array are unique (CycloneDX `uniqueItems: true`).
3
+ *
4
+ * Identical steps are disambiguated by appending a ` (N)` counter to the step name.
5
+ * The first occurrence is always left unchanged.
6
+ *
7
+ * @param {Object[]} steps
8
+ * @returns {Object[]|undefined}
9
+ */
10
+ export function disambiguateSteps(steps: Object[]): Object[] | undefined;
11
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/ciParsers/common.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,yCAHW,MAAM,EAAE,GACN,MAAM,EAAE,GAAC,SAAS,CAgB9B"}