@cyclonedx/cdxgen 12.1.5 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -39
- package/bin/cdxgen.js +175 -96
- package/bin/evinse.js +4 -4
- package/bin/repl.js +1 -1
- package/bin/sign.js +102 -0
- package/bin/validate.js +233 -0
- package/bin/verify.js +69 -28
- package/data/queries.json +1 -1
- package/data/rules/ci-permissions.yaml +186 -0
- package/data/rules/dependency-sources.yaml +123 -0
- package/data/rules/package-integrity.yaml +135 -0
- package/data/rules/vscode-extensions.yaml +228 -0
- package/lib/cli/index.js +327 -372
- package/lib/evinser/db.js +137 -0
- package/lib/{helpers → evinser}/db.poku.js +2 -6
- package/lib/evinser/evinser.js +2 -14
- package/lib/helpers/bomSigner.js +312 -0
- package/lib/helpers/bomSigner.poku.js +156 -0
- package/lib/helpers/ciParsers/azurePipelines.js +295 -0
- package/lib/helpers/ciParsers/azurePipelines.poku.js +253 -0
- package/lib/helpers/ciParsers/circleCi.js +286 -0
- package/lib/helpers/ciParsers/circleCi.poku.js +230 -0
- package/lib/helpers/ciParsers/common.js +24 -0
- package/lib/helpers/ciParsers/githubActions.js +636 -0
- package/lib/helpers/ciParsers/githubActions.poku.js +802 -0
- package/lib/helpers/ciParsers/gitlabCi.js +213 -0
- package/lib/helpers/ciParsers/gitlabCi.poku.js +247 -0
- package/lib/helpers/ciParsers/jenkins.js +181 -0
- package/lib/helpers/ciParsers/jenkins.poku.js +197 -0
- package/lib/helpers/depsUtils.js +203 -0
- package/lib/helpers/depsUtils.poku.js +150 -0
- package/lib/helpers/display.js +423 -4
- package/lib/helpers/envcontext.js +18 -3
- package/lib/helpers/formulationParsers.js +351 -0
- package/lib/helpers/logger.js +14 -0
- package/lib/helpers/protobom.js +9 -9
- package/lib/helpers/pythonutils.js +9 -0
- package/lib/helpers/utils.js +681 -406
- package/lib/helpers/utils.poku.js +55 -255
- package/lib/helpers/versutils.js +202 -0
- package/lib/helpers/versutils.poku.js +315 -0
- package/lib/helpers/vsixutils.js +1061 -0
- package/lib/helpers/vsixutils.poku.js +2247 -0
- package/lib/managers/binary.js +19 -19
- package/lib/managers/docker.js +108 -1
- package/lib/managers/oci.js +10 -0
- package/lib/managers/piptree.js +3 -9
- package/lib/parsers/npmrc.js +17 -13
- package/lib/parsers/npmrc.poku.js +41 -5
- package/lib/server/openapi.yaml +1 -1
- package/lib/server/server.js +40 -11
- package/lib/server/server.poku.js +123 -144
- package/lib/stages/postgen/annotator.js +1 -1
- package/lib/stages/postgen/auditBom.js +197 -0
- package/lib/stages/postgen/auditBom.poku.js +378 -0
- package/lib/stages/postgen/postgen.js +54 -1
- package/lib/stages/postgen/postgen.poku.js +90 -1
- package/lib/stages/postgen/ruleEngine.js +369 -0
- package/lib/stages/pregen/envAudit.js +299 -0
- package/lib/stages/pregen/envAudit.poku.js +572 -0
- package/lib/stages/pregen/pregen.js +12 -8
- package/lib/{helpers/validator.js → validator/bomValidator.js} +107 -47
- package/lib/validator/complianceEngine.js +241 -0
- package/lib/validator/complianceEngine.poku.js +168 -0
- package/lib/validator/complianceRules.js +1610 -0
- package/lib/validator/complianceRules.poku.js +328 -0
- package/lib/validator/index.js +222 -0
- package/lib/validator/index.poku.js +144 -0
- package/lib/validator/reporters/annotations.js +121 -0
- package/lib/validator/reporters/console.js +149 -0
- package/lib/validator/reporters/index.js +41 -0
- package/lib/validator/reporters/json.js +37 -0
- package/lib/validator/reporters/sarif.js +184 -0
- package/lib/validator/reporters.poku.js +150 -0
- package/package.json +8 -8
- package/types/bin/sign.d.ts +3 -0
- package/types/bin/sign.d.ts.map +1 -0
- package/types/bin/validate.d.ts +3 -0
- package/types/bin/validate.d.ts.map +1 -0
- package/types/helpers/utils.d.ts +0 -1
- package/types/lib/cli/index.d.ts +49 -52
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/evinser/db.d.ts +34 -0
- package/types/lib/evinser/db.d.ts.map +1 -0
- package/types/lib/evinser/evinser.d.ts +63 -16
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/helpers/bomSigner.d.ts +27 -0
- package/types/lib/helpers/bomSigner.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/azurePipelines.d.ts +17 -0
- package/types/lib/helpers/ciParsers/azurePipelines.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/circleCi.d.ts +17 -0
- package/types/lib/helpers/ciParsers/circleCi.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/common.d.ts +11 -0
- package/types/lib/helpers/ciParsers/common.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/githubActions.d.ts +34 -0
- package/types/lib/helpers/ciParsers/githubActions.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/gitlabCi.d.ts +17 -0
- package/types/lib/helpers/ciParsers/gitlabCi.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/jenkins.d.ts +17 -0
- package/types/lib/helpers/ciParsers/jenkins.d.ts.map +1 -0
- package/types/lib/helpers/depsUtils.d.ts +21 -0
- package/types/lib/helpers/depsUtils.d.ts.map +1 -0
- package/types/lib/helpers/display.d.ts +111 -11
- package/types/lib/helpers/display.d.ts.map +1 -1
- package/types/lib/helpers/envcontext.d.ts +19 -7
- package/types/lib/helpers/envcontext.d.ts.map +1 -1
- package/types/lib/helpers/formulationParsers.d.ts +50 -0
- package/types/lib/helpers/formulationParsers.d.ts.map +1 -0
- package/types/lib/helpers/logger.d.ts +15 -1
- package/types/lib/helpers/logger.d.ts.map +1 -1
- package/types/lib/helpers/protobom.d.ts +2 -2
- package/types/lib/helpers/pythonutils.d.ts +10 -1
- package/types/lib/helpers/pythonutils.d.ts.map +1 -1
- package/types/lib/helpers/utils.d.ts +532 -128
- package/types/lib/helpers/utils.d.ts.map +1 -1
- package/types/lib/helpers/versutils.d.ts +8 -0
- package/types/lib/helpers/versutils.d.ts.map +1 -0
- package/types/lib/helpers/vsixutils.d.ts +130 -0
- package/types/lib/helpers/vsixutils.d.ts.map +1 -0
- package/types/lib/managers/docker.d.ts +12 -31
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +11 -1
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/managers/piptree.d.ts.map +1 -1
- package/types/lib/parsers/npmrc.d.ts +4 -1
- package/types/lib/parsers/npmrc.d.ts.map +1 -1
- package/types/lib/server/server.d.ts +21 -2
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/auditBom.d.ts +20 -0
- package/types/lib/stages/postgen/auditBom.d.ts.map +1 -0
- package/types/lib/stages/postgen/postgen.d.ts +8 -1
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/stages/postgen/ruleEngine.d.ts +18 -0
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -0
- package/types/lib/stages/pregen/envAudit.d.ts +8 -0
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -0
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
- package/types/lib/{helpers/validator.d.ts → validator/bomValidator.d.ts} +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -0
- package/types/lib/validator/complianceEngine.d.ts +66 -0
- package/types/lib/validator/complianceEngine.d.ts.map +1 -0
- package/types/lib/validator/complianceRules.d.ts +70 -0
- package/types/lib/validator/complianceRules.d.ts.map +1 -0
- package/types/lib/validator/index.d.ts +70 -0
- package/types/lib/validator/index.d.ts.map +1 -0
- package/types/lib/validator/reporters/annotations.d.ts +31 -0
- package/types/lib/validator/reporters/annotations.d.ts.map +1 -0
- package/types/lib/validator/reporters/console.d.ts +30 -0
- package/types/lib/validator/reporters/console.d.ts.map +1 -0
- package/types/lib/validator/reporters/index.d.ts +21 -0
- package/types/lib/validator/reporters/index.d.ts.map +1 -0
- package/types/lib/validator/reporters/json.d.ts +11 -0
- package/types/lib/validator/reporters/json.d.ts.map +1 -0
- package/types/lib/validator/reporters/sarif.d.ts +16 -0
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -0
- package/lib/helpers/db.js +0 -162
- package/lib/stages/pregen/env-audit.js +0 -34
- package/lib/stages/pregen/env-audit.poku.js +0 -290
- package/types/helpers/db.d.ts +0 -35
- package/types/helpers/db.d.ts.map +0 -1
- package/types/lib/helpers/db.d.ts +0 -35
- package/types/lib/helpers/db.d.ts.map +0 -1
- package/types/lib/helpers/validator.d.ts.map +0 -1
- package/types/lib/stages/pregen/env-audit.d.ts +0 -2
- package/types/lib/stages/pregen/env-audit.d.ts.map +0 -1
- package/types/managers/binary.d.ts +0 -37
- package/types/managers/binary.d.ts.map +0 -1
- package/types/managers/docker.d.ts +0 -56
- package/types/managers/docker.d.ts.map +0 -1
- package/types/managers/oci.d.ts +0 -2
- package/types/managers/oci.d.ts.map +0 -1
- package/types/managers/piptree.d.ts +0 -2
- package/types/managers/piptree.d.ts.map +0 -1
- package/types/server/server.d.ts +0 -34
- package/types/server/server.d.ts.map +0 -1
- package/types/stages/postgen/annotator.d.ts +0 -27
- package/types/stages/postgen/annotator.d.ts.map +0 -1
- package/types/stages/postgen/postgen.d.ts +0 -51
- package/types/stages/postgen/postgen.d.ts.map +0 -1
- package/types/stages/pregen/pregen.d.ts +0 -59
- package/types/stages/pregen/pregen.d.ts.map +0 -1
package/types/helpers/db.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export function createOrLoad(dbName: any, dbPath: any, logging?: boolean): Promise<{
|
|
2
|
-
sequelize: any;
|
|
3
|
-
Namespaces: Model;
|
|
4
|
-
Usages: Model;
|
|
5
|
-
DataFlows: Model;
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
* A lightweight Model wrapper to mimic Sequelize behavior using raw sqlite3
|
|
9
|
-
*/
|
|
10
|
-
declare class Model {
|
|
11
|
-
constructor(db: any, tableName: any);
|
|
12
|
-
db: any;
|
|
13
|
-
tableName: any;
|
|
14
|
-
/**
|
|
15
|
-
* Initialize table
|
|
16
|
-
*/
|
|
17
|
-
init(): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* findByPk
|
|
20
|
-
* Returns null if not found, or an object { purl, data (parsed object) }
|
|
21
|
-
*/
|
|
22
|
-
findByPk(purl: any): Promise<any>;
|
|
23
|
-
/**
|
|
24
|
-
* findOrCreate
|
|
25
|
-
* @param {Object} options { where: { purl }, defaults: { purl, data } }
|
|
26
|
-
*/
|
|
27
|
-
findOrCreate(options: any): Promise<any>;
|
|
28
|
-
/**
|
|
29
|
-
* findAll to handle the specific LIKE query from evinser.js
|
|
30
|
-
* @param {Object} options
|
|
31
|
-
*/
|
|
32
|
-
findAll(options: any): Promise<any>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=db.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../lib/helpers/db.js"],"names":[],"mappings":"AAoIO;;;;;GA6BN;AArJD;;GAEG;AACH;IACE,qCAGC;IAFC,QAAY;IACZ,eAA0B;IAG5B;;OAEG;IACH,qBAaC;IAED;;;OAGG;IACH,kCAkBC;IAED;;;OAGG;IACH,yCA4BC;IAED;;;OAGG;IACH,oCA4BC;CACF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export function createOrLoad(dbName: any, dbPath: any, logging?: boolean): Promise<{
|
|
2
|
-
sequelize: any;
|
|
3
|
-
Namespaces: Model;
|
|
4
|
-
Usages: Model;
|
|
5
|
-
DataFlows: Model;
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
* A lightweight Model wrapper to mimic Sequelize behavior using raw sqlite3
|
|
9
|
-
*/
|
|
10
|
-
declare class Model {
|
|
11
|
-
constructor(db: any, tableName: any);
|
|
12
|
-
db: any;
|
|
13
|
-
tableName: any;
|
|
14
|
-
/**
|
|
15
|
-
* Initialize table
|
|
16
|
-
*/
|
|
17
|
-
init(): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* findByPk
|
|
20
|
-
* Returns null if not found, or an object { purl, data (parsed object) }
|
|
21
|
-
*/
|
|
22
|
-
findByPk(purl: any): Promise<any>;
|
|
23
|
-
/**
|
|
24
|
-
* findOrCreate
|
|
25
|
-
* @param {Object} options { where: { purl }, defaults: { purl, data } }
|
|
26
|
-
*/
|
|
27
|
-
findOrCreate(options: Object): Promise<any>;
|
|
28
|
-
/**
|
|
29
|
-
* findAll to handle the specific LIKE query from evinser.js
|
|
30
|
-
* @param {Object} options
|
|
31
|
-
*/
|
|
32
|
-
findAll(options: Object): Promise<any>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=db.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../lib/helpers/db.js"],"names":[],"mappings":"AAoIO;;;;;GA6BN;AArJD;;GAEG;AACH;IACE,qCAGC;IAFC,QAAY;IACZ,eAA0B;IAG5B;;OAEG;IACH,qBAaC;IAED;;;OAGG;IACH,kCAkBC;IAED;;;OAGG;IACH,sBAFW,MAAM,gBA8BhB;IAED;;;OAGG;IACH,iBAFW,MAAM,gBA8BhB;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../lib/helpers/validator.js"],"names":[],"mappings":"AA8XA;;;;GAIG;AACH,uCAFW,MAAM,WA0FhB;AAvcM,qCAJI,MAAM,WAiEhB;AAOM,0CAFI,MAAM,WAmEhB;AAOM,uCAFI,MAAM,WA2GhB;AA6BM,sCAFI,MAAM,WAwFhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env-audit.d.ts","sourceRoot":"","sources":["../../../../lib/stages/pregen/env-audit.js"],"names":[],"mappings":"AAgBA,sDAiBC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export function getCargoAuditableInfo(src: any): any;
|
|
2
|
-
/**
|
|
3
|
-
* Execute sourcekitten plugin with the given arguments
|
|
4
|
-
*
|
|
5
|
-
* @param args {Array} Arguments
|
|
6
|
-
* @returns {undefined|Object} Command output
|
|
7
|
-
*/
|
|
8
|
-
export function executeSourcekitten(args: any[]): undefined | any;
|
|
9
|
-
/**
|
|
10
|
-
* Get the packages installed in the container image filesystem.
|
|
11
|
-
*
|
|
12
|
-
* @param src {String} Source directory containing the extracted filesystem.
|
|
13
|
-
* @param imageConfig {Object} Image configuration containing environment variables, command, entrypoints etc
|
|
14
|
-
*
|
|
15
|
-
* @returns {Object} Metadata containing packages, dependencies, etc
|
|
16
|
-
*/
|
|
17
|
-
export function getOSPackages(src: string, imageConfig: any): any;
|
|
18
|
-
export function executeOsQuery(query: any): any;
|
|
19
|
-
/**
|
|
20
|
-
* Method to execute dosai to create slices for dotnet
|
|
21
|
-
*
|
|
22
|
-
* @param {string} src Source Path
|
|
23
|
-
* @param {string} slicesFile Slices file name
|
|
24
|
-
* @returns boolean
|
|
25
|
-
*/
|
|
26
|
-
export function getDotnetSlices(src: string, slicesFile: string): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Method to generate binary SBOM using blint
|
|
29
|
-
*
|
|
30
|
-
* @param {string} src Path to binary or its directory
|
|
31
|
-
* @param {string} binaryBomFile Path to binary
|
|
32
|
-
* @param {boolean} deepMode Deep mode flag
|
|
33
|
-
*
|
|
34
|
-
* @return {boolean} Result of the generation
|
|
35
|
-
*/
|
|
36
|
-
export function getBinaryBom(src: string, binaryBomFile: string, deepMode: boolean): boolean;
|
|
37
|
-
//# sourceMappingURL=binary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../lib/managers/binary.js"],"names":[],"mappings":"AAsYA,qDAgBC;AAED;;;;;GAKG;AACH,kDAFa,SAAS,MAAO,CAkB5B;AAED;;;;;;;GAOG;AACH,kEAieC;AA+DD,gDAgDC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,cACN,MAAM,WAwChB;AAED;;;;;;;;GAQG;AACH,kCANW,MAAM,iBACN,MAAM,YACN,OAAO,GAEN,OAAO,CAiClB"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect colima
|
|
3
|
-
*/
|
|
4
|
-
export function detectColima(): any;
|
|
5
|
-
/**
|
|
6
|
-
* Detect if Rancher desktop is running on a mac.
|
|
7
|
-
*/
|
|
8
|
-
export function detectRancherDesktop(): any;
|
|
9
|
-
export const isWin: boolean;
|
|
10
|
-
export const DOCKER_HUB_REGISTRY: "docker.io";
|
|
11
|
-
export function stripAbsolutePath(path: any): any;
|
|
12
|
-
export function getDirs(dirPath: string, dirName: string, hidden?: boolean, recurse?: boolean): string[];
|
|
13
|
-
export function getOnlyDirs(srcpath: any, dirName: any): any[];
|
|
14
|
-
export function getConnection(options: any, forRegistry: any): Promise<any>;
|
|
15
|
-
export function makeRequest(path: any, method: any, forRegistry: any): Promise<any>;
|
|
16
|
-
export function parseImageName(fullImageName: any): {
|
|
17
|
-
registry: string;
|
|
18
|
-
repo: string;
|
|
19
|
-
tag: string;
|
|
20
|
-
digest: string;
|
|
21
|
-
platform: string;
|
|
22
|
-
group: string;
|
|
23
|
-
name: string;
|
|
24
|
-
};
|
|
25
|
-
export function getImage(fullImageName: any): Promise<any>;
|
|
26
|
-
export function extractTar(fullImageName: any, dir: any, options: any): Promise<boolean>;
|
|
27
|
-
export function exportArchive(fullImageName: any, options?: {}): Promise<{
|
|
28
|
-
manifest: {};
|
|
29
|
-
allLayersDir: any;
|
|
30
|
-
allLayersExplodedDir: any;
|
|
31
|
-
lastLayerConfig: {};
|
|
32
|
-
lastWorkingDir: string;
|
|
33
|
-
} | {
|
|
34
|
-
inspectData: any;
|
|
35
|
-
manifest: any;
|
|
36
|
-
allLayersDir: any;
|
|
37
|
-
allLayersExplodedDir: any;
|
|
38
|
-
lastLayerConfig: {};
|
|
39
|
-
lastWorkingDir: string;
|
|
40
|
-
binPaths: any;
|
|
41
|
-
}>;
|
|
42
|
-
export function extractFromManifest(manifestFile: any, localData: any, tempDir: any, allLayersExplodedDir: any, options: any): Promise<{
|
|
43
|
-
inspectData: any;
|
|
44
|
-
manifest: any;
|
|
45
|
-
allLayersDir: any;
|
|
46
|
-
allLayersExplodedDir: any;
|
|
47
|
-
lastLayerConfig: {};
|
|
48
|
-
lastWorkingDir: string;
|
|
49
|
-
binPaths: any;
|
|
50
|
-
}>;
|
|
51
|
-
export function exportImage(fullImageName: any, options: any): Promise<any>;
|
|
52
|
-
export function getPkgPathList(exportData: any, lastWorkingDir: any): any;
|
|
53
|
-
export function removeImage(fullImageName: any, force?: boolean): Promise<any>;
|
|
54
|
-
export function getCredsFromHelper(exeSuffix: any, serverAddress: any): any;
|
|
55
|
-
export function addSkippedSrcFiles(skippedImageSrcs: any, components: any): void;
|
|
56
|
-
//# sourceMappingURL=docker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../lib/managers/docker.js"],"names":[],"mappings":"AAmFA;;GAEG;AACH,oCAoBC;AAED;;GAEG;AACH,4CA2CC;AA5HD,4BAA6C;AAC7C,kCAAmC,WAAW,CAAC;AAmCxC,kDAeN;AAoFM,iCAHI,MAAM,WACN,MAAM,iDAehB;AAqBM,+DAkBN;AA0LM,4EAoGN;AAEM,oFAwBN;AAUM;;;;;;;;EA2EN;AAyBM,2DA+LN;AA6EM,yFAsFN;AAMM;;;;;;;;;;;;;;GAwDN;AAEM;;;;;;;;GAyGN;AAMM,4EA8IN;AAKM,0EA8GN;AAEM,+EAEN;AAEM,4EA0CN;AAEM,iFA0BN"}
|
package/types/managers/oci.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oci.d.ts","sourceRoot":"","sources":["../../lib/managers/oci.js"],"names":[],"mappings":"AAWA,gEAyEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"piptree.d.ts","sourceRoot":"","sources":["../../lib/managers/piptree.js"],"names":[],"mappings":"AAwOO,uFAmCN"}
|
package/types/server/server.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks the given hostname against the allowed list.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} hostname Host name to check
|
|
5
|
-
* @returns {boolean} true if the hostname in its entirety is allowed. false otherwise.
|
|
6
|
-
*/
|
|
7
|
-
export function isAllowedHost(hostname: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Checks the given path string to belong to a drive in Windows.
|
|
10
|
-
*
|
|
11
|
-
* @param {string} p Path string to check
|
|
12
|
-
* @returns {boolean} true if the windows path belongs to a drive. false otherwise (device names)
|
|
13
|
-
*/
|
|
14
|
-
export function isAllowedWinPath(p: string): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Checks the given path against the allowed list.
|
|
17
|
-
*
|
|
18
|
-
* @param {string} p Path string to check
|
|
19
|
-
* @returns {boolean} true if the path is present in the allowed paths. false otherwise.
|
|
20
|
-
*/
|
|
21
|
-
export function isAllowedPath(p: string): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Method to safely parse value passed via the query string or body.
|
|
24
|
-
*
|
|
25
|
-
* @param {string|number|Array<string|number>} raw
|
|
26
|
-
* @returns {string|number|boolean|Array<string|number|boolean>}
|
|
27
|
-
* @throws {TypeError} if raw (or any array element) isn’t string or number
|
|
28
|
-
*/
|
|
29
|
-
export function parseValue(raw: string | number | Array<string | number>): string | number | boolean | Array<string | number | boolean>;
|
|
30
|
-
export function parseQueryString(q: any, body?: {}, options?: {}): {};
|
|
31
|
-
export function getQueryParams(req: any): {};
|
|
32
|
-
export function configureServer(cdxgenServer: any): void;
|
|
33
|
-
export function start(options: any): void;
|
|
34
|
-
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../lib/server/server.js"],"names":[],"mappings":"AAoEA;;;;;GAKG;AACH,wCAHW,MAAM,GACJ,OAAO,CAanB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,OAAO,CAsCnB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CAoBnB;AA0CD;;;;;;GAMG;AACH,gCAJW,MAAM,GAAC,MAAM,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,GAChC,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAC,CAwC9D;AAED,sEAiBC;AAED,6CA+BC;AAiBD,yDAKC;AAID,0CA0LC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Method to determine the type of the BOM.
|
|
3
|
-
*
|
|
4
|
-
* @param {Object} bomJson BOM JSON Object
|
|
5
|
-
*
|
|
6
|
-
* @returns {String} Type of the bom such as sbom, cbom, obom, ml-bom etc
|
|
7
|
-
*/
|
|
8
|
-
export function findBomType(bomJson: any): string;
|
|
9
|
-
/**
|
|
10
|
-
* Create the textual representation of the metadata section.
|
|
11
|
-
*
|
|
12
|
-
* @param {Object} bomJson BOM JSON Object
|
|
13
|
-
*
|
|
14
|
-
* @returns {String | undefined} Textual representation of the metadata
|
|
15
|
-
*/
|
|
16
|
-
export function textualMetadata(bomJson: any): string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Extract interesting tags from the component attribute
|
|
19
|
-
*
|
|
20
|
-
* @param {Object} component CycloneDX component
|
|
21
|
-
* @param {String} bomType BOM type
|
|
22
|
-
* @param {String} parentComponentType Parent component type
|
|
23
|
-
*
|
|
24
|
-
* @returns {Array | undefined} Array of string tags
|
|
25
|
-
*/
|
|
26
|
-
export function extractTags(component: any, bomType?: string, parentComponentType?: string): any[] | undefined;
|
|
27
|
-
//# sourceMappingURL=annotator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../lib/stages/postgen/annotator.js"],"names":[],"mappings":"AA4CA;;;;;;GAMG;AACH,kDAkCC;AAED;;;;;;GAMG;AACH,+CAFa,SAAS,SAAS,CA2N9B;AAED;;;;;;;;GAQG;AACH,6FAFa,QAAQ,SAAS,CAsF7B"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Filter and enhance BOM post generation.
|
|
3
|
-
*
|
|
4
|
-
* @param {Object} bomNSData BOM with namespaces object
|
|
5
|
-
* @param {Object} options CLI options
|
|
6
|
-
*
|
|
7
|
-
* @returns {Object} Modified bomNSData
|
|
8
|
-
*/
|
|
9
|
-
export function postProcess(bomNSData: any, options: any): any;
|
|
10
|
-
/**
|
|
11
|
-
* Apply additional metadata based on components
|
|
12
|
-
*
|
|
13
|
-
* @param {Object} bomJson BOM JSON Object
|
|
14
|
-
* @param {Object} options CLI options
|
|
15
|
-
*
|
|
16
|
-
* @returns {Object} Filtered BOM JSON
|
|
17
|
-
*/
|
|
18
|
-
export function applyMetadata(bomJson: any, options: any): any;
|
|
19
|
-
/**
|
|
20
|
-
* Apply definitions.standards based on options
|
|
21
|
-
*
|
|
22
|
-
* @param {Object} bomJson BOM JSON Object
|
|
23
|
-
* @param {Object} options CLI options
|
|
24
|
-
*
|
|
25
|
-
* @returns {Object} Filtered BOM JSON
|
|
26
|
-
*/
|
|
27
|
-
export function applyStandards(bomJson: any, options: any): any;
|
|
28
|
-
/**
|
|
29
|
-
* Filter BOM based on options
|
|
30
|
-
*
|
|
31
|
-
* @param {Object} bomJson BOM JSON Object
|
|
32
|
-
* @param {Object} options CLI options
|
|
33
|
-
*
|
|
34
|
-
* @returns {Object} Filtered BOM JSON
|
|
35
|
-
*/
|
|
36
|
-
export function filterBom(bomJson: any, options: any): any;
|
|
37
|
-
/**
|
|
38
|
-
* Clean up
|
|
39
|
-
*/
|
|
40
|
-
export function cleanupEnv(_options: any): void;
|
|
41
|
-
export function cleanupTmpDir(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Annotate the document with annotator
|
|
44
|
-
*
|
|
45
|
-
* @param {Object} bomJson BOM JSON Object
|
|
46
|
-
* @param {Object} options CLI options
|
|
47
|
-
*
|
|
48
|
-
* @returns {Object} Annotated BOM JSON
|
|
49
|
-
*/
|
|
50
|
-
export function annotate(bomJson: any, options: any): any;
|
|
51
|
-
//# sourceMappingURL=postgen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postgen.d.ts","sourceRoot":"","sources":["../../../lib/stages/postgen/postgen.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,+DAmBC;AAED;;;;;;;GAOG;AACH,+DA4HC;AAED;;;;;;;GAOG;AACH,gEAmCC;AAkED;;;;;;;GAOG;AACH,2DAqKC;AAED;;GAEG;AACH,gDAIC;AAED,sCAIC;AAMD;;;;;;;GAOG;AACH,0DAuHC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Method to prepare the build environment for BOM generation purposes.
|
|
3
|
-
*
|
|
4
|
-
* @param {String} filePath Path
|
|
5
|
-
* @param {Object} options CLI options
|
|
6
|
-
*/
|
|
7
|
-
export function prepareEnv(filePath: string, options: any): void;
|
|
8
|
-
/**
|
|
9
|
-
* Method to prepare sdkman build environment for BOM generation purposes.
|
|
10
|
-
*
|
|
11
|
-
* @param {String} projectType Project type
|
|
12
|
-
*/
|
|
13
|
-
export function prepareSdkmanBuild(projectType: string): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Method to check and prepare the environment for python
|
|
16
|
-
*
|
|
17
|
-
* @param {String} _filePath Path
|
|
18
|
-
* @param {Object} options CLI Options
|
|
19
|
-
*/
|
|
20
|
-
export function preparePythonEnv(_filePath: string, options: any): void;
|
|
21
|
-
/**
|
|
22
|
-
* Method to check and prepare the environment for node
|
|
23
|
-
*
|
|
24
|
-
* @param {String} filePath Path
|
|
25
|
-
* @param {Object} options CLI Options
|
|
26
|
-
*/
|
|
27
|
-
export function prepareNodeEnv(filePath: string, options: any): void;
|
|
28
|
-
/**
|
|
29
|
-
* If NVM_DIR is in path, however nvm command is not loaded.
|
|
30
|
-
* it is possible that required nodeVersion is not installed.
|
|
31
|
-
* This function loads nvm and install the nodeVersion
|
|
32
|
-
*
|
|
33
|
-
* @param {String} nodeVersion required version number
|
|
34
|
-
*
|
|
35
|
-
* @returns {Boolean} true if successful, otherwise false
|
|
36
|
-
*/
|
|
37
|
-
export function tryLoadNvmAndInstallTool(nodeVersion: string): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* This method installs and create package-lock.json
|
|
40
|
-
*
|
|
41
|
-
* @param {String} filePath Path
|
|
42
|
-
* @param {String} nvmNodePath Path to node version in nvm
|
|
43
|
-
*/
|
|
44
|
-
export function doNpmInstall(filePath: string, nvmNodePath: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Method to check and build the swift project
|
|
47
|
-
*
|
|
48
|
-
* @param {String} filePath Path
|
|
49
|
-
* @param {Object} options CLI Options
|
|
50
|
-
*/
|
|
51
|
-
export function prepareSwiftEnv(filePath: string, options: any): void;
|
|
52
|
-
/**
|
|
53
|
-
* Method to check and prepare the environment for Ruby projects
|
|
54
|
-
*
|
|
55
|
-
* @param {String} filePath Path
|
|
56
|
-
* @param {Object} options CLI Options
|
|
57
|
-
*/
|
|
58
|
-
export function prepareRubyEnv(filePath: string, options: any): void;
|
|
59
|
-
//# sourceMappingURL=pregen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pregen.d.ts","sourceRoot":"","sources":["../../../lib/stages/pregen/pregen.js"],"names":[],"mappings":"AAgCA;;;;;GAKG;AACH,iEAkBC;AAED;;;;GAIG;AACH,iEASC;AAED;;;;;GAKG;AACH,wEAyCC;AAED;;;;;GAKG;AACH,qEAyDC;AAED;;;;;;;;GAQG;AACH,uEAmBC;AAED;;;;;GAKG;AACH,0EAyCC;AAED;;;;;GAKG;AACH,sEA6EC;AAED;;;;;GAKG;AACH,qEA8PC"}
|