@cdxgen/cdxgen 13.2.0 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -14
- package/bin/cdxgen.js +310 -138
- package/bin/evinse.js +22 -0
- package/bin/repl.js +86 -0
- package/bin/sign.js +119 -15
- package/bin/tracebom.js +69 -5
- package/bin/validate.js +107 -19
- package/bin/verify.js +172 -63
- package/data/helpers/init.gradle +46 -21
- package/data/remediations.json +85 -0
- package/data/rules/dependency-sources.yaml +67 -0
- package/data/rules/scala-evidence.yaml +115 -0
- package/lib/audit/index.js +38 -6
- package/lib/cli/bomAssembly.js +105 -15
- package/lib/cli/cliOptions.js +93 -1
- package/lib/cli/index.js +156 -58
- package/lib/cli/jsBom.js +99 -53
- package/lib/cli/jvmBom.js +708 -147
- package/lib/cli/managedBom.js +415 -224
- package/lib/cli/nativeBom.js +264 -44
- package/lib/core/activity.js +12 -0
- package/lib/core/env.js +22 -15
- package/lib/core/fs.js +176 -7
- package/lib/core/httpClient.js +159 -24
- package/lib/core/metadataProperties.js +97 -0
- package/lib/core/pluginRun.js +184 -0
- package/lib/core/processTree.js +100 -0
- package/lib/core/projectConfig.js +31 -4
- package/lib/core/runState.js +39 -0
- package/lib/core/toml.js +72 -0
- package/lib/ecosystems/asarutils.js +4 -2
- package/lib/ecosystems/bunutils.js +274 -108
- package/lib/ecosystems/cargoCache.js +231 -8
- package/lib/ecosystems/caxa.js +434 -2
- package/lib/ecosystems/cmakeResolver.js +76 -21
- package/lib/ecosystems/cppBuildContext.js +631 -0
- package/lib/ecosystems/cppEvidence.js +399 -51
- package/lib/ecosystems/cppIncludeResolver.js +294 -0
- package/lib/ecosystems/denoutils.js +93 -66
- package/lib/ecosystems/ecosystems.js +1983 -793
- package/lib/ecosystems/golem.js +28 -12
- package/lib/ecosystems/gradleutils.js +356 -37
- package/lib/ecosystems/jsEvidence.js +104 -44
- package/lib/ecosystems/kosi.js +31 -7
- package/lib/ecosystems/npmutils.js +174 -9
- package/lib/ecosystems/parsers-dotnet.js +616 -159
- package/lib/ecosystems/parsers-elm.js +46 -28
- package/lib/ecosystems/parsers-gleam.js +3 -4
- package/lib/ecosystems/parsers-go.js +371 -70
- package/lib/ecosystems/parsers-js.js +263 -76
- package/lib/ecosystems/parsers-julia.js +2 -3
- package/lib/ecosystems/parsers-jvm.js +204 -12
- package/lib/ecosystems/parsers-misc.js +929 -216
- package/lib/ecosystems/parsers-python.js +167 -24
- package/lib/ecosystems/parsers-rust.js +28 -22
- package/lib/ecosystems/parsers-terraform.js +1573 -19
- package/lib/ecosystems/pythonutils.js +102 -6
- package/lib/ecosystems/remote/huggingface.js +3 -0
- package/lib/ecosystems/rubyutils.js +1492 -182
- package/lib/ecosystems/rusi.js +54 -10
- package/lib/ecosystems/sbtutils.js +243 -187
- package/lib/ecosystems/scalacliutils.js +342 -0
- package/lib/ecosystems/scalasem.js +2618 -0
- package/lib/ecosystems/terraformRegistry.js +288 -0
- package/lib/ecosystems/utils.js +2 -0
- package/lib/ecosystems/vendoredCode.js +156 -0
- package/lib/evinser/evinser.js +1008 -191
- package/lib/evinser/swiftsem.js +1914 -302
- package/lib/helpers/agenticToolutils.js +2 -2
- package/lib/helpers/bomSigner.js +1101 -222
- package/lib/inventory/aiCollector.js +4 -1
- package/lib/inventory/analyzer.js +110 -127
- package/lib/inventory/atomUtils.js +703 -43
- package/lib/inventory/auditCategories.js +7 -0
- package/lib/inventory/buildToolRateLimit.js +144 -0
- package/lib/inventory/cacheCommands.js +2 -1
- package/lib/inventory/cdxrs.js +103 -12
- package/lib/inventory/cmakeBuildDirs.js +254 -0
- package/lib/inventory/deps.js +501 -124
- package/lib/inventory/depsUtils.js +183 -11
- package/lib/inventory/display.js +4 -5
- package/lib/inventory/dosai.js +798 -57
- package/lib/inventory/dosaiParsers.js +310 -15
- package/lib/inventory/dynamic.js +90 -6
- package/lib/inventory/evidenceUtils.js +166 -113
- package/lib/inventory/fetchBatch.js +690 -55
- package/lib/inventory/fetchDiskCache.js +597 -0
- package/lib/inventory/forgeEnricher.js +14 -5
- package/lib/inventory/jvmLocalRepos.js +917 -0
- package/lib/inventory/mcpConfigParser.js +2 -3
- package/lib/inventory/parentSelection.js +146 -0
- package/lib/inventory/protobom.js +8 -1
- package/lib/inventory/purl.js +152 -3
- package/lib/inventory/rustFormulationParser.js +3 -4
- package/lib/inventory/sbomDocument.js +2 -70
- package/lib/inventory/scalaCoords.js +153 -0
- package/lib/inventory/source.js +45 -27
- package/lib/inventory/spdx.js +101 -0
- package/lib/inventory/traceRunner.js +295 -25
- package/lib/inventory/tracedCrypto.js +294 -0
- package/lib/managers/binary.js +115 -24
- package/lib/managers/docker.js +467 -46
- package/lib/managers/oci.js +63 -3
- package/lib/parsers/cmakeCache.js +69 -0
- package/lib/parsers/cmakeLists.js +466 -0
- package/lib/parsers/cmakePresets.js +400 -0
- package/lib/parsers/compileCommands.js +557 -0
- package/lib/parsers/largeJson.js +454 -0
- package/lib/parsers/npmrc.js +19 -1
- package/lib/parsers/strictJson.js +322 -0
- package/lib/parsers/terraformConfig.js +1073 -0
- package/lib/parsers/terraformSource.js +652 -0
- package/lib/server/server.js +23 -0
- package/lib/stages/postgen/introspection/markers.js +1 -1
- package/lib/stages/postgen/postgen.js +83 -16
- package/lib/stages/postgen/specVersionCompat.js +32 -0
- package/lib/validator/bomValidator.js +6 -16
- package/lib/validator/index.js +64 -11
- package/lib/validator/reporters/console.js +3 -0
- package/lib/validator/reporters/json.js +2 -0
- package/lib/validator/reporters/sarif.js +7 -0
- package/package.json +23 -23
- package/types/lib/audit/index.d.ts.map +1 -1
- package/types/lib/cli/bomAssembly.d.ts +2 -1
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +33 -1
- package/types/lib/cli/cliOptions.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/cli/jsBom.d.ts.map +1 -1
- package/types/lib/cli/jvmBom.d.ts +24 -1
- package/types/lib/cli/jvmBom.d.ts.map +1 -1
- package/types/lib/cli/managedBom.d.ts +7 -4
- package/types/lib/cli/managedBom.d.ts.map +1 -1
- package/types/lib/cli/nativeBom.d.ts +3 -1
- package/types/lib/cli/nativeBom.d.ts.map +1 -1
- package/types/lib/core/activity.d.ts.map +1 -1
- package/types/lib/core/env.d.ts +9 -0
- package/types/lib/core/env.d.ts.map +1 -1
- package/types/lib/core/fs.d.ts +55 -0
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/httpClient.d.ts +13 -8
- package/types/lib/core/httpClient.d.ts.map +1 -1
- package/types/lib/core/metadataProperties.d.ts +39 -0
- package/types/lib/core/metadataProperties.d.ts.map +1 -0
- package/types/lib/core/pluginRun.d.ts +97 -0
- package/types/lib/core/pluginRun.d.ts.map +1 -0
- package/types/lib/core/processTree.d.ts +36 -0
- package/types/lib/core/processTree.d.ts.map +1 -0
- package/types/lib/core/projectConfig.d.ts +6 -2
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/core/runState.d.ts +29 -0
- package/types/lib/core/runState.d.ts.map +1 -0
- package/types/lib/core/toml.d.ts +20 -0
- package/types/lib/core/toml.d.ts.map +1 -0
- package/types/lib/ecosystems/asarutils.d.ts.map +1 -1
- package/types/lib/ecosystems/bunutils.d.ts +12 -5
- package/types/lib/ecosystems/bunutils.d.ts.map +1 -1
- package/types/lib/ecosystems/cargoCache.d.ts +12 -0
- package/types/lib/ecosystems/cargoCache.d.ts.map +1 -1
- package/types/lib/ecosystems/caxa.d.ts +14 -0
- package/types/lib/ecosystems/caxa.d.ts.map +1 -1
- package/types/lib/ecosystems/cmakeResolver.d.ts +28 -3
- package/types/lib/ecosystems/cmakeResolver.d.ts.map +1 -1
- package/types/lib/ecosystems/cppBuildContext.d.ts +55 -0
- package/types/lib/ecosystems/cppBuildContext.d.ts.map +1 -0
- package/types/lib/ecosystems/cppEvidence.d.ts +17 -1
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/cppIncludeResolver.d.ts +92 -0
- package/types/lib/ecosystems/cppIncludeResolver.d.ts.map +1 -0
- package/types/lib/ecosystems/denoutils.d.ts +9 -3
- package/types/lib/ecosystems/denoutils.d.ts.map +1 -1
- package/types/lib/ecosystems/ecosystems.d.ts +62 -13
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +70 -4
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/jsEvidence.d.ts +5 -2
- package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/kosi.d.ts +13 -0
- package/types/lib/ecosystems/kosi.d.ts.map +1 -1
- package/types/lib/ecosystems/npmutils.d.ts +57 -0
- package/types/lib/ecosystems/npmutils.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-dotnet.d.ts +118 -4
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-elm.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-gleam.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-go.d.ts +54 -2
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-js.d.ts +16 -5
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-julia.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-jvm.d.ts +46 -1
- package/types/lib/ecosystems/parsers-jvm.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +70 -4
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts +53 -3
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-terraform.d.ts +38 -21
- package/types/lib/ecosystems/parsers-terraform.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +27 -2
- package/types/lib/ecosystems/pythonutils.d.ts.map +1 -1
- package/types/lib/ecosystems/remote/huggingface.d.ts.map +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts +164 -3
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts +13 -0
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/ecosystems/sbtutils.d.ts +88 -2
- package/types/lib/ecosystems/sbtutils.d.ts.map +1 -1
- package/types/lib/ecosystems/scalacliutils.d.ts +56 -0
- package/types/lib/ecosystems/scalacliutils.d.ts.map +1 -0
- package/types/lib/ecosystems/scalasem.d.ts +311 -0
- package/types/lib/ecosystems/scalasem.d.ts.map +1 -0
- package/types/lib/ecosystems/terraformRegistry.d.ts +9 -0
- package/types/lib/ecosystems/terraformRegistry.d.ts.map +1 -0
- package/types/lib/ecosystems/utils.d.ts +2 -2
- package/types/lib/ecosystems/utils.d.ts.map +1 -1
- package/types/lib/ecosystems/vendoredCode.d.ts +32 -0
- package/types/lib/ecosystems/vendoredCode.d.ts.map +1 -0
- package/types/lib/evinser/evinser.d.ts +132 -15
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +280 -15
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/helpers/bomSigner.d.ts +182 -13
- package/types/lib/helpers/bomSigner.d.ts.map +1 -1
- package/types/lib/inventory/aiCollector.d.ts.map +1 -1
- package/types/lib/inventory/analyzer.d.ts.map +1 -1
- package/types/lib/inventory/atomUtils.d.ts +219 -5
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/auditCategories.d.ts +3 -0
- package/types/lib/inventory/auditCategories.d.ts.map +1 -1
- package/types/lib/inventory/buildToolRateLimit.d.ts +38 -0
- package/types/lib/inventory/buildToolRateLimit.d.ts.map +1 -0
- package/types/lib/inventory/cacheCommands.d.ts +2 -1
- package/types/lib/inventory/cacheCommands.d.ts.map +1 -1
- package/types/lib/inventory/cdxrs.d.ts +8 -3
- package/types/lib/inventory/cdxrs.d.ts.map +1 -1
- package/types/lib/inventory/cmakeBuildDirs.d.ts +58 -0
- package/types/lib/inventory/cmakeBuildDirs.d.ts.map +1 -0
- package/types/lib/inventory/deps.d.ts +59 -1
- package/types/lib/inventory/deps.d.ts.map +1 -1
- package/types/lib/inventory/depsUtils.d.ts +15 -0
- package/types/lib/inventory/depsUtils.d.ts.map +1 -1
- package/types/lib/inventory/display.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +121 -9
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dosaiParsers.d.ts +53 -7
- package/types/lib/inventory/dosaiParsers.d.ts.map +1 -1
- package/types/lib/inventory/dynamic.d.ts +10 -0
- package/types/lib/inventory/dynamic.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts +19 -4
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/fetchBatch.d.ts +83 -14
- package/types/lib/inventory/fetchBatch.d.ts.map +1 -1
- package/types/lib/inventory/fetchDiskCache.d.ts +169 -0
- package/types/lib/inventory/fetchDiskCache.d.ts.map +1 -0
- package/types/lib/inventory/forgeEnricher.d.ts.map +1 -1
- package/types/lib/inventory/jvmLocalRepos.d.ts +178 -0
- package/types/lib/inventory/jvmLocalRepos.d.ts.map +1 -0
- package/types/lib/inventory/mcpConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/parentSelection.d.ts +34 -0
- package/types/lib/inventory/parentSelection.d.ts.map +1 -0
- package/types/lib/inventory/plugins.d.ts.map +1 -1
- package/types/lib/inventory/protobom.d.ts.map +1 -1
- package/types/lib/inventory/purl.d.ts +71 -2
- package/types/lib/inventory/purl.d.ts.map +1 -1
- package/types/lib/inventory/rustFormulationParser.d.ts.map +1 -1
- package/types/lib/inventory/sbomDocument.d.ts.map +1 -1
- package/types/lib/inventory/scalaCoords.d.ts +80 -0
- package/types/lib/inventory/scalaCoords.d.ts.map +1 -0
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/inventory/spdx.d.ts +9 -0
- package/types/lib/inventory/spdx.d.ts.map +1 -1
- package/types/lib/inventory/traceRunner.d.ts +59 -1
- package/types/lib/inventory/traceRunner.d.ts.map +1 -1
- package/types/lib/inventory/tracedCrypto.d.ts +42 -0
- package/types/lib/inventory/tracedCrypto.d.ts.map +1 -0
- package/types/lib/managers/binary.d.ts +30 -1
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +29 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +17 -1
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/parsers/cmakeCache.d.ts +16 -0
- package/types/lib/parsers/cmakeCache.d.ts.map +1 -1
- package/types/lib/parsers/cmakeLists.d.ts +77 -0
- package/types/lib/parsers/cmakeLists.d.ts.map +1 -0
- package/types/lib/parsers/cmakePresets.d.ts +78 -0
- package/types/lib/parsers/cmakePresets.d.ts.map +1 -0
- package/types/lib/parsers/compileCommands.d.ts +115 -0
- package/types/lib/parsers/compileCommands.d.ts.map +1 -0
- package/types/lib/parsers/largeJson.d.ts +52 -0
- package/types/lib/parsers/largeJson.d.ts.map +1 -0
- package/types/lib/parsers/npmrc.d.ts +5 -0
- package/types/lib/parsers/npmrc.d.ts.map +1 -1
- package/types/lib/parsers/strictJson.d.ts +46 -0
- package/types/lib/parsers/strictJson.d.ts.map +1 -0
- package/types/lib/parsers/terraformConfig.d.ts +70 -0
- package/types/lib/parsers/terraformConfig.d.ts.map +1 -0
- package/types/lib/parsers/terraformSource.d.ts +66 -0
- package/types/lib/parsers/terraformSource.d.ts.map +1 -0
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/stages/postgen/specVersionCompat.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
- package/types/lib/validator/index.d.ts +18 -1
- package/types/lib/validator/index.d.ts.map +1 -1
- package/types/lib/validator/reporters/console.d.ts.map +1 -1
- package/types/lib/validator/reporters/json.d.ts.map +1 -1
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -1
- package/lib/third-party/arborist/snapshots/calc-dep-flags.test.cjs +0 -462
|
@@ -59,6 +59,14 @@ export declare function testUrlExists(url: string): Promise<boolean>;
|
|
|
59
59
|
* @returns {string|null} local jar path or null
|
|
60
60
|
*/
|
|
61
61
|
export declare function findLocalJarPath(group: string, name: string, version: string): string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Forget every memoised Coursier lookup, including misses. A long-lived
|
|
64
|
+
* process calls this per scan so that artifacts downloaded since the previous
|
|
65
|
+
* scan are found.
|
|
66
|
+
*
|
|
67
|
+
* @returns {void}
|
|
68
|
+
*/
|
|
69
|
+
export declare function resetSbtResolutionCaches(): void;
|
|
62
70
|
/**
|
|
63
71
|
* Resolve the repo/jar download URLs and optional hashes for a Maven coordinate.
|
|
64
72
|
*
|
|
@@ -87,9 +95,12 @@ export declare function resolveJarDistribution(group: string, name: string, vers
|
|
|
87
95
|
* coordinates, building a hierarchical dependency graph. Evicted packages and ranges are ignored.
|
|
88
96
|
*
|
|
89
97
|
* @param {string} sbtTreeFile Path to the sbt dependency tree output file
|
|
98
|
+
* @param {string} [srcFile] Build definition the tree was resolved from, named as the
|
|
99
|
+
* identity source of every component. The tree file itself is a temporary file cdxgen
|
|
100
|
+
* deletes after the scan, and naming it would make the BOM differ between two runs.
|
|
90
101
|
* @returns {{ pkgList: Object[], dependenciesList: Object[] }}
|
|
91
102
|
*/
|
|
92
|
-
export declare function parseSbtTree(sbtTreeFile: string): {
|
|
103
|
+
export declare function parseSbtTree(sbtTreeFile: string, srcFile?: string): {
|
|
93
104
|
pkgList: Object[];
|
|
94
105
|
dependenciesList: Object[];
|
|
95
106
|
};
|
|
@@ -100,7 +111,7 @@ export declare function parseSbtTree(sbtTreeFile: string): {
|
|
|
100
111
|
*/
|
|
101
112
|
export declare function parseSbtLock(pkgLockFile: string): Promise<{
|
|
102
113
|
group: any;
|
|
103
|
-
name:
|
|
114
|
+
name: string;
|
|
104
115
|
version: any;
|
|
105
116
|
_integrity: string;
|
|
106
117
|
scope: string | undefined;
|
|
@@ -169,6 +180,34 @@ export declare function parseSbtProjects(stdout: string): {
|
|
|
169
180
|
projects: string[];
|
|
170
181
|
root: string | undefined;
|
|
171
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* Whether an sbt version is sbt 2 or later, the release candidates of sbt 2
|
|
185
|
+
* included: `2.0.0-RC12` is below `2.0.0` in semver order.
|
|
186
|
+
*
|
|
187
|
+
* @param {string|null|undefined} sbtVersion Version from project/build.properties
|
|
188
|
+
* @returns {boolean} True for sbt 2.x and later
|
|
189
|
+
*/
|
|
190
|
+
export declare function isSbt2Version(sbtVersion: string | null | undefined): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Build the single command line an sbt 2 dependency tree session runs.
|
|
193
|
+
*
|
|
194
|
+
* sbt 2 joins separate command-line arguments into one command line, so the
|
|
195
|
+
* commands are joined with `;` and passed as one argument. sbt 2 ships the
|
|
196
|
+
* dependency tree tasks itself, and `dependencyTree / toFile` became
|
|
197
|
+
* `dependencyTree --out`, so every tree is written to its own file, the
|
|
198
|
+
* extra roots a tree may list included. The trees are not aggregated: the
|
|
199
|
+
* tree of an aggregating root would otherwise be overwritten by the trees of
|
|
200
|
+
* the projects it aggregates. Each tree is scoped to its project, so one
|
|
201
|
+
* unresolvable subproject cannot fail the others.
|
|
202
|
+
*
|
|
203
|
+
* @param {{project?: string, file: string}[]} trees The project id of each
|
|
204
|
+
* tree, none for the current project, and the file it is written to
|
|
205
|
+
* @returns {string} The `;`-joined command line
|
|
206
|
+
*/
|
|
207
|
+
export declare function sbt2DependencyTreeCommand(trees: {
|
|
208
|
+
project?: string;
|
|
209
|
+
file: string;
|
|
210
|
+
}[]): string;
|
|
172
211
|
/**
|
|
173
212
|
* Parse plugins.sbt files to extract sbt plugins as development dependencies.
|
|
174
213
|
*
|
|
@@ -176,4 +215,51 @@ export declare function parseSbtProjects(stdout: string): {
|
|
|
176
215
|
* @returns {Object[]} List of parsed dependency components
|
|
177
216
|
*/
|
|
178
217
|
export declare function parseSbtPlugins(projectPath: string): Object[];
|
|
218
|
+
/**
|
|
219
|
+
* The sbt launcher jar beside the `sbt.bat` on PATH, or under `SBT_HOME`.
|
|
220
|
+
* `SBT_LAUNCH_JAR` names one directly.
|
|
221
|
+
*
|
|
222
|
+
* @returns {string|undefined} Path of `sbt-launch.jar`
|
|
223
|
+
*/
|
|
224
|
+
export declare function sbtLaunchJar(): string | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Split sbt arguments written for a POSIX shell into the arguments the shell
|
|
227
|
+
* would pass: whitespace separates them outside quotes, and single or double
|
|
228
|
+
* quotes group words without escapes, so a Windows path keeps its
|
|
229
|
+
* backslashes.
|
|
230
|
+
*
|
|
231
|
+
* @param {string[]} args Shell-quoted argument fragments
|
|
232
|
+
* @returns {string[]} The arguments
|
|
233
|
+
*/
|
|
234
|
+
export declare function splitSbtShellArgs(args: string[]): string[];
|
|
235
|
+
/**
|
|
236
|
+
* The command line that starts sbt from its launcher jar. The options
|
|
237
|
+
* `sbt.bat` handles itself become what it makes of them: `-no-colors` and
|
|
238
|
+
* `-D` properties are JVM options, `-addPluginSbtFile` is sbt's own
|
|
239
|
+
* `--addPluginSbtFile`, and `-batch` and the thin client switches have no
|
|
240
|
+
* meaning there. The JVM options of `SBT_OPTS`, `JAVA_OPTS` and the build's
|
|
241
|
+
* `.jvmopts` are kept.
|
|
242
|
+
*
|
|
243
|
+
* @param {string[]} args Arguments as given to `sbt`
|
|
244
|
+
* @param {string} jar The sbt launcher jar
|
|
245
|
+
* @param {string} [dir] Build directory
|
|
246
|
+
* @returns {{ command: string, args: string[] }}
|
|
247
|
+
*/
|
|
248
|
+
export declare function sbtLauncherCommand(args: string[], jar: string, dir?: string): {
|
|
249
|
+
command: string;
|
|
250
|
+
args: string[];
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Run sbt. On Windows, `sbt.bat` parses its arguments as batch syntax, which
|
|
254
|
+
* keeps the POSIX quoting of the commands and mangles quotes inside them, so
|
|
255
|
+
* sbt starts there from its launcher jar with each command one argument.
|
|
256
|
+
* Elsewhere, or without a launcher jar, sbt runs as given.
|
|
257
|
+
*
|
|
258
|
+
* @param {string} sbtCmd sbt executable
|
|
259
|
+
* @param {string[]} args sbt arguments
|
|
260
|
+
* @param {Object} options Spawn options, as for safeSpawnSync
|
|
261
|
+
* @param {boolean} [shellQuoted] Whether the arguments carry POSIX shell quoting
|
|
262
|
+
* @returns {Object} The spawn result
|
|
263
|
+
*/
|
|
264
|
+
export declare function sbtSpawnSync(sbtCmd: string, args: string[], options: Object, shellQuoted?: boolean): Object;
|
|
179
265
|
//# sourceMappingURL=sbtutils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sbtutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/sbtutils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sbtutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/sbtutils.js"],"names":[],"mappings":"AA4EA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAF/B,MAE+B,OAEzC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAFpC,MAEoC,iBAa9C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAH1B,MAG0B,EAAE,MAAM,EAFlC,MAEkC,iBAc5C;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAH9B,MAG8B,EAAE,mBAAmB,EAFnD,MAEmD,WAkB7D;AAED;;;;;;;GAOG;AACH,wBA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EADQ,OAG4D,GAF1D,MAAM,CAoBlB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse the `//> using` directives of a scala-cli source file.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} sourceFile Path of the source file
|
|
5
|
+
* @returns {{ scalaVersion: string|null, platform: string|null, nativeVersion: string|null, deps: Object[] }}
|
|
6
|
+
* The declared scala version and platform, and the declared dependencies as
|
|
7
|
+
* `{ group, artifact, version, cross, test }` entries, where `cross` is
|
|
8
|
+
* `::`, `:::` or `none`
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseScalaCliDirectives(sourceFile: string): {
|
|
11
|
+
scalaVersion: string | null;
|
|
12
|
+
platform: string | null;
|
|
13
|
+
nativeVersion: string | null;
|
|
14
|
+
deps: Object[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Build a component for a scala-cli dependency in the sbt purl form: the
|
|
18
|
+
* Scala binary suffix is not part of the name, the platform suffix of the
|
|
19
|
+
* declared platform is, and the Scala binary version is recorded as
|
|
20
|
+
* cdx:scala:compilerVersion.
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} dep Parsed dependency declaration
|
|
23
|
+
* @param {Object} project Directives of the file the dependency was declared in
|
|
24
|
+
* @param {string} sourceFile File the dependency was declared in
|
|
25
|
+
* @returns {Object|null} The component, or null for malformed declarations
|
|
26
|
+
*/
|
|
27
|
+
export declare function scalaCliComponent(dep: Object, project: Object, sourceFile: string): Object | null;
|
|
28
|
+
/**
|
|
29
|
+
* Map a jar path of the Coursier cache to its Maven coordinates.
|
|
30
|
+
*
|
|
31
|
+
* Only the https cache layout with a well-known repository path segment is
|
|
32
|
+
* parsed; anything else returns null rather than guessing a group id.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} jarPath Path of a jar in the Coursier cache
|
|
35
|
+
* @returns {{ group: string, name: string, version: string }|null} The coordinates
|
|
36
|
+
*/
|
|
37
|
+
export declare function coordinatesFromCoursierPath(jarPath: string): {
|
|
38
|
+
group: string;
|
|
39
|
+
name: string;
|
|
40
|
+
version: string;
|
|
41
|
+
} | null;
|
|
42
|
+
/**
|
|
43
|
+
* Collect the components a scala-cli project declares through its
|
|
44
|
+
* `//> using` directives.
|
|
45
|
+
*
|
|
46
|
+
* Transitive dependencies are added from the class path of
|
|
47
|
+
* `scala-cli compile --print-class-path` when dependency installation is
|
|
48
|
+
* allowed, by mapping the Coursier cache paths back to coordinates.
|
|
49
|
+
*
|
|
50
|
+
* @param {string} dirPath Directory of the scala-cli project
|
|
51
|
+
* @param {Object} options CLI options
|
|
52
|
+
* @returns {Object[]} Component list, empty when the project declares no
|
|
53
|
+
* scala-cli directives
|
|
54
|
+
*/
|
|
55
|
+
export declare function collectScalaCliComponents(dirPath: string, options?: Object): Object[];
|
|
56
|
+
//# sourceMappingURL=scalacliutils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalacliutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/scalacliutils.js"],"names":[],"mappings":"AAwCA;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EANvC,MAMuC,GALrC;IAAE,YAAY,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,aAAa,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAyD5G;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAL1B,MAK0B,EAAE,OAAO,EAJnC,MAImC,EAAE,UAAU,EAH/C,MAG+C,GAF7C,MAAM,GAAC,IAAI,CAuDvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAHxC,MAGwC,GAFtC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAC,IAAI,CAkCjE;AAsBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EALtC,MAKsC,EAAE,OAAO,GAJ/C,MAIoD,GAHlD,MAAM,EAAE,CAmGpB"}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
export declare const JDK_OWNER_PREFIXES: string[];
|
|
2
|
+
export declare const SCALA_STDLIB_ARTIFACTS: Set<string>;
|
|
3
|
+
export declare function appendUniqueProperty(properties: any, name: any, value: any): void;
|
|
4
|
+
export declare function addPropertyValue(map: any, key: any, name: any, value: any): void;
|
|
5
|
+
export declare function addSetValue(map: any, key: any, value: any): void;
|
|
6
|
+
/**
|
|
7
|
+
* True for every project type the Scala path serves, matching the alias list
|
|
8
|
+
* the BOM generators dispatch on.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} language Project language or type.
|
|
11
|
+
* @returns {boolean}
|
|
12
|
+
*/
|
|
13
|
+
export declare function isScalasemLanguage(language: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* True when scalasem is turned off, through CDXGEN_SCALASEM_DISABLE or the
|
|
16
|
+
* --no-scalasem flag, which yargs carries as `scalasem: false`. Library code never reads
|
|
17
|
+
* process.argv for this.
|
|
18
|
+
*
|
|
19
|
+
* @param {Object} options CLI options.
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
export declare function scalasemDisabled(options?: Object): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The scalasem entry point: SCALASEM_CMD wins, then the scalasem.js inside
|
|
25
|
+
* the installed atom-parsetools package.
|
|
26
|
+
*
|
|
27
|
+
* @returns {string|undefined}
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveScalasemCommand(): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Where the scalasem report is persisted. An absolute --semantics-slices-file
|
|
32
|
+
* keeps its directory; anything else lands in the evinse output directory, the
|
|
33
|
+
* same rule the atom slice writer follows.
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} options CLI options carrying `output` and `semanticsSlicesFile`.
|
|
36
|
+
* @returns {string} Absolute report path.
|
|
37
|
+
*/
|
|
38
|
+
export declare function scalasemOutputFile(options?: Object): string;
|
|
39
|
+
/**
|
|
40
|
+
* A version 1 semantics slice (the shape atom's scalasem wrote before schema
|
|
41
|
+
* version 2): keyed by .scala files with `usedTypes`, no `_meta.schemaVersion`.
|
|
42
|
+
*
|
|
43
|
+
* @param {Object} parsed Candidate slice.
|
|
44
|
+
* @returns {boolean}
|
|
45
|
+
*/
|
|
46
|
+
export declare function isV1SemanticsSlice(parsed: Object): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Run scalasem over a Scala project and return its report, reusing a
|
|
49
|
+
* persisted version 2 report that belongs to this project and is newer than
|
|
50
|
+
* the input BOM.
|
|
51
|
+
*
|
|
52
|
+
* Failures are visible rather than silent: the reason is printed once, the
|
|
53
|
+
* run's diagnostics reach the caller as `cdx:scalasem:diagnostic` properties,
|
|
54
|
+
* and --fail-on-error claims the exit status. A version 1 slice of this
|
|
55
|
+
* project, at the path the user named or at the report path, is returned
|
|
56
|
+
* separately and never overwritten; the fresh report then goes to a
|
|
57
|
+
* temporary file.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} src Project directory.
|
|
60
|
+
* @param {Object} options CLI options.
|
|
61
|
+
* @returns {Object|undefined} `{ report, reportFile, v1Slice, metadataProperties }`,
|
|
62
|
+
* or undefined when the analyzer is disabled.
|
|
63
|
+
*/
|
|
64
|
+
export declare function analyzeScalaProject(src: string, options?: Object): Object | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The `cdx:scalasem:*` metadata properties of one run: what produced the
|
|
67
|
+
* report, and what limited it.
|
|
68
|
+
*
|
|
69
|
+
* @param {Object|undefined} report Parsed scalasem report, when one exists.
|
|
70
|
+
* @param {Object[]} diagnostics Run diagnostics, from the report or the spawn.
|
|
71
|
+
* @returns {Object[]} Metadata properties.
|
|
72
|
+
*/
|
|
73
|
+
export declare function scalasemMetadataProperties(report: Object | undefined, diagnostics?: Object[]): Object[];
|
|
74
|
+
export declare function sortedCsv(values: any): string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The platform a purl's artifact name targets: `_sjs1` is Scala.js,
|
|
77
|
+
* `_native0.x` is Scala Native, and neither is the JVM.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} purl Package URL.
|
|
80
|
+
* @returns {"jvm"|"js"|"native"} Platform key.
|
|
81
|
+
*/
|
|
82
|
+
export declare function scalaPurlPlatform(purl: string): "jvm" | "js" | "native";
|
|
83
|
+
/**
|
|
84
|
+
* The class and package index that joins scalasem symbols to component purls.
|
|
85
|
+
*
|
|
86
|
+
* Symbols are indexed from three sources in priority order: the classpath the
|
|
87
|
+
* report recorded (1), the `internal:Namespaces` properties of the components
|
|
88
|
+
* (2), and the jar namespace map cdxgen writes beside the BOM (3). A symbol an
|
|
89
|
+
* earlier source already attributed is never re-attributed by a later one.
|
|
90
|
+
*
|
|
91
|
+
* A jar answers for the classes it ships and for the packages it ships classes
|
|
92
|
+
* in directly, never for the parents of those packages: a library with one
|
|
93
|
+
* class under `scala.collection.compat` owns neither `scala.collection` nor
|
|
94
|
+
* `scala`. The JDK has no component, and neither do the project's own classes.
|
|
95
|
+
*/
|
|
96
|
+
export declare class ScalaJoinIndex {
|
|
97
|
+
classPurls: Map<any, any>;
|
|
98
|
+
packagePurls: Map<any, any>;
|
|
99
|
+
sourceBySymbol: Map<any, any>;
|
|
100
|
+
purlsBySource: Map<any, any>;
|
|
101
|
+
namespacesByPurl: Map<any, any>;
|
|
102
|
+
projectClasses: Set<any>;
|
|
103
|
+
projectPackages: Set<any>;
|
|
104
|
+
constructor();
|
|
105
|
+
hasNamespaces(purl: any): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Index the classes of one library: each class under its dotted name (a
|
|
108
|
+
* nested `Outer$Inner` also as `Outer.Inner`, an object `Foo$` as `Foo`),
|
|
109
|
+
* and the package each one sits in.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} purl The owning component purl.
|
|
112
|
+
* @param {string[]} names Class names from the jar or the namespace property.
|
|
113
|
+
* @param {number} source The source priority, 1 to 3.
|
|
114
|
+
*/
|
|
115
|
+
addNamespaces(purl: string, names: string[], source: number): void;
|
|
116
|
+
addSymbol(map: any, symbol: any, purl: any, source: any): void;
|
|
117
|
+
/**
|
|
118
|
+
* Record the classes the project defines, so that references to them, and
|
|
119
|
+
* to packages only the project fills, never join a library.
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} report Parsed scalasem report.
|
|
122
|
+
*/
|
|
123
|
+
addProjectDefinitions(report: Object): void;
|
|
124
|
+
/**
|
|
125
|
+
* Whether a symbol belongs to code the BOM has no component for: the JDK,
|
|
126
|
+
* or the project itself.
|
|
127
|
+
*/
|
|
128
|
+
isUnowned(symbol: any): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The libraries that ship the class a symbol names: the longest dotted
|
|
131
|
+
* prefix of the symbol that is a class name, for a member or a nested type.
|
|
132
|
+
*/
|
|
133
|
+
classOwners(symbol: any): any;
|
|
134
|
+
/**
|
|
135
|
+
* The libraries that ship classes directly in the package a symbol names or
|
|
136
|
+
* sits in. A package the project also fills is ambiguous and joins nothing,
|
|
137
|
+
* and `javax.` names join only through an exact class, since the JDK ships
|
|
138
|
+
* most of them.
|
|
139
|
+
*/
|
|
140
|
+
packageOwners(symbol: any): any;
|
|
141
|
+
/**
|
|
142
|
+
* The purl owning a symbol: the class first, then the package it sits in,
|
|
143
|
+
* each narrowed to the module's own classpath and the file's platform, and
|
|
144
|
+
* kept only when a single owner remains.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} symbol Fully qualified symbol from the report.
|
|
147
|
+
* @param {string|undefined} platform Platform of the referencing file.
|
|
148
|
+
* @param {Set<string>|undefined} allowedPurls Purls on the module's classpath.
|
|
149
|
+
* @returns {string|undefined} Component purl.
|
|
150
|
+
*/
|
|
151
|
+
lookup(symbol: string, platform: string | undefined, allowedPurls: Set<string> | undefined): string | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* The owners a stack is evidence for: every jar that ships the class, since
|
|
154
|
+
* which one served the call cannot be told from the source, or the single
|
|
155
|
+
* package owner when no jar lists the class.
|
|
156
|
+
*/
|
|
157
|
+
lookupAll(symbol: any, platform: any, allowedPurls: any): any[];
|
|
158
|
+
/**
|
|
159
|
+
* Narrow candidate owners to what the referencing file can use. A module
|
|
160
|
+
* compiles against its own classpath: a library on it wins, and a library
|
|
161
|
+
* only other modules compile against does not qualify. A library on no
|
|
162
|
+
* module's classpath stays a candidate, since the report cannot list every
|
|
163
|
+
* jar (a locally published snapshot, say). The file's platform then picks
|
|
164
|
+
* among the JVM, Scala.js and Scala Native variants of one library.
|
|
165
|
+
*/
|
|
166
|
+
narrow(candidates: any, platform: any, allowedPurls: any): any[];
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Whether a report key names a source file entry. The schema keys file
|
|
170
|
+
* entries by their relative path, for Scala sources, scripts and the Java
|
|
171
|
+
* sources of a mixed module alike.
|
|
172
|
+
*/
|
|
173
|
+
export declare function isReportFileKey(key: any): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Index the BOM components by their normalized Scala coordinates, both with
|
|
176
|
+
* and without the version, so a classpath jar, a namespace property and a map
|
|
177
|
+
* entry of the same library meet on one component. Each entry keeps the Scala
|
|
178
|
+
* binary version the component was built for, so the `_2.13` and `_3`
|
|
179
|
+
* artifacts of one library in a Maven build stay apart.
|
|
180
|
+
*/
|
|
181
|
+
export declare function componentCoordinateIndex(components?: any[]): {
|
|
182
|
+
byVersion: Map<any, any>;
|
|
183
|
+
withoutVersion: Map<any, any>;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* The component a report classpath entry belongs to. Coordinates are
|
|
187
|
+
* normalized (`upickle_sjs1_3` and the purl name `upickle_sjs1` share a key),
|
|
188
|
+
* the entry's version and Scala binary version win, and a versionless match
|
|
189
|
+
* must have a single owner. A jar the BOM does not hold matches nothing: no
|
|
190
|
+
* component is invented.
|
|
191
|
+
*
|
|
192
|
+
* @returns {{component: Object, exact: boolean}|undefined} The component, and
|
|
193
|
+
* whether its version is the one on the classpath.
|
|
194
|
+
*/
|
|
195
|
+
export declare function matchClasspathEntry(entry: any, { byVersion, withoutVersion }: {
|
|
196
|
+
byVersion: any;
|
|
197
|
+
withoutVersion: any;
|
|
198
|
+
}, platform: any): {
|
|
199
|
+
component: Object;
|
|
200
|
+
exact: boolean;
|
|
201
|
+
} | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Build the symbol index from the three sources, reading each classpath jar
|
|
204
|
+
* once, and only for components that carry no namespaces yet.
|
|
205
|
+
*
|
|
206
|
+
* @param {Object} report Parsed scalasem report.
|
|
207
|
+
* @param {Object[]} components BOM components.
|
|
208
|
+
* @param {Object} jarNSMapping The jar namespace map cdxgen writes beside the BOM.
|
|
209
|
+
* @returns {Promise<ScalaJoinIndex>}
|
|
210
|
+
*/
|
|
211
|
+
export declare function buildScalaJoinIndex(report: Object, components: Object[], jarNSMapping: Object): Promise<ScalaJoinIndex>;
|
|
212
|
+
export declare const SCALASEM_PROTOCOL_NAMES: Set<string>;
|
|
213
|
+
export declare const SCALASEM_KEYSTORE_NAMES: Set<string>;
|
|
214
|
+
export declare const SCALASEM_QUALIFIED_ALGORITHMS: Set<string>;
|
|
215
|
+
export declare const SCALASEM_NO_OID_ALGORITHMS: Set<string>;
|
|
216
|
+
/**
|
|
217
|
+
* The OID registry key for a canonical scalasem algorithm name, with the key
|
|
218
|
+
* size, mode, curve or padding when the name needs one. Names that have no
|
|
219
|
+
* key return undefined.
|
|
220
|
+
*
|
|
221
|
+
* @param {string} name Canonical algorithm name.
|
|
222
|
+
* @param {number} [keySize] Key size in bits, when the report carries one.
|
|
223
|
+
* @param {string} [mode] Block cipher mode, such as `GCM`.
|
|
224
|
+
* @param {string} [curve] Elliptic curve name.
|
|
225
|
+
* @param {string} [padding] JCA padding name.
|
|
226
|
+
* @returns {string|undefined} Registry key such as `aes256-GCM`.
|
|
227
|
+
*/
|
|
228
|
+
export declare function scalasemCryptoOidKey(name: string, keySize?: number, mode?: string, curve?: string, padding?: string): string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Project a scalasem report onto CycloneDX evidence: occurrences for the
|
|
231
|
+
* joined components, call stacks for the library sinks, namespaces for the
|
|
232
|
+
* components the classpath join read, and the run's metadata properties.
|
|
233
|
+
*
|
|
234
|
+
* @param {Object} report Parsed scalasem report.
|
|
235
|
+
* @param {Object[]} components BOM components.
|
|
236
|
+
* @param {Object} options CLI options; `scalaNamespaceMap` carries the jar
|
|
237
|
+
* namespace map cdxgen wrote beside the BOM.
|
|
238
|
+
* @returns {Promise<Object>} The evidence maps `createEvinseFile` consumes.
|
|
239
|
+
*/
|
|
240
|
+
export declare function collectScalasemEvidence(report?: Object, components?: Object[], options?: Object): Promise<Object>;
|
|
241
|
+
/**
|
|
242
|
+
* The component purl of the library a crypto finding names as its provider.
|
|
243
|
+
* Maven coordinates match on group and base artifact; the short aliases cover
|
|
244
|
+
* the providers the rules emit for libraries without a coordinate.
|
|
245
|
+
*/
|
|
246
|
+
export declare function scalasemProviderPurl(provider: any, components?: any[]): any;
|
|
247
|
+
/**
|
|
248
|
+
* A JDBC address without what may carry credentials: userinfo, the Oracle
|
|
249
|
+
* `user/password@` prefix, URL parameters and the `;key=value` properties
|
|
250
|
+
* some drivers take. The report is sanitized already; this keeps the BOM
|
|
251
|
+
* safe from a report written by anything else.
|
|
252
|
+
*
|
|
253
|
+
* @param {string} value JDBC URL.
|
|
254
|
+
* @returns {string} The address part.
|
|
255
|
+
*/
|
|
256
|
+
export declare function sanitizeJdbcUrl(value: string): string;
|
|
257
|
+
/**
|
|
258
|
+
* The host a service URL names, or the topic and JDBC scheme equivalents, so
|
|
259
|
+
* every outbound service is named after where it talks to rather than the
|
|
260
|
+
* client library it uses.
|
|
261
|
+
*/
|
|
262
|
+
export declare function scalasemServiceName(service: any): any;
|
|
263
|
+
/**
|
|
264
|
+
* The endpoint a service row carries, normalized: a URL as its scheme and
|
|
265
|
+
* host, a host as it is, a topic as `client:topic`, a JDBC URL with its
|
|
266
|
+
* credentials and parameters dropped.
|
|
267
|
+
*/
|
|
268
|
+
export declare function scalasemServiceEndpoint(service: any): any;
|
|
269
|
+
/**
|
|
270
|
+
* Outbound services: HTTP and websocket clients, data stores, messaging
|
|
271
|
+
* topics and cloud clients. Locations ride in
|
|
272
|
+
* `cdx:scalasem:service:location` properties because CycloneDX services
|
|
273
|
+
* carry no evidence field before 2.0; spec compatibility keeps the
|
|
274
|
+
* occurrences below that only at 2.0.
|
|
275
|
+
*
|
|
276
|
+
* @param {Object} report Parsed scalasem report.
|
|
277
|
+
* @param {Object} servicesMap Map populated with service definitions.
|
|
278
|
+
* @returns {Object} The mutated services map.
|
|
279
|
+
*/
|
|
280
|
+
export declare function collectScalasemServices(report?: Object, servicesMap?: Object): Object;
|
|
281
|
+
/**
|
|
282
|
+
* Inbound endpoints, one service per route, named the way the OpenAPI reader
|
|
283
|
+
* names its own so the two converge on one entry for the same route.
|
|
284
|
+
*
|
|
285
|
+
* @param {Object} report Parsed scalasem report.
|
|
286
|
+
* @param {Object} servicesMap Map populated with service definitions.
|
|
287
|
+
* @returns {Object} The mutated services map.
|
|
288
|
+
*/
|
|
289
|
+
export declare function collectScalasemApiEndpoints(report?: Object, servicesMap?: Object): Object;
|
|
290
|
+
/**
|
|
291
|
+
* The npm packages a Scala.js build bundles. scalajs-bundler installs them
|
|
292
|
+
* with a lock file under `target`, and a bundler workspace such as a Vite
|
|
293
|
+
* client keeps its own manifest and lock file beside the build. Their npm
|
|
294
|
+
* components join the BOM so the report's JavaScript module imports can be
|
|
295
|
+
* attributed to them. Only lock files name the installed versions, and a
|
|
296
|
+
* workspace counts only when its manifest uses Scala.js, so a documentation
|
|
297
|
+
* site or a tool's own `package.json` adds nothing.
|
|
298
|
+
*
|
|
299
|
+
* @param {string} src Project directory.
|
|
300
|
+
* @param {Object[]} pkgList Components the build tools reported.
|
|
301
|
+
* @param {Object} [options] CLI options; `exclude` is honoured.
|
|
302
|
+
* @returns {Promise<{components: Object[], roots: string[], dependencies: Object[]}>}
|
|
303
|
+
* Npm components, the bom-refs the workspaces depend on directly, and the
|
|
304
|
+
* lock files' dependency edges between the npm components.
|
|
305
|
+
*/
|
|
306
|
+
export declare function collectScalaJsNpmComponents(src: string, pkgList?: Object[], options?: Object): Promise<{
|
|
307
|
+
components: Object[];
|
|
308
|
+
roots: string[];
|
|
309
|
+
dependencies: Object[];
|
|
310
|
+
}>;
|
|
311
|
+
//# sourceMappingURL=scalasem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalasem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/scalasem.js"],"names":[],"mappings":"AA+CA,eAAO,MAAM,kBAAkB,UAA4B,CAAC;AAM5D,eAAO,MAAM,sBAAsB,aAQjC,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,UAAU,KAAA,EAAE,IAAI,KAAA,EAAE,KAAK,KAAA,QAY3D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,IAAI,KAAA,EAAE,KAAK,KAAA,QAMrD;AAED,wBAAgB,WAAW,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,KAAK,KAAA,QAM1C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAHhC,MAGgC,GAF9B,OAAO,CAMnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAH7B,MAGkC,GAFhC,OAAO,CASnB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAFzB,MAAM,GAAC,SAAS,CAM5B;AAwBD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAH/B,MAGoC,GAFlC,MAAM,CAyBlB;AAuBD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,E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AOG,GALD,OAAO,CAAC,MAAM,CAAC,CAyE3B;AA+WD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,KAAA,EAAE,UAAU,QAAK,OA+B7D;AAkTD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAH1B,MAG0B,GAFxB,MAAM,CAmClB;AAaD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,KAAA,OAmB1C;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,KAAA,OAuB9C;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,GAJnC,MAIwC,EAAE,WAAW,GAHrD,MAG0D,GAFxD,MAAM,CAmDlB;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,GAJvC,MAI4C,EAAE,WAAW,GAHzD,MAG8D,GAF5D,MAAM,CA6DlB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,2BAA2B,CAC/C,GAAG,EARM,MAQN,EACH,OAAO,GARE,MAAM,EAQH,EACZ,OAAO,AARN,CACA,EADQ,MAQG,GAPD,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC,CAqEpF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enrich Terraform components in place. Never throws; a failed lookup leaves
|
|
3
|
+
* the component exactly as the offline pass produced it.
|
|
4
|
+
*
|
|
5
|
+
* @param {object[]} pkgList Components to enrich
|
|
6
|
+
* @returns {Promise<object[]>} The same package list
|
|
7
|
+
*/
|
|
8
|
+
export declare function getTerraformRegistryMetadata(pkgList: object[]): Promise<object[]>;
|
|
9
|
+
//# sourceMappingURL=terraformRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terraformRegistry.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/terraformRegistry.js"],"names":[],"mappings":"AA4DA;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAAC,OAAO,EAH/C,MAAM,EAGyC,GAF7C,OAAO,CAAC,MAAM,EAAE,CAAC,CAsI7B"}
|
|
@@ -30,12 +30,12 @@ import { composePomXmlUrl, extractJarArchive, extractLicenseCommentFromPomXml, f
|
|
|
30
30
|
import { getMavenCommand, getMillCommand } from "./gradleutils.js";
|
|
31
31
|
import { createNpmWorkspacePurl } from "./npmutils.js";
|
|
32
32
|
import { getCentralPackageVersions, getPropertyGroupTextNodes, parseCsPkgData, parseCsPkgLockData, parseCsProjAssetsData, parseCsProjData, parseDirectoryPackagesProps, parseNupkg, parseNuspecData, parsePaketLockData } from "./parsers-dotnet.js";
|
|
33
|
-
import { getGoPkgComponent, parseGoListDep, parseGoModData, parseGoModGraph, parseGoModulesTxt, parseGoModWhy, parseGopkgData, parseGosumData, parseGoVersionData } from "./parsers-go.js";
|
|
33
|
+
import { getGoPkgComponent, parseGoListDep, parseGoModData, parseGoModGraph, parseGoModulesTxt, parseGoModWhy, parseGopkgData, parseGosumData, parseGosumHashes, parseGoVersionData } from "./parsers-go.js";
|
|
34
34
|
import { findPnpmPackagePath, getVersionNumPnpm, parseBowerJson, parseMinJs, parseNodeShrinkwrap, parsePackageJsonName, parsePkgJson, parsePkgLock, parsePnpmAliasRef, parsePnpmLock, parsePnpmWorkspace, parseYarnLock, parseYarnWorkspace, pnpmMetadata, splitCommandArgs, stripPnpmPeerSuffix, yarnLockToIdentMap } from "./parsers-js.js";
|
|
35
35
|
import { parseBazelActionGraph, parseBazelBuild, parseBazelSkyframe, parseCljDep, parseEdnData, parseKVDep, parseLeinDep, parseLeiningenData, parseLeinMap, parseMavenTree, parseMavenTreeJson, parseMillDependency, parsePom } from "./parsers-jvm.js";
|
|
36
36
|
import { buildObjectForCocoaPod, executeAlpmList, executeApkList, executeDpkgList, executeEqueryList, executePodCommand, executeRpmList, identifyFlow, parseBitbucketPipelinesFile, parseCabalData, parseCloudBuildData, parseCmakeDotFile, parseCmakeLikeFile, parseCocoaDependency, parseColliderLockData, parseComposerJson, parseComposerLock, parseConanData, parseConanLockData, parseContainerFile, parseContainerSpecData, parseCUsageSlice, parseFlakeLock, parseFlakeNix, parseGitHubWorkflowData, parseHelmYamlData, parseMakeDFile, parseMixLockData, parseOpenapiSpecData, parsePodfileLock, parsePodfileTargets, parsePrivadoFile, parsePubLockData, parsePubYamlData, parseSwiftJsonTree, parseSwiftJsonTreeObject, parseSwiftResolved, recurseImageNameLookup } from "./parsers-misc.js";
|
|
37
37
|
import { derivePythonLockMetadataFileName, generatePixiLockFile, parseMojoProject, parsePiplockData, parsePixiLockFile, parsePixiTomlFile, parsePyLockData, parsePyProjectTomlFile, parsePyRequiresDist, parseReqEnvMarkers, parseReqFile, parseSetupPyFile } from "./parsers-python.js";
|
|
38
38
|
import { parseCargoAuditableData, parseCargoData, parseCargoDependencyData, parseCargoManifestDependencyData, parseCargoTomlData } from "./parsers-rust.js";
|
|
39
39
|
import { createUVLock, getPipFrozenTree, getPipTreeForPackages, getPyModules } from "./pythonutils.js";
|
|
40
|
-
export { addEvidenceForDotnet, addLicenseText, adjustLicenseInformation, attachIdentityTools, BLOCKED_HOST_ERROR_CODE, buildObjectForCocoaPod, CARGO_CMD, CDXGEN_SPDX_CREATED_BY, CDXGEN_TEMP_DIR, CDXGEN_VERSION, CLJ_CMD, cdxgenAgent, checksumFile, collectExecutables, collectJarNS, collectMvnDependencies, collectSharedLibs, commandsExecuted, componentSorter, composePomXmlUrl, convertJarNSToPackages, convertOSQueryResults, createBlockedHostError, createDryRunError, createNpmWorkspacePurl, createUVLock, DEBUG_MODE, DOTNET_CMD, DRY_RUN_ERROR_CODE, derivePythonLockMetadataFileName, dirNameStr, encodeForPurl, executeAlpmList, executeApkList, executeAtom, executeDpkgList, executeEqueryList, executePodCommand, executeRpmList, extractJarArchive, extractLicenseCommentFromPomXml, extractPathEnv, extractToolRefs, FETCH_LICENSE, fetchPomXml, fetchPomXmlAsJson, findAppModules, findLicenseId, findLocalMvnArtifact, findPnpmPackagePath, frameworksList, GCC_CMD, GO_CMD, generatePixiLockFile, getAllFiles, getAllFilesWithIgnore, getAtomCommand, getCentralPackageVersions, getCratesMetadata, getDartMetadata, getDefaultBomAuditCategories, getGithubUrlParts, getGoPkgComponent, getGoPkgLicense, getJarClasses, getJavaCommand, getKnownLicense, getLicenses, getMavenCommand, getMillCommand, getMvnMetadata, getNpmMetadata, getNugetMetadata, getOSPackageForFile, getPipFrozenTree, getPipTreeForPackages, getPomPropertiesFromMavenDir, getPropertyGroupTextNodes, getPyMetadata, getPyModules, getPythonCommand, getRecordedActivities, getRepoLicense, getRuntimeInformation, getSwiftPackageMetadata, getTimestamp, getTmpDir, getVersionNumPnpm, guessLicenseId, guessPypiMatchingVersion, hasAnyProjectType, hasDangerousUnicode, identifyFlow, includeMavenTestScope, inferJarGroupFromManifest, isAllowedHttpHost, isBun, isDeno, isDryRun, isDryRunError, isFeatureEnabled, isMac, isNode, isPackageManagerAllowed, isPartialTree, isSecureMode, isSensitiveEnvironmentVariableName, isSpdxLicenseExpression, isValidDriveRoot, isValidIriReference, isWin, JAVA_CMD, LEIN_CMD, locateGenericPackage, MAX_BUFFER, mapConanPkgRefToPurlStringAndNameAndVersion, metadata_cache, multiChecksumFile, NODE_CMD, NPM_CMD, PACKAGE_MANAGER_ALIASES, PREFER_MAVEN_DEPS_TREE, PROJECT_TYPE_ALIASES, PYTHON_CMD, PYTHON_EXCLUDED_COMPONENTS, parseBazelActionGraph, parseBazelBuild, parseBazelSkyframe, parseBdistMetadata, parseBitbucketPipelinesFile, parseBowerJson, parseCabalData, parseCargoAuditableData, parseCargoData, parseCargoDependencyData, parseCargoManifestDependencyData, parseCargoTomlData, parseCljDep, parseCloudBuildData, parseCmakeDotFile, parseCmakeLikeFile, parseCocoaDependency, parseColliderLockData, parseComposerJson, parseComposerLock, parseConanData, parseConanLockData, parseContainerFile, parseContainerSpecData, parseCsPkgData, parseCsPkgLockData, parseCsProjAssetsData, parseCsProjData, parseCUsageSlice, parseDirectoryPackagesProps, parseEdnData, parseFlakeLock, parseFlakeNix, parseGitHubWorkflowData, parseGoListDep, parseGoModData, parseGoModGraph, parseGoModulesTxt, parseGoModWhy, parseGopkgData, parseGosumData, parseGoVersionData, parseHelmYamlData, parseJarManifest, parseKVDep, parseLeinDep, parseLeiningenData, parseLeinMap, parseLicenseEntryOrArrayFromPomXml, parseMakeDFile, parseMavenArgs, parseMavenTree, parseMavenTreeJson, parseMillDependency, parseMinJs, parseMixLockData, parseMojoProject, parseNodeShrinkwrap, parseNupkg, parseNuspecData, parseOpenapiSpecData, parsePackageJsonName, parsePaketLockData, parsePiplockData, parsePixiLockFile, parsePixiTomlFile, parsePkgJson, parsePkgLock, parsePnpmAliasRef, parsePnpmLock, parsePnpmWorkspace, parsePodfileLock, parsePodfileTargets, parsePom, parsePomProperties, parsePomXml, parsePrivadoFile, parsePubLockData, parsePubYamlData, parsePyLockData, parsePyProjectTomlFile, parsePyRequiresDist, parseReqEnvMarkers, parseReqFile, parseSetupPyFile, parseSwiftJsonTree, parseSwiftJsonTreeObject, parseSwiftResolved, parseYarnLock, parseYarnWorkspace, pnpmMetadata, purlFromUrlString, RUBY_CMD, RUSTC_CMD, readEnvironmentVariable, readLicenseText, readZipEntry, recomputeScope, recordActivity, recordDecisionActivity, recordDiscoveryActivity, recordEnvironmentRead, recordObservedActivity, recordPolicyActivity, recordSensitiveFileRead, recordSymlinkResolution, recurseImageNameLookup, remoteHostsAccessed, repoMetadataToGitHubApiUrl, resetActivityContext, resetRecordedActivities, retrieveCdxgenPluginVersion, retrieveCdxgenVersion, SEARCH_MAVEN_ORG, SWIFT_CMD, safeCopyFileSync, safeExistsSync, safeExtractArchive, safeMkdirSync, safeMkdtempSync, safeRmSync, safeSpawnSync, safeUnlinkSync, safeWriteSync, setActivityContext, setDryRunMode, shouldFetchLicense, shouldFetchPackageMetadata, shouldFetchVCS, shouldRunPredictiveBomAudit, splitCommandArgs, stripPnpmPeerSuffix, TABLE_BORDER_STYLE, TIMEOUT_MS, toCamel, toGitHubApiUrl, trimJarGroupSuffix, YARN_CMD, yarnLockToIdentMap, };
|
|
40
|
+
export { addEvidenceForDotnet, addLicenseText, adjustLicenseInformation, attachIdentityTools, BLOCKED_HOST_ERROR_CODE, buildObjectForCocoaPod, CARGO_CMD, CDXGEN_SPDX_CREATED_BY, CDXGEN_TEMP_DIR, CDXGEN_VERSION, CLJ_CMD, cdxgenAgent, checksumFile, collectExecutables, collectJarNS, collectMvnDependencies, collectSharedLibs, commandsExecuted, componentSorter, composePomXmlUrl, convertJarNSToPackages, convertOSQueryResults, createBlockedHostError, createDryRunError, createNpmWorkspacePurl, createUVLock, DEBUG_MODE, DOTNET_CMD, DRY_RUN_ERROR_CODE, derivePythonLockMetadataFileName, dirNameStr, encodeForPurl, executeAlpmList, executeApkList, executeAtom, executeDpkgList, executeEqueryList, executePodCommand, executeRpmList, extractJarArchive, extractLicenseCommentFromPomXml, extractPathEnv, extractToolRefs, FETCH_LICENSE, fetchPomXml, fetchPomXmlAsJson, findAppModules, findLicenseId, findLocalMvnArtifact, findPnpmPackagePath, frameworksList, GCC_CMD, GO_CMD, generatePixiLockFile, getAllFiles, getAllFilesWithIgnore, getAtomCommand, getCentralPackageVersions, getCratesMetadata, getDartMetadata, getDefaultBomAuditCategories, getGithubUrlParts, getGoPkgComponent, getGoPkgLicense, getJarClasses, getJavaCommand, getKnownLicense, getLicenses, getMavenCommand, getMillCommand, getMvnMetadata, getNpmMetadata, getNugetMetadata, getOSPackageForFile, getPipFrozenTree, getPipTreeForPackages, getPomPropertiesFromMavenDir, getPropertyGroupTextNodes, getPyMetadata, getPyModules, getPythonCommand, getRecordedActivities, getRepoLicense, getRuntimeInformation, getSwiftPackageMetadata, getTimestamp, getTmpDir, getVersionNumPnpm, guessLicenseId, guessPypiMatchingVersion, hasAnyProjectType, hasDangerousUnicode, identifyFlow, includeMavenTestScope, inferJarGroupFromManifest, isAllowedHttpHost, isBun, isDeno, isDryRun, isDryRunError, isFeatureEnabled, isMac, isNode, isPackageManagerAllowed, isPartialTree, isSecureMode, isSensitiveEnvironmentVariableName, isSpdxLicenseExpression, isValidDriveRoot, isValidIriReference, isWin, JAVA_CMD, LEIN_CMD, locateGenericPackage, MAX_BUFFER, mapConanPkgRefToPurlStringAndNameAndVersion, metadata_cache, multiChecksumFile, NODE_CMD, NPM_CMD, PACKAGE_MANAGER_ALIASES, PREFER_MAVEN_DEPS_TREE, PROJECT_TYPE_ALIASES, PYTHON_CMD, PYTHON_EXCLUDED_COMPONENTS, parseBazelActionGraph, parseBazelBuild, parseBazelSkyframe, parseBdistMetadata, parseBitbucketPipelinesFile, parseBowerJson, parseCabalData, parseCargoAuditableData, parseCargoData, parseCargoDependencyData, parseCargoManifestDependencyData, parseCargoTomlData, parseCljDep, parseCloudBuildData, parseCmakeDotFile, parseCmakeLikeFile, parseCocoaDependency, parseColliderLockData, parseComposerJson, parseComposerLock, parseConanData, parseConanLockData, parseContainerFile, parseContainerSpecData, parseCsPkgData, parseCsPkgLockData, parseCsProjAssetsData, parseCsProjData, parseCUsageSlice, parseDirectoryPackagesProps, parseEdnData, parseFlakeLock, parseFlakeNix, parseGitHubWorkflowData, parseGoListDep, parseGoModData, parseGoModGraph, parseGoModulesTxt, parseGoModWhy, parseGopkgData, parseGosumData, parseGosumHashes, parseGoVersionData, parseHelmYamlData, parseJarManifest, parseKVDep, parseLeinDep, parseLeiningenData, parseLeinMap, parseLicenseEntryOrArrayFromPomXml, parseMakeDFile, parseMavenArgs, parseMavenTree, parseMavenTreeJson, parseMillDependency, parseMinJs, parseMixLockData, parseMojoProject, parseNodeShrinkwrap, parseNupkg, parseNuspecData, parseOpenapiSpecData, parsePackageJsonName, parsePaketLockData, parsePiplockData, parsePixiLockFile, parsePixiTomlFile, parsePkgJson, parsePkgLock, parsePnpmAliasRef, parsePnpmLock, parsePnpmWorkspace, parsePodfileLock, parsePodfileTargets, parsePom, parsePomProperties, parsePomXml, parsePrivadoFile, parsePubLockData, parsePubYamlData, parsePyLockData, parsePyProjectTomlFile, parsePyRequiresDist, parseReqEnvMarkers, parseReqFile, parseSetupPyFile, parseSwiftJsonTree, parseSwiftJsonTreeObject, parseSwiftResolved, parseYarnLock, parseYarnWorkspace, pnpmMetadata, purlFromUrlString, RUBY_CMD, RUSTC_CMD, readEnvironmentVariable, readLicenseText, readZipEntry, recomputeScope, recordActivity, recordDecisionActivity, recordDiscoveryActivity, recordEnvironmentRead, recordObservedActivity, recordPolicyActivity, recordSensitiveFileRead, recordSymlinkResolution, recurseImageNameLookup, remoteHostsAccessed, repoMetadataToGitHubApiUrl, resetActivityContext, resetRecordedActivities, retrieveCdxgenPluginVersion, retrieveCdxgenVersion, SEARCH_MAVEN_ORG, SWIFT_CMD, safeCopyFileSync, safeExistsSync, safeExtractArchive, safeMkdirSync, safeMkdtempSync, safeRmSync, safeSpawnSync, safeUnlinkSync, safeWriteSync, setActivityContext, setDryRunMode, shouldFetchLicense, shouldFetchPackageMetadata, shouldFetchVCS, shouldRunPredictiveBomAudit, splitCommandArgs, stripPnpmPeerSuffix, TABLE_BORDER_STYLE, TIMEOUT_MS, toCamel, toGitHubApiUrl, trimJarGroupSuffix, YARN_CMD, yarnLockToIdentMap, };
|
|
41
41
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/utils.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,kCAAkC,EAClC,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EAC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,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,kBAAkB,GACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/utils.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,kCAAkC,EAClC,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,OAAO,EACP,UAAU,EACV,cAAc,EACd,aAAa,EACb,OAAO,EACP,MAAM,EACN,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,0BAA0B,EAC1B,cAAc,EACd,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AAU,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,QAAQ,EACR,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,kBAAkB,GACnB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code a project carries inside its own tree under a license of its own: a
|
|
3
|
+
* copied library, an imported test suite. Such a directory holds its own
|
|
4
|
+
* license file, and the license differs from the project's.
|
|
5
|
+
*
|
|
6
|
+
* Layer 3: reads license files under the scan root.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Whether a file name is a license file: `LICENSE`, `LICENCE` or `COPYING`,
|
|
10
|
+
* bare, with a text extension, or with a suffix naming the license
|
|
11
|
+
* (`LICENSE-MIT`).
|
|
12
|
+
*
|
|
13
|
+
* @param {string} name File name
|
|
14
|
+
* @returns {boolean}
|
|
15
|
+
*/
|
|
16
|
+
export declare function isLicenseFileName(name: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Find the directories of a project that carry code under a license other
|
|
19
|
+
* than the project's.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} root Project scan root
|
|
22
|
+
* @param {Object} options CLI options (exclusions)
|
|
23
|
+
* @param {string[]} [excludeDirs] Directories already known to hold
|
|
24
|
+
* dependencies (submodules, fetched sources, build trees), not searched
|
|
25
|
+
* @returns {{components: Object[], dirs: string[]}} A component per vendored
|
|
26
|
+
* directory, and the directories
|
|
27
|
+
*/
|
|
28
|
+
export declare function findVendoredCode(root: string, options?: Object, excludeDirs?: string[]): {
|
|
29
|
+
components: Object[];
|
|
30
|
+
dirs: string[];
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=vendoredCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendoredCode.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/vendoredCode.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2BH;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAH3B,MAG2B,GAFzB,OAAO,CAkBnB;AAkBD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAP1B,MAO0B,EAAE,OAAO,GANnC,MAMwC,EAAE,WAAW,AAL7D,CAEA,EAFQ,MAAM,EAKoD,GAHxD;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAC,CAwElD"}
|