@cyclonedx/cdxgen 12.1.3 → 12.1.4
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 +1 -1
- package/lib/cli/index.js +7 -3
- package/lib/helpers/utils.js +41 -0
- package/package.json +5 -5
- package/types/lib/cli/index.d.ts +39 -39
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +19 -19
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +14 -14
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/helpers/cbomutils.d.ts +1 -1
- package/types/lib/helpers/cbomutils.d.ts.map +1 -1
- package/types/lib/helpers/db.d.ts +2 -2
- package/types/lib/helpers/db.d.ts.map +1 -1
- package/types/lib/helpers/display.d.ts +2 -2
- package/types/lib/helpers/display.d.ts.map +1 -1
- package/types/lib/helpers/envcontext.d.ts +14 -14
- package/types/lib/helpers/envcontext.d.ts.map +1 -1
- package/types/lib/helpers/logger.d.ts +1 -1
- package/types/lib/helpers/logger.d.ts.map +1 -1
- package/types/lib/helpers/protobom.d.ts +4 -2
- package/types/lib/helpers/protobom.d.ts.map +1 -1
- package/types/lib/helpers/utils.d.ts +103 -88
- package/types/lib/helpers/utils.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +2 -2
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +2 -2
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +1 -1
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/managers/piptree.d.ts +1 -1
- package/types/lib/managers/piptree.d.ts.map +1 -1
- package/types/lib/parsers/iri.d.ts +6 -6
- package/types/lib/parsers/iri.d.ts.map +1 -1
- package/types/lib/server/server.d.ts +1 -1
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/annotator.d.ts +3 -3
- package/types/lib/stages/postgen/annotator.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts +5 -5
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/stages/pregen/pregen.d.ts +6 -6
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/arborist/index.d.ts +4 -3
- package/types/lib/third-party/arborist/lib/arborist/index.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/can-place-dep.d.ts +5 -5
- package/types/lib/third-party/arborist/lib/can-place-dep.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/case-insensitive-map.d.ts +4 -4
- package/types/lib/third-party/arborist/lib/case-insensitive-map.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/diff.d.ts +3 -3
- package/types/lib/third-party/arborist/lib/diff.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/edge.d.ts +2 -2
- package/types/lib/third-party/arborist/lib/edge.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/gather-dep-set.d.ts +1 -1
- package/types/lib/third-party/arborist/lib/gather-dep-set.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/inventory.d.ts +3 -2
- package/types/lib/third-party/arborist/lib/inventory.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/link.d.ts +10 -7
- package/types/lib/third-party/arborist/lib/link.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/node.d.ts +8 -8
- package/types/lib/third-party/arborist/lib/node.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/optional-set.d.ts +1 -1
- package/types/lib/third-party/arborist/lib/optional-set.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/override-set.d.ts +3 -3
- package/types/lib/third-party/arborist/lib/override-set.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/peer-entry-sets.d.ts +1 -1
- package/types/lib/third-party/arborist/lib/peer-entry-sets.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/place-dep.d.ts +3 -3
- package/types/lib/third-party/arborist/lib/place-dep.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/shrinkwrap.d.ts +7 -7
- package/types/lib/third-party/arborist/lib/shrinkwrap.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/version-from-tgz.d.ts +1 -1
- package/types/lib/third-party/arborist/lib/version-from-tgz.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/yarn-lock.d.ts +4 -3
- package/types/lib/third-party/arborist/lib/yarn-lock.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/arborist/load-actual.d.ts +0 -34
- package/types/lib/third-party/arborist/lib/arborist/load-actual.d.ts.map +0 -1
- package/types/lib/third-party/arborist/lib/arborist/load-virtual.d.ts +0 -24
- package/types/lib/third-party/arborist/lib/arborist/load-virtual.d.ts.map +0 -1
- package/types/lib/third-party/arborist/lib/tracker.d.ts +0 -13
- package/types/lib/third-party/arborist/lib/tracker.d.ts.map +0 -1
|
@@ -26,7 +26,7 @@ export function getPythonCommand(): string;
|
|
|
26
26
|
*
|
|
27
27
|
* @returns {Boolean} True if the feature is enabled
|
|
28
28
|
*/
|
|
29
|
-
export function isFeatureEnabled(cliOptions:
|
|
29
|
+
export function isFeatureEnabled(cliOptions: Object, feature: string): boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Method to check if the given project types are allowed by checking against include and exclude types passed from the CLI arguments.
|
|
32
32
|
*
|
|
@@ -34,7 +34,7 @@ export function isFeatureEnabled(cliOptions: any, feature: string): boolean;
|
|
|
34
34
|
* @param {Object} options CLI options
|
|
35
35
|
* @param {Boolean} defaultStatus Default return value if there are no types provided
|
|
36
36
|
*/
|
|
37
|
-
export function hasAnyProjectType(projectTypes: any[], options:
|
|
37
|
+
export function hasAnyProjectType(projectTypes: any[], options: Object, defaultStatus?: boolean): any;
|
|
38
38
|
/**
|
|
39
39
|
* Convenient method to check if the given package manager is allowed.
|
|
40
40
|
*
|
|
@@ -44,7 +44,7 @@ export function hasAnyProjectType(projectTypes: any[], options: any, defaultStat
|
|
|
44
44
|
*
|
|
45
45
|
* @returns {Boolean} True if the package manager is allowed
|
|
46
46
|
*/
|
|
47
|
-
export function isPackageManagerAllowed(name: string, conflictingManagers: any[], options:
|
|
47
|
+
export function isPackageManagerAllowed(name: string, conflictingManagers: any[], options: Object): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Method to get files matching a pattern
|
|
50
50
|
*
|
|
@@ -54,7 +54,7 @@ export function isPackageManagerAllowed(name: string, conflictingManagers: any[]
|
|
|
54
54
|
*
|
|
55
55
|
* @returns {Array[string]} List of matched files
|
|
56
56
|
*/
|
|
57
|
-
export function getAllFiles(dirPath: string, pattern: string, options?:
|
|
57
|
+
export function getAllFiles(dirPath: string, pattern: string, options?: Object): any;
|
|
58
58
|
/**
|
|
59
59
|
* Method to get files matching a pattern
|
|
60
60
|
*
|
|
@@ -98,7 +98,7 @@ export function adjustLicenseInformation(licenses: any[]): any[];
|
|
|
98
98
|
* and url of the license object, otherwise, set the 'name' of the license
|
|
99
99
|
* object.
|
|
100
100
|
*/
|
|
101
|
-
export function getLicenses(pkg: any): any[];
|
|
101
|
+
export function getLicenses(pkg: any): any[] | undefined;
|
|
102
102
|
/**
|
|
103
103
|
* Method to retrieve known license by known-licenses.json
|
|
104
104
|
*
|
|
@@ -106,7 +106,7 @@ export function getLicenses(pkg: any): any[];
|
|
|
106
106
|
* @param {String} pkg Bom ref
|
|
107
107
|
* @return {Object} Objetct with SPDX license id or license name
|
|
108
108
|
*/
|
|
109
|
-
export function getKnownLicense(licenseUrl: string, pkg: string):
|
|
109
|
+
export function getKnownLicense(licenseUrl: string, pkg: string): Object;
|
|
110
110
|
/**
|
|
111
111
|
* Tries to find a file containing the license text based on commonly
|
|
112
112
|
* used naming and content types. If a candidate file is found, add
|
|
@@ -119,7 +119,7 @@ export function addLicenseText(pkg: any, l: any, licenseContent: any): void;
|
|
|
119
119
|
*/
|
|
120
120
|
export function readLicenseText(licenseFilepath: any, licenseContentType: any): {
|
|
121
121
|
content: any;
|
|
122
|
-
};
|
|
122
|
+
} | null;
|
|
123
123
|
export function getSwiftPackageMetadata(pkgList: any): Promise<any[]>;
|
|
124
124
|
/**
|
|
125
125
|
* Method to retrieve metadata for npm packages by querying npmjs
|
|
@@ -163,7 +163,7 @@ export function yarnLockToIdentMap(lockData: string): {};
|
|
|
163
163
|
* @param {Object} _workspaceDirectDeps Direct dependencies of each workspace
|
|
164
164
|
* @param {Object} depsWorkspaceRefs Workspace references for each dependency
|
|
165
165
|
*/
|
|
166
|
-
export function parseYarnLock(yarnLockFile: string, parentComponent?:
|
|
166
|
+
export function parseYarnLock(yarnLockFile: string, parentComponent?: Object, workspacePackages?: any, workspaceSrcFiles?: Object, _workspaceDirectDeps?: Object, depsWorkspaceRefs?: Object): Promise<{
|
|
167
167
|
pkgList: any[];
|
|
168
168
|
dependenciesList: any[];
|
|
169
169
|
}>;
|
|
@@ -221,7 +221,7 @@ export function pnpmMetadata(pkgList: any[], lockFilePath: string): any[];
|
|
|
221
221
|
* @param {Object} workspaceDirectDeps Direct dependencies of each workspace
|
|
222
222
|
* @param {Object} depsWorkspaceRefs Workspace references for each dependency
|
|
223
223
|
*/
|
|
224
|
-
export function parsePnpmLock(pnpmLock: string, parentComponent?:
|
|
224
|
+
export function parsePnpmLock(pnpmLock: string, parentComponent?: Object, workspacePackages?: any, workspaceSrcFiles?: Object, _workspaceCatalogs?: {}, _workspaceDirectDeps?: {}, depsWorkspaceRefs?: Object): Promise<{
|
|
225
225
|
pkgList?: undefined;
|
|
226
226
|
dependenciesList?: undefined;
|
|
227
227
|
parentSubComponents?: undefined;
|
|
@@ -258,7 +258,7 @@ export function parseMinJs(minJsFile: string): Promise<any[]>;
|
|
|
258
258
|
* @param {string} pomFile pom file to parse
|
|
259
259
|
* @returns {Object} Object containing pom properties, modules, and array of dependencies
|
|
260
260
|
*/
|
|
261
|
-
export function parsePom(pomFile: string):
|
|
261
|
+
export function parsePom(pomFile: string): Object;
|
|
262
262
|
/**
|
|
263
263
|
* Parse maven tree output
|
|
264
264
|
* @param {string} rawOutput Raw string output
|
|
@@ -266,7 +266,7 @@ export function parsePom(pomFile: string): any;
|
|
|
266
266
|
*
|
|
267
267
|
* @returns {Object} Object containing packages and dependencies
|
|
268
268
|
*/
|
|
269
|
-
export function parseMavenTree(rawOutput: string, pomFile: string):
|
|
269
|
+
export function parseMavenTree(rawOutput: string, pomFile: string): Object;
|
|
270
270
|
/**
|
|
271
271
|
* Parse mill dependencies from file
|
|
272
272
|
*
|
|
@@ -313,7 +313,7 @@ export function parseLeinMap(node: any, keys_cache: any, deps: any): any;
|
|
|
313
313
|
*/
|
|
314
314
|
export function parseGradleProjects(rawOutput: string): {
|
|
315
315
|
rootProject: string;
|
|
316
|
-
projects: any;
|
|
316
|
+
projects: any[];
|
|
317
317
|
};
|
|
318
318
|
/**
|
|
319
319
|
* Parse gradle properties output
|
|
@@ -323,11 +323,11 @@ export function parseGradleProjects(rawOutput: string): {
|
|
|
323
323
|
*/
|
|
324
324
|
export function parseGradleProperties(rawOutput: string, gradleModuleName?: string): {
|
|
325
325
|
rootProject: string;
|
|
326
|
-
projects: any;
|
|
326
|
+
projects: any[];
|
|
327
327
|
metadata: {
|
|
328
328
|
group: string;
|
|
329
329
|
version: string;
|
|
330
|
-
properties:
|
|
330
|
+
properties: never[];
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
/**
|
|
@@ -339,7 +339,7 @@ export function parseGradleProperties(rawOutput: string, gradleModuleName?: stri
|
|
|
339
339
|
*
|
|
340
340
|
* @returns {string} The combined output for all subprojects of the Gradle properties task
|
|
341
341
|
*/
|
|
342
|
-
export function executeParallelGradleProperties(dir: string, allProjectsStr:
|
|
342
|
+
export function executeParallelGradleProperties(dir: string, allProjectsStr: array, extraArgs?: array): string;
|
|
343
343
|
/**
|
|
344
344
|
* Parse bazel action graph output
|
|
345
345
|
* @param {string} rawOutput Raw string output
|
|
@@ -380,7 +380,7 @@ export function guessLicenseId(content: string): any;
|
|
|
380
380
|
*
|
|
381
381
|
* @returns {Array} Updated package list
|
|
382
382
|
*/
|
|
383
|
-
export function getMvnMetadata(pkgList: any[], jarNSMapping?:
|
|
383
|
+
export function getMvnMetadata(pkgList: any[], jarNSMapping?: Object, force?: boolean): any[];
|
|
384
384
|
/**
|
|
385
385
|
* Method to compose URL of pom.xml
|
|
386
386
|
*
|
|
@@ -402,7 +402,7 @@ export function composePomXmlUrl({ urlPrefix, group, name, version }: string): s
|
|
|
402
402
|
*
|
|
403
403
|
* @return {Object|undefined}
|
|
404
404
|
*/
|
|
405
|
-
export function fetchPomXmlAsJson({ urlPrefix, group, name, version }: string):
|
|
405
|
+
export function fetchPomXmlAsJson({ urlPrefix, group, name, version }: string): Object | undefined;
|
|
406
406
|
/**
|
|
407
407
|
* Method to fetch pom.xml data
|
|
408
408
|
*
|
|
@@ -419,7 +419,7 @@ export function fetchPomXml({ urlPrefix, group, name, version }: string): Promis
|
|
|
419
419
|
*
|
|
420
420
|
* @param {Object|Array} license
|
|
421
421
|
*/
|
|
422
|
-
export function parseLicenseEntryOrArrayFromPomXml(license:
|
|
422
|
+
export function parseLicenseEntryOrArrayFromPomXml(license: Object | any[]): any[] | undefined;
|
|
423
423
|
/**
|
|
424
424
|
* Method to parse pom.xml in search of a comment containing license text
|
|
425
425
|
*
|
|
@@ -439,7 +439,7 @@ export function extractLicenseCommentFromPomXml({ urlPrefix, group, name, versio
|
|
|
439
439
|
export function parsePyRequiresDist(dist_string: string): {
|
|
440
440
|
name: string;
|
|
441
441
|
version: string;
|
|
442
|
-
};
|
|
442
|
+
} | undefined;
|
|
443
443
|
/**
|
|
444
444
|
* Method to mimic pip version solver using node-semver
|
|
445
445
|
*
|
|
@@ -466,23 +466,23 @@ export function parseBdistMetadata(mDataFile: string, rawMetadata?: string): {
|
|
|
466
466
|
version: string;
|
|
467
467
|
description: string;
|
|
468
468
|
author: string;
|
|
469
|
-
licenses:
|
|
470
|
-
externalReferences:
|
|
471
|
-
properties:
|
|
469
|
+
licenses: never[];
|
|
470
|
+
externalReferences: never[];
|
|
471
|
+
properties: never[];
|
|
472
472
|
}[];
|
|
473
473
|
/**
|
|
474
474
|
* Method to parse pipfile.lock data
|
|
475
475
|
*
|
|
476
476
|
* @param {Object} lockData JSON data from Pipfile.lock
|
|
477
477
|
*/
|
|
478
|
-
export function parsePiplockData(lockData:
|
|
478
|
+
export function parsePiplockData(lockData: Object): Promise<any[]>;
|
|
479
479
|
/**
|
|
480
480
|
* Method to parse python pyproject.toml file
|
|
481
481
|
*
|
|
482
482
|
* @param {string} tomlFile pyproject.toml file
|
|
483
483
|
* @returns {Object} Object with parent component, root dependencies, and metadata.
|
|
484
484
|
*/
|
|
485
|
-
export function parsePyProjectTomlFile(tomlFile: string):
|
|
485
|
+
export function parsePyProjectTomlFile(tomlFile: string): Object;
|
|
486
486
|
/**
|
|
487
487
|
* Method to parse python lock files such as poetry.lock, pdm.lock, uv.lock.
|
|
488
488
|
*
|
|
@@ -490,7 +490,7 @@ export function parsePyProjectTomlFile(tomlFile: string): any;
|
|
|
490
490
|
* @param {string} lockFile Lock file name for evidence
|
|
491
491
|
* @param {string} pyProjectFile pyproject.toml file
|
|
492
492
|
*/
|
|
493
|
-
export function parsePyLockData(lockData:
|
|
493
|
+
export function parsePyLockData(lockData: Object, lockFile: string, pyProjectFile: string): Promise<{
|
|
494
494
|
pkgList: any[];
|
|
495
495
|
dependenciesList: any[];
|
|
496
496
|
parentComponent?: undefined;
|
|
@@ -503,7 +503,7 @@ export function parsePyLockData(lockData: any, lockFile: string, pyProjectFile:
|
|
|
503
503
|
name: any;
|
|
504
504
|
version: any;
|
|
505
505
|
description: any;
|
|
506
|
-
properties:
|
|
506
|
+
properties: never[];
|
|
507
507
|
}[];
|
|
508
508
|
dependenciesList: {
|
|
509
509
|
ref: string;
|
|
@@ -526,7 +526,7 @@ export function parseReqFile(reqFile: string, fetchDepsInfo?: boolean): any;
|
|
|
526
526
|
* @param {String} markersStr Raw markers string
|
|
527
527
|
* @returns {Array<Object>} Structured markers array
|
|
528
528
|
*/
|
|
529
|
-
export function parseReqEnvMarkers(markersStr: string): Array<
|
|
529
|
+
export function parseReqEnvMarkers(markersStr: string): Array<Object>;
|
|
530
530
|
/**
|
|
531
531
|
* Method to find python modules by parsing the imports and then checking with PyPI to obtain the latest version
|
|
532
532
|
*
|
|
@@ -535,12 +535,12 @@ export function parseReqEnvMarkers(markersStr: string): Array<any>;
|
|
|
535
535
|
* @param {Object} options CLI options
|
|
536
536
|
* @returns List of packages
|
|
537
537
|
*/
|
|
538
|
-
export function getPyModules(src: string, epkgList: any[], options:
|
|
538
|
+
export function getPyModules(src: string, epkgList: any[], options: Object): Promise<{
|
|
539
539
|
allImports: {};
|
|
540
540
|
pkgList: any;
|
|
541
541
|
dependenciesList: {
|
|
542
542
|
ref: string;
|
|
543
|
-
dependsOn:
|
|
543
|
+
dependsOn: never[];
|
|
544
544
|
}[];
|
|
545
545
|
modList: any;
|
|
546
546
|
}>;
|
|
@@ -549,7 +549,7 @@ export function getPyModules(src: string, epkgList: any[], options: any): Promis
|
|
|
549
549
|
*
|
|
550
550
|
* @param {Object} setupPyData Contents of setup.py
|
|
551
551
|
*/
|
|
552
|
-
export function parseSetupPyFile(setupPyData:
|
|
552
|
+
export function parseSetupPyFile(setupPyData: Object): Promise<Object[]>;
|
|
553
553
|
/**
|
|
554
554
|
* Method to parse pixi.lock data
|
|
555
555
|
*
|
|
@@ -583,7 +583,7 @@ export function parsePixiTomlFile(pixiToml: string): {
|
|
|
583
583
|
* @param {Object} repoMetadata Repo metadata with group and name
|
|
584
584
|
* @return {String|undefined} github api url (or undefined - if not enough data)
|
|
585
585
|
*/
|
|
586
|
-
export function repoMetadataToGitHubApiUrl(repoMetadata:
|
|
586
|
+
export function repoMetadataToGitHubApiUrl(repoMetadata: Object): string | undefined;
|
|
587
587
|
/**
|
|
588
588
|
* Method to run cli command `pixi install`
|
|
589
589
|
*
|
|
@@ -602,7 +602,7 @@ export function getGithubUrlParts(repoUrl: string): [string];
|
|
|
602
602
|
* @param {Object} repoMetadata Object containing group and package name strings
|
|
603
603
|
* @return {String|undefined} github api url (or undefined - if not a GitHub repo)
|
|
604
604
|
*/
|
|
605
|
-
export function toGitHubApiUrl(repoUrl: string, repoMetadata:
|
|
605
|
+
export function toGitHubApiUrl(repoUrl: string, repoMetadata: Object): string | undefined;
|
|
606
606
|
/**
|
|
607
607
|
* Method to retrieve repo license by querying github api
|
|
608
608
|
*
|
|
@@ -610,13 +610,13 @@ export function toGitHubApiUrl(repoUrl: string, repoMetadata: any): string | und
|
|
|
610
610
|
* @param {Object} repoMetadata Object containing group and package name strings
|
|
611
611
|
* @return {Promise<String>} SPDX license id
|
|
612
612
|
*/
|
|
613
|
-
export function getRepoLicense(repoUrl: string, repoMetadata:
|
|
613
|
+
export function getRepoLicense(repoUrl: string, repoMetadata: Object): Promise<string>;
|
|
614
614
|
/**
|
|
615
615
|
* Method to get go pkg license from go.dev site.
|
|
616
616
|
*
|
|
617
617
|
* @param {Object} repoMetadata Repo metadata
|
|
618
618
|
*/
|
|
619
|
-
export function getGoPkgLicense(repoMetadata:
|
|
619
|
+
export function getGoPkgLicense(repoMetadata: Object): Promise<any>;
|
|
620
620
|
export function getGoPkgComponent(group: any, name: any, version: any, hash: any): Promise<{
|
|
621
621
|
group: any;
|
|
622
622
|
name: any;
|
|
@@ -634,7 +634,7 @@ export function getGoPkgComponent(group: any, name: any, version: any, hash: any
|
|
|
634
634
|
*
|
|
635
635
|
* @returns {Object} Object containing parent component, rootList and packages list
|
|
636
636
|
*/
|
|
637
|
-
export function parseGoModData(goModData: string, gosumMap:
|
|
637
|
+
export function parseGoModData(goModData: string, gosumMap: Object): Object;
|
|
638
638
|
export function parseGoModulesTxt(txtFile: any, gosumMap: any): Promise<any[]>;
|
|
639
639
|
/**
|
|
640
640
|
* Parse go list output
|
|
@@ -643,7 +643,7 @@ export function parseGoModulesTxt(txtFile: any, gosumMap: any): Promise<any[]>;
|
|
|
643
643
|
* @param {Object} gosumMap go.sum data
|
|
644
644
|
* @returns Object with parent component and List of packages
|
|
645
645
|
*/
|
|
646
|
-
export function parseGoListDep(rawOutput: string, gosumMap:
|
|
646
|
+
export function parseGoListDep(rawOutput: string, gosumMap: Object): Promise<{
|
|
647
647
|
parentComponent: {};
|
|
648
648
|
pkgList: {
|
|
649
649
|
group: any;
|
|
@@ -666,11 +666,11 @@ export function parseGoListDep(rawOutput: string, gosumMap: any): Promise<{
|
|
|
666
666
|
*
|
|
667
667
|
* @returns Object containing List of packages and dependencies
|
|
668
668
|
*/
|
|
669
|
-
export function parseGoModGraph(rawOutput: string, goModFile: string, gosumMap:
|
|
669
|
+
export function parseGoModGraph(rawOutput: string, goModFile: string, gosumMap: Object, epkgList?: any[], parentComponent?: Object): Promise<{
|
|
670
670
|
pkgList: any[];
|
|
671
671
|
dependenciesList: {
|
|
672
672
|
ref: string;
|
|
673
|
-
dependsOn: any;
|
|
673
|
+
dependsOn: any[];
|
|
674
674
|
}[];
|
|
675
675
|
parentComponent: any;
|
|
676
676
|
rootList: any;
|
|
@@ -731,7 +731,7 @@ export function parseGemfileLockData(gemLockData: object, lockFile: string): Pro
|
|
|
731
731
|
pkgList: any[];
|
|
732
732
|
dependenciesList: {
|
|
733
733
|
ref: string;
|
|
734
|
-
dependsOn: any;
|
|
734
|
+
dependsOn: any[];
|
|
735
735
|
}[];
|
|
736
736
|
rootList: any[];
|
|
737
737
|
}>;
|
|
@@ -765,7 +765,7 @@ export function getDartMetadata(pkgList: any[]): Promise<any[]>;
|
|
|
765
765
|
*
|
|
766
766
|
* @returns {Array} Package list
|
|
767
767
|
*/
|
|
768
|
-
export function parseCargoTomlData(cargoTomlFile: string, simple?: boolean, pkgFilesMap?:
|
|
768
|
+
export function parseCargoTomlData(cargoTomlFile: string, simple?: boolean, pkgFilesMap?: Object): any[];
|
|
769
769
|
/**
|
|
770
770
|
* Parse a Cargo.lock file to find components within the Rust project.
|
|
771
771
|
*
|
|
@@ -775,7 +775,7 @@ export function parseCargoTomlData(cargoTomlFile: string, simple?: boolean, pkgF
|
|
|
775
775
|
*
|
|
776
776
|
* @returns {Array} A list of the project's components as described by the Cargo.lock-file.
|
|
777
777
|
*/
|
|
778
|
-
export function parseCargoData(cargoLockFile: string, simple?: boolean, pkgFilesMap?:
|
|
778
|
+
export function parseCargoData(cargoLockFile: string, simple?: boolean, pkgFilesMap?: Object): any[];
|
|
779
779
|
export function parseCargoDependencyData(cargoLockData: any): any[];
|
|
780
780
|
export function parseCargoAuditableData(cargoData: any): Promise<any[]>;
|
|
781
781
|
/**
|
|
@@ -786,11 +786,13 @@ export function parseCargoAuditableData(cargoData: any): Promise<any[]>;
|
|
|
786
786
|
*
|
|
787
787
|
* @returns {Object}
|
|
788
788
|
*/
|
|
789
|
-
export function parsePubLockData(pubLockData: any, lockFile: any):
|
|
789
|
+
export function parsePubLockData(pubLockData: any, lockFile: any): Object;
|
|
790
790
|
export function parsePubYamlData(pubYamlData: any): any[];
|
|
791
791
|
export function parseHelmYamlData(helmData: any): any[];
|
|
792
792
|
export function recurseImageNameLookup(keyValueObj: any, pkgList: any, imgList: any): any;
|
|
793
|
-
export function parseContainerFile(fileContents: any):
|
|
793
|
+
export function parseContainerFile(fileContents: any): {
|
|
794
|
+
image: any;
|
|
795
|
+
}[];
|
|
794
796
|
export function parseBitbucketPipelinesFile(fileContents: any): {
|
|
795
797
|
image: any;
|
|
796
798
|
}[];
|
|
@@ -802,7 +804,7 @@ export function parseCabalData(cabalData: any): any[];
|
|
|
802
804
|
export function parseMixLockData(mixData: any): any[];
|
|
803
805
|
export function parseGitHubWorkflowData(f: any): any[];
|
|
804
806
|
export function parseCloudBuildData(cbwData: any): any[];
|
|
805
|
-
export function mapConanPkgRefToPurlStringAndNameAndVersion(conanPkgRef: any):
|
|
807
|
+
export function mapConanPkgRefToPurlStringAndNameAndVersion(conanPkgRef: any): (string | null)[];
|
|
806
808
|
export function parseConanLockData(conanLockData: any): {
|
|
807
809
|
pkgList: any[];
|
|
808
810
|
dependencies: {};
|
|
@@ -817,21 +819,21 @@ export function parseEdnData(rawEdnData: any): any[];
|
|
|
817
819
|
* @param {String} nupkgFile .nupkg file
|
|
818
820
|
* @returns {Object} Object containing package list and dependencies
|
|
819
821
|
*/
|
|
820
|
-
export function parseNupkg(nupkgFile: string):
|
|
822
|
+
export function parseNupkg(nupkgFile: string): Object;
|
|
821
823
|
/**
|
|
822
824
|
* Method to parse flake.nix files
|
|
823
825
|
*
|
|
824
826
|
* @param {String} flakeNixFile flake.nix file to parse
|
|
825
827
|
* @returns {Object} Object containing package information
|
|
826
828
|
*/
|
|
827
|
-
export function parseFlakeNix(flakeNixFile: string):
|
|
829
|
+
export function parseFlakeNix(flakeNixFile: string): Object;
|
|
828
830
|
/**
|
|
829
831
|
* Method to parse flake.lock files
|
|
830
832
|
*
|
|
831
833
|
* @param {String} flakeLockFile flake.lock file to parse
|
|
832
834
|
* @returns {Object} Object containing locked dependency information
|
|
833
835
|
*/
|
|
834
|
-
export function parseFlakeLock(flakeLockFile: string):
|
|
836
|
+
export function parseFlakeLock(flakeLockFile: string): Object;
|
|
835
837
|
/**
|
|
836
838
|
* Method to parse .nuspec files
|
|
837
839
|
*
|
|
@@ -839,7 +841,7 @@ export function parseFlakeLock(flakeLockFile: string): any;
|
|
|
839
841
|
* @param {String} nuspecData Raw nuspec data
|
|
840
842
|
* @returns {Object} Object containing package list and dependencies
|
|
841
843
|
*/
|
|
842
|
-
export function parseNuspecData(nupkgFile: string, nuspecData: string):
|
|
844
|
+
export function parseNuspecData(nupkgFile: string, nuspecData: string): Object;
|
|
843
845
|
export function parseCsPkgData(pkgData: any, pkgFile: any): any[];
|
|
844
846
|
/**
|
|
845
847
|
* Method to find all text nodes in PropertyGroup elements in .props files.
|
|
@@ -848,7 +850,7 @@ export function parseCsPkgData(pkgData: any, pkgFile: any): any[];
|
|
|
848
850
|
*
|
|
849
851
|
* @returns {Object} Containing text nodes from PropertyGroup elements and their values
|
|
850
852
|
*/
|
|
851
|
-
export function getPropertyGroupTextNodes(propsFiles: string):
|
|
853
|
+
export function getPropertyGroupTextNodes(propsFiles: string): Object;
|
|
852
854
|
/**
|
|
853
855
|
* Method to parse .csproj like xml files
|
|
854
856
|
*
|
|
@@ -858,7 +860,7 @@ export function getPropertyGroupTextNodes(propsFiles: string): any;
|
|
|
858
860
|
*
|
|
859
861
|
* @returns {Object} Containing parent component, package, and dependencies
|
|
860
862
|
*/
|
|
861
|
-
export function parseCsProjData(csProjData: string, projFile: string, pkgNameVersions?:
|
|
863
|
+
export function parseCsProjData(csProjData: string, projFile: string, pkgNameVersions?: Object, msbuildInstalled?: boolean, pkgVersionLabelCandidates?: {}): Object;
|
|
862
864
|
export function parseCsProjAssetsData(csProjData: any, assetsJsonFile: any): {
|
|
863
865
|
pkgList: any[];
|
|
864
866
|
dependenciesList: any[];
|
|
@@ -879,14 +881,14 @@ export function parsePaketLockData(paketLockData: any, pkgLockFile: any): {
|
|
|
879
881
|
*
|
|
880
882
|
* @returns {Object} Object with rootRequires and parent component
|
|
881
883
|
*/
|
|
882
|
-
export function parseComposerJson(composerJsonFile: string):
|
|
884
|
+
export function parseComposerJson(composerJsonFile: string): Object;
|
|
883
885
|
/**
|
|
884
886
|
* Parse composer lock file
|
|
885
887
|
*
|
|
886
888
|
* @param {string} pkgLockFile composer.lock file
|
|
887
889
|
* @param {array} rootRequires require section from composer.json
|
|
888
890
|
*/
|
|
889
|
-
export function parseComposerLock(pkgLockFile: string, rootRequires:
|
|
891
|
+
export function parseComposerLock(pkgLockFile: string, rootRequires: array): never[] | {
|
|
890
892
|
pkgList: {
|
|
891
893
|
group: any;
|
|
892
894
|
name: any;
|
|
@@ -915,7 +917,7 @@ export function parseComposerLock(pkgLockFile: string, rootRequires: any[]): any
|
|
|
915
917
|
}[];
|
|
916
918
|
dependenciesList: {
|
|
917
919
|
ref: string;
|
|
918
|
-
dependsOn: any;
|
|
920
|
+
dependsOn: any[];
|
|
919
921
|
}[];
|
|
920
922
|
rootList: {
|
|
921
923
|
group: any;
|
|
@@ -961,7 +963,7 @@ export function parseSbtLock(pkgLockFile: string): {
|
|
|
961
963
|
name: any;
|
|
962
964
|
version: any;
|
|
963
965
|
_integrity: string;
|
|
964
|
-
scope: string;
|
|
966
|
+
scope: string | undefined;
|
|
965
967
|
properties: {
|
|
966
968
|
name: string;
|
|
967
969
|
value: string;
|
|
@@ -1021,7 +1023,7 @@ export function executeEqueryList(pkgName: string): any;
|
|
|
1021
1023
|
* @param {Array} results Query Results
|
|
1022
1024
|
* @param {Boolean} enhance Optionally enhance results by invoking additional package manager commands
|
|
1023
1025
|
*/
|
|
1024
|
-
export function convertOSQueryResults(queryCategory: string, queryObj:
|
|
1026
|
+
export function convertOSQueryResults(queryCategory: string, queryObj: Object, results: any[], enhance?: boolean): {
|
|
1025
1027
|
name: any;
|
|
1026
1028
|
group: string;
|
|
1027
1029
|
version: any;
|
|
@@ -1032,7 +1034,7 @@ export function convertOSQueryResults(queryCategory: string, queryObj: any, resu
|
|
|
1032
1034
|
scope: any;
|
|
1033
1035
|
type: any;
|
|
1034
1036
|
}[];
|
|
1035
|
-
export function purlFromUrlString(type: any, repoUrl: any, version: any): PackageURL;
|
|
1037
|
+
export function purlFromUrlString(type: any, repoUrl: any, version: any): PackageURL | undefined;
|
|
1036
1038
|
/**
|
|
1037
1039
|
* Parse swift dependency tree output json object
|
|
1038
1040
|
*
|
|
@@ -1062,8 +1064,8 @@ export function parseSwiftJsonTree(rawOutput: string, pkgFile: string): {
|
|
|
1062
1064
|
*/
|
|
1063
1065
|
export function parseSwiftResolved(resolvedFile: string): {
|
|
1064
1066
|
name: string;
|
|
1065
|
-
group: string;
|
|
1066
|
-
version: string;
|
|
1067
|
+
group: string | null | undefined;
|
|
1068
|
+
version: string | null | undefined;
|
|
1067
1069
|
purl: string;
|
|
1068
1070
|
"bom-ref": string;
|
|
1069
1071
|
properties: {
|
|
@@ -1132,7 +1134,7 @@ export function convertJarNSToPackages(jarNSMapping: any): Promise<{
|
|
|
1132
1134
|
* @param pomXmlData XML contents
|
|
1133
1135
|
* @returns {Object} Parent component data
|
|
1134
1136
|
*/
|
|
1135
|
-
export function parsePomXml(pomXmlData: any):
|
|
1137
|
+
export function parsePomXml(pomXmlData: any): Object;
|
|
1136
1138
|
export function parseJarManifest(jarMetadata: any): {};
|
|
1137
1139
|
export function parsePomProperties(pomProperties: any): {};
|
|
1138
1140
|
export function encodeForPurl(s: any): any;
|
|
@@ -1159,7 +1161,7 @@ export function checksumFile(hashName: string, path: string): Promise<string>;
|
|
|
1159
1161
|
* @param {string} path path to file
|
|
1160
1162
|
* @returns {Promise<Object>} hashes object
|
|
1161
1163
|
*/
|
|
1162
|
-
export function multiChecksumFile(algorithms: any, path: string): Promise<
|
|
1164
|
+
export function multiChecksumFile(algorithms: any, path: string): Promise<Object>;
|
|
1163
1165
|
/**
|
|
1164
1166
|
* Method to extract a war or ear file
|
|
1165
1167
|
*
|
|
@@ -1178,7 +1180,7 @@ export function extractJarArchive(jarFile: string, tempDir: string, jarNSMapping
|
|
|
1178
1180
|
*
|
|
1179
1181
|
* @param {string} projectPath Path to the SBT project
|
|
1180
1182
|
*/
|
|
1181
|
-
export function determineSbtVersion(projectPath: string): string | number | boolean;
|
|
1183
|
+
export function determineSbtVersion(projectPath: string): (string | number | boolean) | null;
|
|
1182
1184
|
/**
|
|
1183
1185
|
* Adds a new plugin to the SBT project by amending its plugins list.
|
|
1184
1186
|
* Only recommended for SBT < 1.2.0 or otherwise use `addPluginSbtFile`
|
|
@@ -1191,7 +1193,7 @@ export function determineSbtVersion(projectPath: string): string | number | bool
|
|
|
1191
1193
|
* @param {string} projectPath Path to the SBT project
|
|
1192
1194
|
* @param {string} plugin Name of the plugin to add
|
|
1193
1195
|
*/
|
|
1194
|
-
export function addPlugin(projectPath: string, plugin: string): string;
|
|
1196
|
+
export function addPlugin(projectPath: string, plugin: string): string | null;
|
|
1195
1197
|
/**
|
|
1196
1198
|
* Cleans up modifications to the project's plugins' file made by the
|
|
1197
1199
|
* `addPlugin` function.
|
|
@@ -1215,7 +1217,7 @@ export function sbtPluginsPath(projectPath: string): any;
|
|
|
1215
1217
|
*
|
|
1216
1218
|
* @returns File contents
|
|
1217
1219
|
*/
|
|
1218
|
-
export function readZipEntry(zipFile: string, filePattern: string, contentEncoding?: string): Promise<
|
|
1220
|
+
export function readZipEntry(zipFile: string, filePattern: string, contentEncoding?: string): Promise<string | undefined>;
|
|
1219
1221
|
/**
|
|
1220
1222
|
* Method to get the classes and relevant sources in a jar file
|
|
1221
1223
|
*
|
|
@@ -1263,7 +1265,7 @@ export function splitOutputByGradleProjects(rawOutput: string, relevantTasks: st
|
|
|
1263
1265
|
* @param {String} projectPath The path to the project root
|
|
1264
1266
|
* @returns {Map} Map of all dependencies with their direct dependencies
|
|
1265
1267
|
*/
|
|
1266
|
-
export function parsePodfileLock(podfileLock:
|
|
1268
|
+
export function parsePodfileLock(podfileLock: Object, projectPath: string): Map<any, any>;
|
|
1267
1269
|
/**
|
|
1268
1270
|
* Parse all targets and their direct dependencies from the 'Podfile'
|
|
1269
1271
|
*
|
|
@@ -1271,7 +1273,7 @@ export function parsePodfileLock(podfileLock: any, projectPath: string): Map;
|
|
|
1271
1273
|
* @param {Map} allDependencies The map containing all parsed direct dependencies for a target
|
|
1272
1274
|
* @param {String} [prefix=undefined] Prefix to add to the targets name
|
|
1273
1275
|
*/
|
|
1274
|
-
export function parsePodfileTargets(target:
|
|
1276
|
+
export function parsePodfileTargets(target: Object, allDependencies: Map<any, any>, prefix?: string): void;
|
|
1275
1277
|
/**
|
|
1276
1278
|
* Parse a single line representing a dependency
|
|
1277
1279
|
*
|
|
@@ -1279,7 +1281,7 @@ export function parsePodfileTargets(target: any, allDependencies: Map, prefix?:
|
|
|
1279
1281
|
* @param {boolean} [parseVersion=true] Include parsing the version of the dependency
|
|
1280
1282
|
* @returns {Object} Object representing a dependency
|
|
1281
1283
|
*/
|
|
1282
|
-
export function parseCocoaDependency(dependencyLine: string, parseVersion?: boolean):
|
|
1284
|
+
export function parseCocoaDependency(dependencyLine: string, parseVersion?: boolean): Object;
|
|
1283
1285
|
/**
|
|
1284
1286
|
* Execute the 'pod'-command with parameters
|
|
1285
1287
|
*
|
|
@@ -1288,7 +1290,7 @@ export function parseCocoaDependency(dependencyLine: string, parseVersion?: bool
|
|
|
1288
1290
|
* @param {Object} options CLI options
|
|
1289
1291
|
* @returns {Object} The result of running the command
|
|
1290
1292
|
*/
|
|
1291
|
-
export function executePodCommand(parameters: string[], path: string, options:
|
|
1293
|
+
export function executePodCommand(parameters: string[], path: string, options: Object): Object;
|
|
1292
1294
|
/**
|
|
1293
1295
|
* Method that handles object creation for cocoa pods.
|
|
1294
1296
|
*
|
|
@@ -1297,7 +1299,7 @@ export function executePodCommand(parameters: string[], path: string, options: a
|
|
|
1297
1299
|
* @param {String} [type="library"] The type of Object to create
|
|
1298
1300
|
* @returns {Object} An object representing the pod in SBOM-format
|
|
1299
1301
|
*/
|
|
1300
|
-
export function buildObjectForCocoaPod(dependency:
|
|
1302
|
+
export function buildObjectForCocoaPod(dependency: Object, options: Object, type?: string): Object;
|
|
1301
1303
|
/**
|
|
1302
1304
|
* Method that handles object creation for gradle modules.
|
|
1303
1305
|
*
|
|
@@ -1334,7 +1336,7 @@ export function findAppModules(src: string, language: string, methodology?: stri
|
|
|
1334
1336
|
* @param {string} basePath Path
|
|
1335
1337
|
* @param {Object} options CLI options
|
|
1336
1338
|
*/
|
|
1337
|
-
export function createUVLock(basePath: string, options:
|
|
1339
|
+
export function createUVLock(basePath: string, options: Object): void;
|
|
1338
1340
|
/**
|
|
1339
1341
|
* Execute pip freeze by creating a virtual env in a temp directory and construct the dependency tree
|
|
1340
1342
|
*
|
|
@@ -1345,7 +1347,7 @@ export function createUVLock(basePath: string, options: any): void;
|
|
|
1345
1347
|
*
|
|
1346
1348
|
* @returns {Object} List of packages from the virtual env
|
|
1347
1349
|
*/
|
|
1348
|
-
export function getPipFrozenTree(basePath: string, reqOrSetupFile: string, tempVenvDir: string, parentComponent:
|
|
1350
|
+
export function getPipFrozenTree(basePath: string, reqOrSetupFile: string, tempVenvDir: string, parentComponent: Object): Object;
|
|
1349
1351
|
/**
|
|
1350
1352
|
* The problem: pip installation can fail for a number of reasons such as missing OS dependencies and devel packages.
|
|
1351
1353
|
* When it fails, we don't get any dependency tree. As a workaroud, this method would attempt to install one package at a time to the same virtual environment and then attempts to obtain a dependency tree.
|
|
@@ -1358,7 +1360,7 @@ export function getPipFrozenTree(basePath: string, reqOrSetupFile: string, tempV
|
|
|
1358
1360
|
*
|
|
1359
1361
|
* @returns List of packages from the virtual env
|
|
1360
1362
|
*/
|
|
1361
|
-
export function getPipTreeForPackages(basePath: string, pkgList: any[], tempVenvDir: string, parentComponent:
|
|
1363
|
+
export function getPipTreeForPackages(basePath: string, pkgList: any[], tempVenvDir: string, parentComponent: Object): {
|
|
1362
1364
|
failedPkgList?: undefined;
|
|
1363
1365
|
rootList?: undefined;
|
|
1364
1366
|
dependenciesList?: undefined;
|
|
@@ -1376,7 +1378,7 @@ export function getPipTreeForPackages(basePath: string, pkgList: any[], tempVenv
|
|
|
1376
1378
|
}[];
|
|
1377
1379
|
};
|
|
1378
1380
|
export function parsePackageJsonName(name: any): {
|
|
1379
|
-
scope:
|
|
1381
|
+
scope: null;
|
|
1380
1382
|
fullName: string;
|
|
1381
1383
|
projectName: string;
|
|
1382
1384
|
moduleName: string;
|
|
@@ -1389,14 +1391,14 @@ export function parsePackageJsonName(name: any): {
|
|
|
1389
1391
|
* @param {object} allExports Exported modules if available from node_modules
|
|
1390
1392
|
* @param {Boolean} deep Deep mode
|
|
1391
1393
|
*/
|
|
1392
|
-
export function addEvidenceForImports(pkgList:
|
|
1394
|
+
export function addEvidenceForImports(pkgList: array, allImports: object, allExports: object, deep: boolean): Promise<array>;
|
|
1393
1395
|
export function componentSorter(a: any, b: any): any;
|
|
1394
1396
|
export function parseCmakeDotFile(dotFile: any, pkgType: any, options?: {}): {
|
|
1395
1397
|
parentComponent: {};
|
|
1396
1398
|
pkgList: any[];
|
|
1397
1399
|
dependenciesList: {
|
|
1398
1400
|
ref: string;
|
|
1399
|
-
dependsOn: any;
|
|
1401
|
+
dependsOn: any[];
|
|
1400
1402
|
}[];
|
|
1401
1403
|
};
|
|
1402
1404
|
export function parseCmakeLikeFile(cmakeListFile: any, pkgType: any, options?: {}): {
|
|
@@ -1412,8 +1414,8 @@ export function getOSPackageForFile(afile: any, osPkgsList: any): any;
|
|
|
1412
1414
|
* @param {array} osPkgsList Array of OS pacakges represented as components
|
|
1413
1415
|
* @param {array} epkgList Existing packages list
|
|
1414
1416
|
*/
|
|
1415
|
-
export function getCppModules(src: string, options: object, osPkgsList:
|
|
1416
|
-
parentComponent: {};
|
|
1417
|
+
export function getCppModules(src: string, options: object, osPkgsList: array, epkgList: array): {
|
|
1418
|
+
parentComponent: {} | undefined;
|
|
1417
1419
|
pkgList: any[];
|
|
1418
1420
|
dependenciesList: {
|
|
1419
1421
|
ref: any;
|
|
@@ -1427,8 +1429,8 @@ export function getCppModules(src: string, options: object, osPkgsList: any[], e
|
|
|
1427
1429
|
* @param {object} apkg Package to locate
|
|
1428
1430
|
* @returns Located project with precise purl or the original unmodified input.
|
|
1429
1431
|
*/
|
|
1430
|
-
export function locateGenericPackage(apkg: object):
|
|
1431
|
-
export function parseCUsageSlice(sliceData: any): {};
|
|
1432
|
+
export function locateGenericPackage(apkg: object): object;
|
|
1433
|
+
export function parseCUsageSlice(sliceData: any): {} | undefined;
|
|
1432
1434
|
/**
|
|
1433
1435
|
* Method to retrieve metadata for nuget packages
|
|
1434
1436
|
*
|
|
@@ -1447,7 +1449,7 @@ export function addEvidenceForDotnet(pkgList: any, slicesFile: any): any;
|
|
|
1447
1449
|
*
|
|
1448
1450
|
* @returns {Object} pkgFilesMap Object with package name and list of files
|
|
1449
1451
|
*/
|
|
1450
|
-
export function parseMakeDFile(dfile: string):
|
|
1452
|
+
export function parseMakeDFile(dfile: string): Object;
|
|
1451
1453
|
/**
|
|
1452
1454
|
* Function to validate an externalReference URL for conforming to the JSON schema or bomLink
|
|
1453
1455
|
* https://github.com/CycloneDX/cyclonedx-core-java/blob/75575318b268dda9e2a290761d7db11b4f414255/src/main/resources/bom-1.5.schema.json#L1140
|
|
@@ -1508,7 +1510,7 @@ export function collectSharedLibs(basePath: any, libPaths: any, ldConf: string,
|
|
|
1508
1510
|
*
|
|
1509
1511
|
* @returns {Object} Object containing the name and version of the runtime
|
|
1510
1512
|
*/
|
|
1511
|
-
export function getRuntimeInformation():
|
|
1513
|
+
export function getRuntimeInformation(): Object;
|
|
1512
1514
|
/**
|
|
1513
1515
|
* Checks for dangerous Unicode characters that could enable homograph attacks
|
|
1514
1516
|
*
|
|
@@ -1544,17 +1546,17 @@ export const isDeno: boolean;
|
|
|
1544
1546
|
export const isWin: boolean;
|
|
1545
1547
|
export const isMac: boolean;
|
|
1546
1548
|
export let ATOM_DB: any;
|
|
1547
|
-
export const commandsExecuted: any
|
|
1549
|
+
export const commandsExecuted: Set<any>;
|
|
1548
1550
|
export const frameworksList: any;
|
|
1549
1551
|
export const CDXGEN_VERSION: any;
|
|
1550
|
-
export const DEBUG_MODE:
|
|
1551
|
-
export const TIMEOUT_MS:
|
|
1552
|
-
export const MAX_BUFFER:
|
|
1552
|
+
export const DEBUG_MODE: boolean;
|
|
1553
|
+
export const TIMEOUT_MS: number;
|
|
1554
|
+
export const MAX_BUFFER: number;
|
|
1553
1555
|
export let metadata_cache: {};
|
|
1554
|
-
export const includeMavenTestScope:
|
|
1556
|
+
export const includeMavenTestScope: boolean;
|
|
1555
1557
|
export const PREFER_MAVEN_DEPS_TREE: boolean;
|
|
1556
1558
|
export const FETCH_LICENSE: any;
|
|
1557
|
-
export const SEARCH_MAVEN_ORG:
|
|
1559
|
+
export const SEARCH_MAVEN_ORG: boolean;
|
|
1558
1560
|
export const JAVA_CMD: string;
|
|
1559
1561
|
export const PYTHON_CMD: string;
|
|
1560
1562
|
export let DOTNET_CMD: string;
|
|
@@ -1608,8 +1610,21 @@ export const PROJECT_TYPE_ALIASES: {
|
|
|
1608
1610
|
export namespace PACKAGE_MANAGER_ALIASES {
|
|
1609
1611
|
let scala: string[];
|
|
1610
1612
|
}
|
|
1611
|
-
export const remoteHostsAccessed: any
|
|
1612
|
-
export const cdxgenAgent:
|
|
1613
|
+
export const remoteHostsAccessed: Set<any>;
|
|
1614
|
+
export const cdxgenAgent: import("got").Got<{
|
|
1615
|
+
headers: {
|
|
1616
|
+
"user-agent": string;
|
|
1617
|
+
};
|
|
1618
|
+
cache: Keyv<any> | undefined;
|
|
1619
|
+
retry: {
|
|
1620
|
+
limit: number;
|
|
1621
|
+
};
|
|
1622
|
+
followRedirect: boolean;
|
|
1623
|
+
hooks: {
|
|
1624
|
+
beforeRequest: ((options: import("got").NormalizedOptions) => void)[];
|
|
1625
|
+
};
|
|
1626
|
+
}>;
|
|
1613
1627
|
export const RUBY_PLATFORM_PREFIXES: string[];
|
|
1614
1628
|
import { PackageURL } from "packageurl-js";
|
|
1629
|
+
import Keyv from "keyv";
|
|
1615
1630
|
//# sourceMappingURL=utils.d.ts.map
|