@cdxgen/cdxgen 13.4.0 → 13.6.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 +9 -9
- package/bin/cdxgen-secure.js +15 -0
- package/bin/cdxgen.js +29 -5
- package/bin/evinse.js +8 -0
- package/bin/hbom.js +15 -7
- package/bin/repl.js +29 -0
- package/bin/validate.js +6 -0
- package/data/cbomosdb-queries.json +13 -1
- package/data/component-tags.json +8 -0
- package/data/license-aliases.json +24 -2
- package/data/queries-darwin.json +25 -1
- package/data/queries-win.json +19 -1
- package/data/queries.json +41 -0
- package/data/remediations.json +407 -1
- package/data/rules/ai-bom.yaml +1 -1
- package/data/rules/brotli-decoder.yaml +107 -0
- package/data/rules/cbom-security.yaml +235 -4
- package/data/rules/go-binaries.yaml +46 -0
- package/data/rules/golem-go.yaml +80 -0
- package/data/rules/hbom-compliance.yaml +40 -22
- package/data/rules/hbom-performance.yaml +7 -1
- package/data/rules/host-topology.yaml +1 -1
- package/data/rules/obom-runtime.yaml +31 -2
- package/data/rules/php-runtime.yaml +143 -0
- package/data/rules/vscode-extensions.yaml +75 -0
- package/data/spdx-license-list.json +121 -7
- package/data/spdx-licenses.json +69 -0
- package/data/spdx.schema.json +845 -2
- package/lib/audit/index.js +14 -0
- package/lib/cli/bomAssembly.js +120 -6
- package/lib/cli/cliOptions.js +110 -3
- package/lib/cli/index.js +182 -6
- package/lib/cli/jsBom.js +153 -64
- package/lib/cli/jvmBom.js +363 -66
- package/lib/cli/managedBom.js +853 -87
- package/lib/cli/nativeBom.js +267 -33
- package/lib/core/boundedFile.js +344 -0
- package/lib/core/brotliProbe.js +182 -0
- package/lib/core/env.js +38 -8
- package/lib/core/fs.js +40 -19
- package/lib/core/httpClient.js +172 -46
- package/lib/core/lockPaths.js +38 -0
- package/lib/core/paths.js +24 -1
- package/lib/core/processTree.js +5 -0
- package/lib/core/projectConfig.js +1 -0
- package/lib/core/projectTooling.js +97 -0
- package/lib/core/propertySanitizer.js +72 -0
- package/lib/core/toolRegistry.js +170 -0
- package/lib/ecosystems/cppEvidence.js +263 -106
- package/lib/ecosystems/cppIncludeResolver.js +16 -5
- package/lib/ecosystems/ecosystems.js +25 -10
- package/lib/ecosystems/gemHostProbe.js +301 -0
- package/lib/ecosystems/golem.js +550 -6
- package/lib/ecosystems/gradleutils.js +858 -244
- package/lib/ecosystems/parsers-bazel.js +107 -6
- package/lib/ecosystems/parsers-dotnet.js +117 -18
- package/lib/ecosystems/parsers-go.js +1090 -367
- package/lib/ecosystems/parsers-js.js +505 -22
- package/lib/ecosystems/parsers-jvm.js +259 -17
- package/lib/ecosystems/parsers-misc.js +438 -64
- package/lib/ecosystems/parsers-python.js +100 -12
- package/lib/ecosystems/pythonutils.js +128 -2
- package/lib/ecosystems/rubyutils.js +544 -34
- package/lib/ecosystems/rusi.js +10 -0
- package/lib/ecosystems/scalacliutils.js +4 -1
- package/lib/ecosystems/scalasem.js +798 -151
- package/lib/ecosystems/vendoredCode.js +237 -3
- package/lib/ecosystems/venvProbe.js +360 -0
- package/lib/evinser/evinser.js +472 -61
- package/lib/evinser/swiftsem.js +68 -5
- package/lib/helpers/agenticToolutils.js +413 -93
- package/lib/helpers/vsixutils.js +1574 -315
- package/lib/inventory/agentSkillSpec.js +17 -0
- package/lib/inventory/apkInstalledDb.js +243 -0
- package/lib/inventory/atomUtils.js +110 -0
- package/lib/inventory/auditCategories.js +3 -3
- package/lib/inventory/brotliDecoder.js +142 -0
- package/lib/inventory/buildToolRateLimit.js +1 -1
- package/lib/inventory/cacheDir.js +52 -9
- package/lib/inventory/cbomutils.js +56 -7
- package/lib/inventory/certificates.js +2371 -0
- package/lib/inventory/communityAiConfigParser.js +4 -9
- package/lib/inventory/deps.js +41 -4
- package/lib/inventory/display.js +200 -3
- package/lib/inventory/dosai.js +639 -63
- package/lib/inventory/dotnetRuntime.js +217 -0
- package/lib/inventory/dynamic.js +45 -3
- package/lib/inventory/envcontext.js +475 -18
- package/lib/inventory/evidenceUtils.js +447 -23
- package/lib/inventory/fetchBatch.js +1 -1
- package/lib/inventory/formulationParsers.js +32 -3
- package/lib/inventory/goBuildInfo.js +140 -0
- package/lib/inventory/gtfobins.js +13 -0
- package/lib/inventory/hbom.js +67 -7
- package/lib/inventory/hbomAnalysis.js +16 -0
- package/lib/inventory/hostRuntimeProbe.js +686 -0
- package/lib/inventory/hostTopology.js +21 -0
- package/lib/inventory/jvmLocalRepos.js +9 -2
- package/lib/inventory/jvmToolEnv.js +29 -0
- package/lib/inventory/licenseEnhancer.js +12 -0
- package/lib/inventory/mavenCentralMirror.js +534 -0
- package/lib/inventory/nodeBuildInfo.js +218 -0
- package/lib/inventory/nodeHostProbe.js +202 -0
- package/lib/inventory/osPackagePurl.js +244 -0
- package/lib/inventory/osPackageResolver.js +271 -87
- package/lib/inventory/osinfo.js +79 -31
- package/lib/inventory/osqueryTransform.js +114 -5
- package/lib/inventory/phpBuildInfo.js +438 -0
- package/lib/inventory/phpHostProbe.js +185 -0
- package/lib/inventory/rootfsCerts.js +426 -0
- package/lib/inventory/rubyBuildInfo.js +972 -0
- package/lib/inventory/rubyHostProbe.js +218 -0
- package/lib/inventory/scalaCoords.js +4 -3
- package/lib/inventory/scalaDedupe.js +440 -0
- package/lib/inventory/source.js +256 -5
- package/lib/inventory/spdx.js +144 -0
- package/lib/inventory/traceRunner.js +5 -1
- package/lib/inventory/tracedCrypto.js +129 -0
- package/lib/managers/binary.js +866 -186
- package/lib/managers/docker.js +245 -12
- package/lib/parsers/email.js +277 -0
- package/lib/parsers/largeJson.js +62 -13
- package/lib/parsers/vscodeExtensionId.js +183 -0
- package/lib/server/server.js +198 -2
- package/lib/stages/postgen/annotator.js +17 -1
- package/lib/stages/postgen/introspection/reflect.js +4 -1
- package/lib/stages/postgen/postgen.js +5 -5
- package/lib/stages/postgen/ruleEngine.js +71 -6
- package/lib/stages/postgen/specVersionCompat.js +30 -0
- package/lib/stages/pregen/envAudit.js +1 -0
- package/lib/stages/pregen/pregen.js +231 -62
- package/lib/validator/bomValidator.js +32 -6
- package/lib/validator/generated/runtime.mjs +13 -0
- package/lib/validator/generated/validate-1.6.mjs +27 -8
- package/lib/validator/generated/validate-1.7.mjs +32 -13
- package/lib/validator/generated/validate-2.0.mjs +31 -12
- package/lib/validator/index.js +1 -1
- package/package.json +19 -18
- package/types/bin/cdxgen-secure.d.ts +3 -0
- package/types/bin/cdxgen-secure.d.ts.map +1 -0
- package/types/bin/repl.d.ts.map +1 -1
- package/types/lib/audit/index.d.ts.map +1 -1
- package/types/lib/cli/bomAssembly.d.ts +22 -3
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +43 -0
- 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 +1 -17
- package/types/lib/cli/jsBom.d.ts.map +1 -1
- package/types/lib/cli/jvmBom.d.ts +20 -0
- package/types/lib/cli/jvmBom.d.ts.map +1 -1
- package/types/lib/cli/managedBom.d.ts.map +1 -1
- package/types/lib/cli/nativeBom.d.ts.map +1 -1
- package/types/lib/core/boundedFile.d.ts +70 -0
- package/types/lib/core/boundedFile.d.ts.map +1 -0
- package/types/lib/core/brotliProbe.d.ts +37 -0
- package/types/lib/core/brotliProbe.d.ts.map +1 -0
- package/types/lib/core/env.d.ts +22 -2
- package/types/lib/core/env.d.ts.map +1 -1
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/httpClient.d.ts +24 -0
- package/types/lib/core/httpClient.d.ts.map +1 -1
- package/types/lib/core/lockPaths.d.ts +19 -0
- package/types/lib/core/lockPaths.d.ts.map +1 -0
- package/types/lib/core/processTree.d.ts +2 -0
- package/types/lib/core/processTree.d.ts.map +1 -1
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/core/projectTooling.d.ts +41 -0
- package/types/lib/core/projectTooling.d.ts.map +1 -0
- package/types/lib/core/propertySanitizer.d.ts +26 -0
- package/types/lib/core/propertySanitizer.d.ts.map +1 -1
- package/types/lib/core/toolRegistry.d.ts +36 -0
- package/types/lib/core/toolRegistry.d.ts.map +1 -0
- package/types/lib/ecosystems/cppEvidence.d.ts +40 -13
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/cppIncludeResolver.d.ts +2 -1
- package/types/lib/ecosystems/cppIncludeResolver.d.ts.map +1 -1
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
- package/types/lib/ecosystems/gemHostProbe.d.ts +28 -0
- package/types/lib/ecosystems/gemHostProbe.d.ts.map +1 -0
- package/types/lib/ecosystems/golem.d.ts +81 -1
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +57 -21
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-bazel.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-dotnet.d.ts +40 -4
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-go.d.ts +85 -13
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-js.d.ts +17 -20
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-jvm.d.ts +28 -2
- package/types/lib/ecosystems/parsers-jvm.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +37 -58
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts +14 -3
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +19 -1
- package/types/lib/ecosystems/pythonutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts +144 -12
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/ecosystems/scalacliutils.d.ts.map +1 -1
- package/types/lib/ecosystems/scalasem.d.ts.map +1 -1
- package/types/lib/ecosystems/vendoredCode.d.ts +26 -0
- package/types/lib/ecosystems/vendoredCode.d.ts.map +1 -1
- package/types/lib/ecosystems/venvProbe.d.ts +40 -0
- package/types/lib/ecosystems/venvProbe.d.ts.map +1 -0
- package/types/lib/evinser/evinser.d.ts +88 -8
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +10 -0
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/inventory/agentSkillSpec.d.ts +13 -0
- package/types/lib/inventory/agentSkillSpec.d.ts.map +1 -0
- package/types/lib/inventory/apkInstalledDb.d.ts +42 -0
- package/types/lib/inventory/apkInstalledDb.d.ts.map +1 -0
- package/types/lib/inventory/atomUtils.d.ts +33 -0
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/brotliDecoder.d.ts +58 -0
- package/types/lib/inventory/brotliDecoder.d.ts.map +1 -0
- package/types/lib/inventory/cacheDir.d.ts +12 -4
- package/types/lib/inventory/cacheDir.d.ts.map +1 -1
- package/types/lib/inventory/cbomutils.d.ts +17 -0
- package/types/lib/inventory/cbomutils.d.ts.map +1 -1
- package/types/lib/inventory/certificates.d.ts +205 -0
- package/types/lib/inventory/certificates.d.ts.map +1 -0
- package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/deps.d.ts +2 -1
- package/types/lib/inventory/deps.d.ts.map +1 -1
- package/types/lib/inventory/display.d.ts +18 -0
- package/types/lib/inventory/display.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +162 -7
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dotnetRuntime.d.ts +44 -0
- package/types/lib/inventory/dotnetRuntime.d.ts.map +1 -0
- package/types/lib/inventory/dynamic.d.ts +6 -1
- package/types/lib/inventory/dynamic.d.ts.map +1 -1
- package/types/lib/inventory/envcontext.d.ts +92 -8
- package/types/lib/inventory/envcontext.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts +29 -10
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/formulationParsers.d.ts.map +1 -1
- package/types/lib/inventory/goBuildInfo.d.ts +10 -0
- package/types/lib/inventory/goBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/gtfobins.d.ts.map +1 -1
- package/types/lib/inventory/hbom.d.ts.map +1 -1
- package/types/lib/inventory/hbomAnalysis.d.ts +10 -0
- package/types/lib/inventory/hbomAnalysis.d.ts.map +1 -1
- package/types/lib/inventory/hostRuntimeProbe.d.ts +44 -0
- package/types/lib/inventory/hostRuntimeProbe.d.ts.map +1 -0
- package/types/lib/inventory/hostTopology.d.ts.map +1 -1
- package/types/lib/inventory/jvmToolEnv.d.ts +12 -0
- package/types/lib/inventory/jvmToolEnv.d.ts.map +1 -1
- package/types/lib/inventory/licenseEnhancer.d.ts.map +1 -1
- package/types/lib/inventory/mavenCentralMirror.d.ts +170 -0
- package/types/lib/inventory/mavenCentralMirror.d.ts.map +1 -0
- package/types/lib/inventory/nodeBuildInfo.d.ts +95 -0
- package/types/lib/inventory/nodeBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/nodeHostProbe.d.ts +15 -0
- package/types/lib/inventory/nodeHostProbe.d.ts.map +1 -0
- package/types/lib/inventory/osPackagePurl.d.ts +99 -0
- package/types/lib/inventory/osPackagePurl.d.ts.map +1 -0
- package/types/lib/inventory/osPackageResolver.d.ts +44 -2
- package/types/lib/inventory/osPackageResolver.d.ts.map +1 -1
- package/types/lib/inventory/osinfo.d.ts +31 -6
- package/types/lib/inventory/osinfo.d.ts.map +1 -1
- package/types/lib/inventory/osqueryTransform.d.ts +51 -0
- package/types/lib/inventory/osqueryTransform.d.ts.map +1 -1
- package/types/lib/inventory/phpBuildInfo.d.ts +142 -0
- package/types/lib/inventory/phpBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/phpHostProbe.d.ts +35 -0
- package/types/lib/inventory/phpHostProbe.d.ts.map +1 -0
- package/types/lib/inventory/rootfsCerts.d.ts +27 -0
- package/types/lib/inventory/rootfsCerts.d.ts.map +1 -0
- package/types/lib/inventory/rubyBuildInfo.d.ts +271 -0
- package/types/lib/inventory/rubyBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/rubyHostProbe.d.ts +47 -0
- package/types/lib/inventory/rubyHostProbe.d.ts.map +1 -0
- package/types/lib/inventory/source.d.ts +38 -0
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/inventory/spdx.d.ts +15 -0
- package/types/lib/inventory/spdx.d.ts.map +1 -1
- package/types/lib/inventory/traceRunner.d.ts +4 -1
- package/types/lib/inventory/traceRunner.d.ts.map +1 -1
- package/types/lib/inventory/tracedCrypto.d.ts +22 -0
- package/types/lib/inventory/tracedCrypto.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +10 -0
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +24 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/parsers/email.d.ts +19 -0
- package/types/lib/parsers/email.d.ts.map +1 -0
- package/types/lib/parsers/largeJson.d.ts +17 -3
- package/types/lib/parsers/largeJson.d.ts.map +1 -1
- package/types/lib/server/server.d.ts +8 -0
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/annotator.d.ts.map +1 -1
- package/types/lib/stages/postgen/introspection/reflect.d.ts.map +1 -1
- package/types/lib/stages/postgen/ruleEngine.d.ts +7 -4
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -1
- package/types/lib/stages/postgen/specVersionCompat.d.ts.map +1 -1
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -1
- package/types/lib/stages/pregen/pregen.d.ts +26 -9
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dosai.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dosai.js"],"names":[],"mappings":"AA+
|
|
1
|
+
{"version":3,"file":"dosai.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dosai.js"],"names":[],"mappings":"AA+KA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAL1C,MAAM,GAAC,MAKmC,GAJxC;IAAC,OAAO,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAA;CAAC,GAAC,SAAS,CAmB9E;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,AAHrD,CACA,EADQ;IAAC,OAAO,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAA;CAGV,GAF3C,MAAM,CAUlB;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,AAHrD,CACA,EADQ;IAAC,OAAO,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAA;CAGV,GAF3C,MAAM,CAIlB;AAwMD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAJpC,MAAM,EAI8B,EAAE,OAAO,EAH7C,MAG6C,GAF3C;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAC,CAyFtE;AAoDD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAHnC,MAGmC,GAFjC,OAAO,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GA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AC,YAAY,EAJ1C,MAI0C,EAAE,UAAU,AAH9D,CACA,OAEmE,SA6FrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,YAAY,EAJ/C,MAI+C,EAAE,WAAW,AAHpE,CACA,EADQ,MAGiE,GAF/D,MAAM,CAyKlB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EALH,MAKG,EACZ,WAAW,AALV,CACA,EADQ,MAKO,GAJL,MAAM,CA+GlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,AAHjD,CACA,EADQ,MAG8C,GAF5C,MAAM,EAAE,CAmDpB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the runtime pack a shared framework's deps.json was built from.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} depsJson parsed <framework>.deps.json
|
|
5
|
+
* @param {string} framework framework directory name
|
|
6
|
+
* @returns {{pack: string, version: string, rid: string}|undefined}
|
|
7
|
+
*/
|
|
8
|
+
export declare function runtimePackFromDepsJson(depsJson: Object, framework: string): {
|
|
9
|
+
pack: string;
|
|
10
|
+
version: string;
|
|
11
|
+
rid: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The CPE NVD uses for a shared framework version: `.net` from 5.0 on,
|
|
15
|
+
* `.net_core` before it, and `asp.net_core` for ASP.NET Core.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} framework framework directory name
|
|
18
|
+
* @param {string} version runtime version
|
|
19
|
+
* @returns {string|undefined} CPE 2.3 string
|
|
20
|
+
*/
|
|
21
|
+
export declare function dotnetCpe(framework: string, version: string): string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Create the platform component for one installed shared framework.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} framework framework directory name
|
|
26
|
+
* @param {{pack: string, version: string, rid: string}} runtime runtime pack
|
|
27
|
+
* @param {string} location root-relative path of the deps.json
|
|
28
|
+
* @returns {Object|undefined} component, or undefined when no purl can be built
|
|
29
|
+
*/
|
|
30
|
+
export declare function createDotnetRuntimeComponent(framework: string, runtime: {
|
|
31
|
+
pack: string;
|
|
32
|
+
version: string;
|
|
33
|
+
rid: string;
|
|
34
|
+
}, location: string): Object | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Find the .NET shared frameworks installed under a root that no package
|
|
37
|
+
* manager owns, and return one platform component per runtime pack.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} rootDir extracted root file system
|
|
40
|
+
* @param {string[]} [ownedPaths] root-relative paths a package database owns
|
|
41
|
+
* @returns {Object[]} platform components
|
|
42
|
+
*/
|
|
43
|
+
export declare function collectDotnetRuntimes(rootDir: string, ownedPaths?: string[]): Object[];
|
|
44
|
+
//# sourceMappingURL=dotnetRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotnetRuntime.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dotnetRuntime.js"],"names":[],"mappings":"AAgEA;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAJrC,MAIqC,EAAE,SAAS,EAHhD,MAGgD,GAF9C;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAuBlE;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAJxB,MAIwB,EAAE,OAAO,EAHjC,MAGiC,GAF/B,MAAM,GAAC,SAAS,CAgB5B;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAL3C,MAK2C,EAAE,OAAO,EAJpD;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAIS,EAAE,QAAQ,EAH9D,MAG8D,GAF5D,MAAM,GAAC,SAAS,CA4B5B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAJlC,MAIkC,EAAE,UAAU,AAHtD,CACA,EADQ,MAAM,EAG6C,GAFjD,MAAM,EAAE,CAwDpB"}
|
|
@@ -23,13 +23,18 @@ export declare function librarySubpath(libPath: string): string | null;
|
|
|
23
23
|
* Services are detected from HTTP request URLs collected during tracing and
|
|
24
24
|
* follow the CycloneDX service schema with endpoints.
|
|
25
25
|
*
|
|
26
|
+
* The certificate chains servers presented in TLS ≤ 1.2 handshakes become the
|
|
27
|
+
* shared certificate model, with `provides` edges from the TLS protocol
|
|
28
|
+
* components.
|
|
29
|
+
*
|
|
26
30
|
* @param {string} commandStr - Shell command to execute and trace (e.g. "node --version")
|
|
27
31
|
* @param {string} workingDir - Working directory for the traced process
|
|
28
32
|
* @param {Object} [traceOptions] - Additional sandbox options forwarded to executeAndTrace
|
|
29
|
-
* @returns {Promise<{components: Array<Object>, services: Array<Object>}>} Components and
|
|
33
|
+
* @returns {Promise<{components: Array<Object>, services: Array<Object>, dependencies: Array<Object>}>} Components, services and dependencies
|
|
30
34
|
*/
|
|
31
35
|
export declare function buildDynamicComponents(commandStr: string, workingDir: string, traceOptions?: Object): Promise<{
|
|
32
36
|
components: Array<Object>;
|
|
33
37
|
services: Array<Object>;
|
|
38
|
+
dependencies: Array<Object>;
|
|
34
39
|
}>;
|
|
35
40
|
//# sourceMappingURL=dynamic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dynamic.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dynamic.d.ts","sourceRoot":"","sources":["../../../lib/inventory/dynamic.js"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAH3B,MAG2B,GAFzB,MAAM,GAAC,IAAI,CAevB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAND,MAMC,EACV,UAAU,EAND,MAMC,EACV,YAAY,AANX,CACA,EADQ,MAMQ,GALN,OAAO,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAC,CAAC,CAmNtG"}
|
|
@@ -177,16 +177,86 @@ export declare function collectSwiftInfo(dir: string): {
|
|
|
177
177
|
version: string;
|
|
178
178
|
} | undefined;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Whether a Ruby executable is one the operating system or a package manager
|
|
181
|
+
* that patches it owns. Distros backport fixes under the old upstream version,
|
|
182
|
+
* so its version must not be matched against upstream advisories by CPE.
|
|
183
|
+
*
|
|
184
|
+
* @param {string|undefined} realPath real path of the executable
|
|
185
|
+
* @returns {boolean}
|
|
186
|
+
*/
|
|
187
|
+
export declare function isPackagedRubyPath(realPath: string | undefined): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Collect the Ruby on the PATH.
|
|
190
|
+
*
|
|
191
|
+
* `ruby --version` prints the interpreter's description, such as
|
|
192
|
+
* `ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [x86_64-linux]`, which is kept
|
|
193
|
+
* as the component description. The identity is `pkg:generic/ruby@3.3.6`
|
|
194
|
+
* (or jruby, truffleruby), with the CPE of the release unless a package
|
|
195
|
+
* manager owns the executable: a distro backports fixes under the old upstream
|
|
196
|
+
* version.
|
|
181
197
|
*
|
|
182
198
|
* @param {string} dir Working directory
|
|
183
199
|
* @returns Object containing Ruby details
|
|
184
200
|
*/
|
|
185
|
-
export declare function collectRubyInfo(dir: string):
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
201
|
+
export declare function collectRubyInfo(dir: string): Object | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Whether the Ruby collectRubyInfo found is the MRI release a project needs.
|
|
204
|
+
*
|
|
205
|
+
* @param {Object|undefined} info result of collectRubyInfo
|
|
206
|
+
* @param {string} version wanted MRI version
|
|
207
|
+
* @returns {boolean}
|
|
208
|
+
*/
|
|
209
|
+
export declare function isRubyVersionActive(info: Object | undefined, version: string): boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Collect the RubyGems version. `gem --version` prints the bare version.
|
|
212
|
+
*
|
|
213
|
+
* @param {string} dir Working directory
|
|
214
|
+
* @returns {Object|undefined} the RubyGems component
|
|
215
|
+
*/
|
|
216
|
+
export declare function collectRubyGemsInfo(dir: string): Object | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* Collect the Bundler version. `bundle --version` prints `Bundler version
|
|
219
|
+
* 2.5.22`, or the bare version from Bundler 2.6 on.
|
|
220
|
+
*
|
|
221
|
+
* @param {string} dir Working directory
|
|
222
|
+
* @returns {Object|undefined} the Bundler component
|
|
223
|
+
*/
|
|
224
|
+
export declare function collectBundlerInfo(dir: string): Object | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Collect the PHP version of the PHP found on the PATH.
|
|
227
|
+
*
|
|
228
|
+
* `-n` stops PHP loading any php.ini, so a PHPRC or an auto_prepend_file cannot
|
|
229
|
+
* run code, and `-v` is used rather than `-r 'echo PHP_VERSION;'` because the
|
|
230
|
+
* shell on Windows does not quote arguments. The first line is
|
|
231
|
+
* `PHP 8.5.11 (cli) (built: Sep 22 2026 13:32:06) (NTS)`.
|
|
232
|
+
*
|
|
233
|
+
* The identity is `pkg:generic/php`: a probe of the PATH cannot tell which
|
|
234
|
+
* package manager, if any, installed this PHP. A banner with a distro revision,
|
|
235
|
+
* such as Ubuntu 22.04's `PHP 8.1.2-1ubuntu2.14`, is recorded as reported but
|
|
236
|
+
* without a CPE: the distro backports fixes under the old upstream number.
|
|
237
|
+
*
|
|
238
|
+
* @param {string} dir Working directory
|
|
239
|
+
* @returns Object containing the PHP details
|
|
240
|
+
*/
|
|
241
|
+
export declare function collectPhpInfo(dir: string): Object | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* Collect the Composer version.
|
|
244
|
+
*
|
|
245
|
+
* `--no-plugins` and `--no-scripts` keep the plugins and scripts of the
|
|
246
|
+
* project in the working directory from running, which `composer --version`
|
|
247
|
+
* would otherwise let a plugin do. It needs no network. The banner is
|
|
248
|
+
* `Composer version 2.10.3 2026-08-27 13:34:23`, but an older Composer on a
|
|
249
|
+
* newer PHP prints deprecation notices above it, so the first line that starts
|
|
250
|
+
* with it is read; the line after it names the PHP Composer runs on, with its
|
|
251
|
+
* path, and is never read. The banner must start its line: an indented echo of
|
|
252
|
+
* the project's composer.json in an error block does not count. Only a stable
|
|
253
|
+
* release is recorded: a pre-release or a snapshot has no version a CPE can
|
|
254
|
+
* name.
|
|
255
|
+
*
|
|
256
|
+
* @param {string} dir Working directory
|
|
257
|
+
* @returns Object containing the Composer details
|
|
258
|
+
*/
|
|
259
|
+
export declare function collectComposerInfo(dir: string): Object | undefined;
|
|
190
260
|
/**
|
|
191
261
|
* Method to run a swift command
|
|
192
262
|
*
|
|
@@ -199,12 +269,15 @@ export declare function runSwiftCommand(dir: string, args: any[]): string | unde
|
|
|
199
269
|
* Collect toolchain information components for the current environment.
|
|
200
270
|
*
|
|
201
271
|
* Probes the working directory for java, dotnet, python, node, gcc, rust, go,
|
|
202
|
-
* and
|
|
272
|
+
* ruby, php and composer toolchains and returns one component per detected
|
|
273
|
+
* tool.
|
|
203
274
|
*
|
|
204
275
|
* @param {string} dir Working directory to inspect
|
|
276
|
+
* @param {Object} [options] CLI options, which decide whether the project's
|
|
277
|
+
* own toolchain files may choose the tools that run
|
|
205
278
|
* @returns {Object[]} Array of toolchain component objects; empty when nothing is detected
|
|
206
279
|
*/
|
|
207
|
-
export declare function collectEnvInfo(dir: string): Object[];
|
|
280
|
+
export declare function collectEnvInfo(dir: string, options?: Object): Object[];
|
|
208
281
|
/**
|
|
209
282
|
* Method to check if sdkman is available.
|
|
210
283
|
*/
|
|
@@ -343,6 +416,17 @@ export declare function gitAiNotes(dir: string, options?: {
|
|
|
343
416
|
* @returns {Array<Object>} Array of { hash, message } revert/hotfix commits
|
|
344
417
|
*/
|
|
345
418
|
export declare function gitRevertsAndHotfixes(dir: string, maxCount?: number): Array<Object>;
|
|
419
|
+
/**
|
|
420
|
+
* Whether the running Node.js links a bundled dependency as a shared library,
|
|
421
|
+
* from the `node_shared_<name>` configure variables it reports.
|
|
422
|
+
*
|
|
423
|
+
* @param {string} name key of process.versions
|
|
424
|
+
* @param {Object} [variables] configure variables, process.config.variables
|
|
425
|
+
* by default
|
|
426
|
+
* @returns {string|undefined} `shared`, `bundled`, or undefined when the build
|
|
427
|
+
* does not say
|
|
428
|
+
*/
|
|
429
|
+
export declare function nodeComponentLinkage(name: string, variables?: Object): string | undefined;
|
|
346
430
|
/**
|
|
347
431
|
* Get information about the runtime.
|
|
348
432
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envcontext.d.ts","sourceRoot":"","sources":["../../../lib/inventory/envcontext.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"envcontext.d.ts","sourceRoot":"","sources":["../../../lib/inventory/envcontext.js"],"names":[],"mappings":"AAkEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAFd,MAE4D,CAAC;AAwDvE;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,wBAkBpC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAL3B,MAK2B,EAAE,GAAG,EAJhC,MAIgC,sBAE1C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAJrB,MAIqB,sBAE/B;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,GAAG,EAJ9B,MAI8B,sBAExC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAJtB,MAIsB,MAkBhC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS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ACH,wBAAgB,qBAAqB,IAFxB,MAAM,CAsHlB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,WAUpC;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,IAF9B,MAAM,GAAC,SAAS,CAc5B"}
|
|
@@ -76,14 +76,33 @@ export declare function addEvidenceForDotnet(pkgList: Object[], slicesFile: stri
|
|
|
76
76
|
* @param {Array} results Query Results
|
|
77
77
|
* @param {Boolean} enhance Optionally enhance results by invoking additional package manager commands
|
|
78
78
|
*/
|
|
79
|
-
export declare function convertOSQueryResults(queryCategory: string, queryObj: Object, results: any[], enhance?: boolean, osPackageListers?: undefined):
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
export declare function convertOSQueryResults(queryCategory: string, queryObj: Object, results: any[], enhance?: boolean, osPackageListers?: undefined): any[];
|
|
80
|
+
/**
|
|
81
|
+
* Convert the packages of an apk installed database into components.
|
|
82
|
+
*
|
|
83
|
+
* The packages are named as the container scan names an Alpine, Wolfi or
|
|
84
|
+
* Chainguard package, and grouped with the other OS package categories under
|
|
85
|
+
* `cdx:osquery:category` = `apk_packages`. Beyond what an osquery package row
|
|
86
|
+
* gives, an apk record knows its licence and home page, which become
|
|
87
|
+
* `licenses` and a `website` external reference.
|
|
88
|
+
*
|
|
89
|
+
* @param {Object[]} packages Packages from readApkInstalledDb()
|
|
90
|
+
* @returns {Object[]} Components
|
|
91
|
+
*/
|
|
92
|
+
export declare function convertApkPackages(packages: Object[]): Object[];
|
|
93
|
+
/**
|
|
94
|
+
* Convert the rows of the `ai_agent_skills` query into components.
|
|
95
|
+
*
|
|
96
|
+
* A skill installed on the host is what the `ai-skill` project scan finds in a
|
|
97
|
+
* repository, so it is a `file` component with the same `cdx:file:kind` and
|
|
98
|
+
* `cdx:skill:*` properties, and no purl: a skill has no package identity. Its
|
|
99
|
+
* bom-ref is the SHA-256 of its SKILL.md rather than the path, which is under a
|
|
100
|
+
* home directory, and where it was found is an occurrence. The same skill
|
|
101
|
+
* found under several roots, such as a plugin marketplace checkout and the
|
|
102
|
+
* plugin cache, is one component with one occurrence for each.
|
|
103
|
+
*
|
|
104
|
+
* @param {Object[]} results Rows of `ai_agent_skills` joined with `hash`
|
|
105
|
+
* @returns {Object[]} Components
|
|
106
|
+
*/
|
|
107
|
+
export declare function convertAgentSkillRows(results: Object[]): Object[];
|
|
89
108
|
//# sourceMappingURL=evidenceUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidenceUtils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/evidenceUtils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evidenceUtils.d.ts","sourceRoot":"","sources":["../../../lib/inventory/evidenceUtils.js"],"names":[],"mappings":"AA6CA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAJtC,MAIsC,EAAE,OAAO,AAHvD,CACA,EADQ,MAGoD,GAFlD,MAAM,GAAC,SAAS,CAgB5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,+BAA+B,CAAC,QAAQ,EAJ7C,MAI6C,EAAE,OAAO,AAH9D,CACA,EADQ,MAG2D,GAFzD,MAAM,GAAC,SAAS,CA8B5B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAHxC,MAGwC,GAFtC,MAAM,CAalB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAJ1B,MAAM,EAAE,GAAC,MAIiB,EAAE,SAAS,UAAA,GAFnC,MAAM,EAAE,CAmDpB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAJjC,MAAM,GAAC,MAAM,EAIoB,EAAE,QAAQ,EAH3C,MAAM,EAGqC,GAFzC,MAAM,GAAC,MAAM,EAAE,CAwB3B;AAsCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAPjC,MAAM,EAO2B,EAAE,UAAU,EAN7C,MAM6C,EAAE,OAAO,AAL9D,CAGA,EAFA;IAAyB,OAAO,AAAhC,CAEA,EAFQ,MAAM,CAEd;CAEmE,GAFzD,MAAM,EAAE,CAsQpB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EANJ,MAMI,EACb,QAAQ,EANC,MAMD,EACR,OAAO,OAAA,EACP,OAAO,UAAQ,EACf,gBAAgB,YAAY,SAsO7B;AAgJD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAHhC,MAAM,EAG0B,GAF9B,MAAM,EAAE,CAqCpB;AAgCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAHlC,MAAM,EAG4B,GAFhC,MAAM,EAAE,CAgEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formulationParsers.d.ts","sourceRoot":"","sources":["../../../lib/inventory/formulationParsers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formulationParsers.d.ts","sourceRoot":"","sources":["../../../lib/inventory/formulationParsers.js"],"names":[],"mappings":"AA4GA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAF1B;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,WAAU;CAEvB,QAkBpC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAFb,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,WAAU;CAAE,CAAC,CAItE;AA0DD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAZnC,MAYmC,EAAE,OAAO,EAX5C,MAW4C,EAAE,OAAO,AAT7D,CAIA,EAJQ,MAS0D,GALxD;IAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAwO7D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const PRE_1_18_VERSION = "unknown-pre-1.18";
|
|
2
|
+
/**
|
|
3
|
+
* Read the Go toolchain version from an executable's buildinfo header.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} filePath absolute path to a possible Go binary
|
|
6
|
+
* @returns {string|undefined} `go1.x.y`, `unknown-pre-1.18` for old layouts,
|
|
7
|
+
* or undefined when the file carries no Go buildinfo
|
|
8
|
+
*/
|
|
9
|
+
export declare function readGoBuildVersion(filePath: string): string | undefined;
|
|
10
|
+
//# sourceMappingURL=goBuildInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goBuildInfo.d.ts","sourceRoot":"","sources":["../../../lib/inventory/goBuildInfo.js"],"names":[],"mappings":"AAuBA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAyDnD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAJhC,MAIgC,GAH9B,MAAM,GAAC,SAAS,CAuD5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfobins.d.ts","sourceRoot":"","sources":["../../../lib/inventory/gtfobins.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gtfobins.d.ts","sourceRoot":"","sources":["../../../lib/inventory/gtfobins.js"],"names":[],"mappings":"AAiKA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAL7B,MAK6B,EAAE,UAAU,AAJjD,CACA,EADQ,MAIyC,GAHvC,MAAM,GAAC,SAAS,CAyC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,UAAU,AAHtD,CACA,EADQ,MAG8C,GAF5C,MAAM,EAAE,CAmCpB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,aAAa,EAJlD,MAIkD,EAAE,GAAG,EAHvD,MAGuD,GAFrD,KAAK,CAAC,MAAM,CAAC,CA8FzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hbom.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hbom.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbom.js"],"names":[],"mappings":"AAiWA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAHpC,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAAC,IAGU,GAFlC,OAAO,CAMnB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAHxC,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAAC,IAGc,GAFtC,OAAO,CAUnB;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,YAAY,EAF/C,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAAC,IAEqB,QAgBzD;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,WAAW,EAF/C,MAAM,GAAC,MAAM,GAAC,SAAS,GAAC,IAEuB,QAOzD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,AAH7C,CACA,EADQ,MAG0C,EAAE,WAAW,AAF/D,CACF,EADU,MAEgE,QAmB1E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,AAHzC,CACA,EADQ,MAGsC,GAFpC,MAAM,CA8BlB;AA8GD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAHtC,MAGsC,GAFpC,MAAM,CA8HlB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,AAH7C,CACA,EADQ,MAG0C,GAFxC,OAAO,CAAC,MAAM,CAAC,CAiC3B"}
|
|
@@ -19,6 +19,16 @@ export declare function getHbomCommandDiagnosticSummary(bomJson: Object): Object
|
|
|
19
19
|
* @returns {boolean} `true` when the BOM looks like an HBOM
|
|
20
20
|
*/
|
|
21
21
|
export declare function isHbomLikeBom(bomJson: Object): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Explain how the permission-denied enrichments of an HBOM can be recovered.
|
|
24
|
+
*
|
|
25
|
+
* Windows never uses sudo: the elevated-only batch needs an already-elevated
|
|
26
|
+
* session, and a network logon is denied every WMI query.
|
|
27
|
+
*
|
|
28
|
+
* @param {string|undefined} platform `cdx:hbom:platform` of the HBOM
|
|
29
|
+
* @returns {string} Guidance for the platform; the Linux wording for any other platform
|
|
30
|
+
*/
|
|
31
|
+
export declare function getHbomPrivilegeGuidance(platform: string | undefined): string;
|
|
22
32
|
/**
|
|
23
33
|
* Return a component's `cdx:hbom:hardwareClass` property value.
|
|
24
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hbomAnalysis.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hbomAnalysis.js"],"names":[],"mappings":"AAoDA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAHtC,MAGsC,GAFpC,MAAM,EAAE,CAMpB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAH5C,MAG4C,GAF1C,MAAM,CAuElB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAH1B,MAG0B,GAFxB,OAAO,CA6BnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAHnC,MAGmC,GAFjC,MAAM,GAAC,SAAS,CAI5B;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,AAHlD,CACA,EADQ,MAAM,EAGyC,GAF7C;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,EAAE,CAkBpD;AAED;;;;;GAKG;AACH,w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|
+
export declare function listDirectory(directory: any): any;
|
|
2
|
+
export declare function isDirectory(path: any): any;
|
|
3
|
+
/**
|
|
4
|
+
* Look for a runtime no package manager owns, in the directories a spec names.
|
|
5
|
+
* Components come back only for the files nothing owns: a `file` component for
|
|
6
|
+
* each runtime binary or library the spec could read a build from, the
|
|
7
|
+
* components the spec's inventory builds from them, and the edges between them.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} options probe options, as probeHostPhp documents them
|
|
10
|
+
* @param {Object} spec the runtime: `label`, `ecosystem`, `capability`,
|
|
11
|
+
* `remediationId` (a remediation catalog id, spelled out by the caller),
|
|
12
|
+
* `maxProbes`, `directories(context)`, `classify(name, platform)`,
|
|
13
|
+
* `readBuild(context, candidate)`, `createInventory()`,
|
|
14
|
+
* `attach(inventory, component, build, candidate)`, `finish(inventory)`,
|
|
15
|
+
* optional `chocolateyPackages` and `chocolateyDirectories(context)` (where
|
|
16
|
+
* those packages unpack outside Chocolatey's folder), and `hooks` carrying
|
|
17
|
+
* the caller's
|
|
18
|
+
* `isDryRun`, `readEnvironmentVariable`, `recordActivity` and
|
|
19
|
+
* `recordDegradation`
|
|
20
|
+
* @returns {{components: Object[], dependencies: Object[]}}
|
|
21
|
+
*/
|
|
22
|
+
export declare function probeHostRuntime(options: Object, spec: Object): {
|
|
23
|
+
components: Object[];
|
|
24
|
+
dependencies: Object[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Ask the package databases of a POSIX host which package owns each path.
|
|
28
|
+
* The paths are named as the host names them (`/usr/lib/ruby/...`). A
|
|
29
|
+
* database that exists but cannot be read is reported, so the caller can tell
|
|
30
|
+
* "no owner" from "unknown".
|
|
31
|
+
*
|
|
32
|
+
* @param {Object} options probe options, as probeHostRuntime takes them
|
|
33
|
+
* @param {string[]} paths logical paths to look up
|
|
34
|
+
* @returns {{owners: Map<string, {database: string, packageName: string}>,
|
|
35
|
+
* unreadable: string[]}}
|
|
36
|
+
*/
|
|
37
|
+
export declare function findHostPathOwners(options: Object, paths: string[]): {
|
|
38
|
+
owners: Map<string, {
|
|
39
|
+
database: string;
|
|
40
|
+
packageName: string;
|
|
41
|
+
}>;
|
|
42
|
+
unreadable: string[];
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=hostRuntimeProbe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostRuntimeProbe.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hostRuntimeProbe.js"],"names":[],"mappings":"AAmDA,wBAAgB,aAAa,CAAC,SAAS,KAAA,OAMtC;AAED,wBAAgB,WAAW,CAAC,IAAI,KAAA,OAM/B;AAgeD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAb7B,MAa6B,EAAE,IAAI,EAZnC,MAYmC,GAFjC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CA2D1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAL/B,MAK+B,EAAE,KAAK,EAJtC,MAAM,EAIgC,GAHpC;IAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACtE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAC,CAqDzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostTopology.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hostTopology.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hostTopology.d.ts","sourceRoot":"","sources":["../../../lib/inventory/hostTopology.js"],"names":[],"mappings":"AA4nBA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAHhC,MAGgC,GAF9B,OAAO,CAUnB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAH/B,MAG+B,GAF7B;IAAC,4BAA4B,EAAE,MAAM,CAAC;IAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,GAAC,SAAS,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAC,CA0BnM;AAYD;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAHvC,MAGuC,GAFrC,MAAM,CAiFlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAJpC,MAIoC,EAAE,QAAQ,EAH9C;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAGG,GAF5C,MAAM,CA8DlB"}
|
|
@@ -126,6 +126,18 @@ export declare function determineRequiredJavaVersion(toolPins: Array<{
|
|
|
126
126
|
* @returns {string|undefined} Minimum Gradle version, when capped.
|
|
127
127
|
*/
|
|
128
128
|
export declare function minimumGradleVersionForJava(javaMajor: number): string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Pick the newest stable Gradle version from `sdk list` output that can run on
|
|
131
|
+
* the given JDK major. Without a known cap this is the newest stable version,
|
|
132
|
+
* matching the plain default install; with a cap, versions below it are
|
|
133
|
+
* skipped so a project that declared a new JDK never gets a Gradle that
|
|
134
|
+
* refuses to run on it, even when the sdkman list is stale.
|
|
135
|
+
*
|
|
136
|
+
* @param {string} stdout Raw `sdk list gradle` output
|
|
137
|
+
* @param {number|undefined} javaMajor JDK major the Gradle daemon must run on
|
|
138
|
+
* @returns {string|undefined} Best matching version identifier.
|
|
139
|
+
*/
|
|
140
|
+
export declare function resolveGradleVersionForJava(stdout: string, javaMajor: number | undefined): string | undefined;
|
|
129
141
|
/**
|
|
130
142
|
* Collect the version tokens printed by `sdk list <candidate>`. The output is
|
|
131
143
|
* a fixed-width table whose cells may carry `+`, `*`, or `>` status markers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jvmToolEnv.d.ts","sourceRoot":"","sources":["../../../lib/inventory/jvmToolEnv.js"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,OAAO,EACL,eAAe,IAAI,qBAAqB,EACxC,gBAAgB,EAChB,mBAAmB,GACpB,CAAC;AAuBF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAHjC,MAGiC,GAF/B,OAAO,CASnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EALxC,MAKwC,GAJtC,MAAM,GAAC,SAAS,CAmB5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAJ3B,MAI2B,GAHzB,MAAM,GAAC,SAAS,CA4C5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAJtC,MAIsC,GAHpC,MAAM,GAAC,SAAS,CAwC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAJrC,MAIqC,GAHnC,MAAM,GAAC,SAAS,CAgC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAH9C,MAG8C,GAF5C,MAAM,GAAC,SAAS,CAkB5B;AAsDD;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,iDAKjC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"jvmToolEnv.d.ts","sourceRoot":"","sources":["../../../lib/inventory/jvmToolEnv.js"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,OAAO,EACL,eAAe,IA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hancer.d.ts","sourceRoot":"","sources":["../../../lib/inventory/licenseEnhancer.js"],"names":[],"mappings":"AAOA,OAAO,EAIL,mBAAmB,EAIpB,MAAM,qBAAqB,CAAC;AAkF7B;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAH1B,MAG0B,GAFxB,MAAM,GAAC,IAAI,CAavB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAJzB,MAIyB,EAAE,IAAI,GAH/B,MAGoC,GAFlC,MAAM,GAAC,IAAI,CAoGvB;AAgBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,MAAM,CA8BlB;AA0DD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAJ7B,MAAM,GAAC,MAIsB,EAAE,IAAI,GAHnC,MAGwC,GAFtC,MAAM,CAqFlB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAJvC,MAIuC,EAAE,IAAI,GAH7C,MAGkD,GAFhD,MAAM,CA4ClB;AAoGD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,cAAc,EALzC,MAKyC,EAAE,MAAM,EAJjD,MAIiD,EAAE,KAAK,KAAK,GAF3D,MAAM,CAyElB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAJnB,MAImB,EAAE,IAAI,GAHzB,MAG8B,GAF5B,MAAM,CAgDlB;AA4KD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EALhC,MAKgC,EAAE,MAAM,EAJxC,MAIwC,EAAE,IAAI,AAHtD,CACA,EADQ,MAGmD,GAFjD,MAAM,EAAE,CA0CpB"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opt-in switch that points every Maven Central consumer at Google's public
|
|
3
|
+
* mirror: cdxgen's own POM, licence and metadata lookups, and every JVM build
|
|
4
|
+
* tool cdxgen runs (Maven and its wrapper, Gradle, sbt, Mill, Bazel and the
|
|
5
|
+
* Clojure tools). The value selects the mirror:
|
|
6
|
+
*
|
|
7
|
+
* `true`/`google` the global mirror bucket
|
|
8
|
+
* `eu` the Europe bucket
|
|
9
|
+
* `asia` the Asia bucket
|
|
10
|
+
* `http(s)://...` any other mirror or repository manager of Maven Central
|
|
11
|
+
*
|
|
12
|
+
* An explicit `MAVEN_CENTRAL_URL` still wins for cdxgen's own lookups, and a
|
|
13
|
+
* repository the user or the project already configures is never replaced:
|
|
14
|
+
* only the default Maven Central URLs are moved. Nothing is written to the
|
|
15
|
+
* scanned project or the user's home directory; the injection goes through
|
|
16
|
+
* command-line arguments and environment variables, and any settings or init
|
|
17
|
+
* script it needs is written under cdxgen's temp directory and removed again.
|
|
18
|
+
*/
|
|
19
|
+
export declare const MAVEN_CENTRAL_MIRROR_VAR = "MAVEN_CENTRAL_MIRROR";
|
|
20
|
+
/**
|
|
21
|
+
* Google's public Maven Central mirror buckets, named by region.
|
|
22
|
+
*
|
|
23
|
+
* @type {Object<string, string>}
|
|
24
|
+
*/
|
|
25
|
+
export declare const MAVEN_CENTRAL_MIRROR_URLS: Record<string, string>;
|
|
26
|
+
/**
|
|
27
|
+
* The default Maven Central repository URLs that the mirror replaces, for
|
|
28
|
+
* tools that name repositories by URL.
|
|
29
|
+
*
|
|
30
|
+
* @type {string[]}
|
|
31
|
+
*/
|
|
32
|
+
export declare const MAVEN_CENTRAL_DEFAULT_URLS: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Read the mirror switch. Undefined when cdxgen should use Maven Central
|
|
35
|
+
* itself, the mirror URL otherwise.
|
|
36
|
+
*
|
|
37
|
+
* @returns {string|undefined} Mirror base URL with a trailing slash
|
|
38
|
+
*/
|
|
39
|
+
export declare function mavenCentralMirrorUrl(): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the mirror switch is on. Names and URLs that do not resolve to a
|
|
42
|
+
* mirror leave it off, so a typo never silently redirects builds.
|
|
43
|
+
*
|
|
44
|
+
* @returns {boolean}
|
|
45
|
+
*/
|
|
46
|
+
export declare function isMavenCentralMirrorEnabled(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The repository cdxgen's own POM, licence and metadata lookups should fetch
|
|
49
|
+
* from. An explicit `MAVEN_CENTRAL_URL` is a deliberate choice, often a
|
|
50
|
+
* repository manager holding private artefacts, so it keeps winning over the
|
|
51
|
+
* mirror.
|
|
52
|
+
*
|
|
53
|
+
* @returns {string|undefined} Mirror URL, or undefined to keep the existing
|
|
54
|
+
* `MAVEN_CENTRAL_URL` behaviour
|
|
55
|
+
*/
|
|
56
|
+
export declare function mavenCentralFetchUrl(): string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Insert the mirror into the content of a settings file that is passed to
|
|
59
|
+
* Maven anyway, keeping every other element as it is. The mirror is appended
|
|
60
|
+
* to the existing ones, so the file's own mirror of Central still wins.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} content Existing settings.xml content
|
|
63
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
64
|
+
* @returns {string|undefined} Merged content, or undefined when the file
|
|
65
|
+
* holds no recognisable settings element to merge into
|
|
66
|
+
*/
|
|
67
|
+
export declare function mergeMavenMirrorSettings(content: string, mirrorUrl: string): string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Extra Maven arguments that send Central to the mirror, written as a global
|
|
70
|
+
* settings file under cdxgen's temp directory. An existing `-gs` settings
|
|
71
|
+
* file named by the caller is merged with the mirror instead, so a project
|
|
72
|
+
* that ships its own settings.xml keeps its repositories and its own mirror.
|
|
73
|
+
* A settings file the user named themselves (in `MVN_ARGS`/`MAVEN_ARGS`) is
|
|
74
|
+
* never touched, and neither is secure mode.
|
|
75
|
+
*
|
|
76
|
+
* @param {string} [existingSettingsFile] Settings file the caller already
|
|
77
|
+
* passes to Maven
|
|
78
|
+
* @returns {string[]} Arguments to append to the Maven command line
|
|
79
|
+
*/
|
|
80
|
+
export declare function mavenMirrorSettingsArgs(existingSettingsFile?: string): string[];
|
|
81
|
+
/**
|
|
82
|
+
* Environment for a Maven or Maven wrapper invocation that moves the
|
|
83
|
+
* wrapper's own distribution download off Maven Central. Plain `mvn`
|
|
84
|
+
* invocations ignore it.
|
|
85
|
+
*
|
|
86
|
+
* @returns {Object} Environment variables to add to the child process
|
|
87
|
+
*/
|
|
88
|
+
export declare function mavenWrapperMirrorEnv(): Object;
|
|
89
|
+
/**
|
|
90
|
+
* A Gradle init script that rewrites Maven Central repository URLs to the
|
|
91
|
+
* mirror as the settings and every project declare them. Repositories that are
|
|
92
|
+
* not Maven Central keep their URL, so private repositories and declared
|
|
93
|
+
* mirrors are untouched.
|
|
94
|
+
*
|
|
95
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
96
|
+
* @returns {string}
|
|
97
|
+
*/
|
|
98
|
+
export declare function gradleMirrorInitScript(mirrorUrl: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Extra Gradle arguments that install the mirror init script. Gradle applies
|
|
101
|
+
* every init script it is given, so cdxgen's own helper script keeps working.
|
|
102
|
+
*
|
|
103
|
+
* @returns {string[]} Arguments to append to the Gradle command line
|
|
104
|
+
*/
|
|
105
|
+
export declare function gradleMirrorInitScriptArgs(): string[];
|
|
106
|
+
/**
|
|
107
|
+
* An sbt launcher repositories file that resolves Maven Central from the
|
|
108
|
+
* mirror. The launcher replaces its default list with this file, so the
|
|
109
|
+
* plugin and Typesafe repositories it must still reach are named here, and
|
|
110
|
+
* only the Central entry points at the mirror.
|
|
111
|
+
*
|
|
112
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
113
|
+
* @returns {string}
|
|
114
|
+
*/
|
|
115
|
+
export declare function sbtRepositoriesFile(mirrorUrl: string): string;
|
|
116
|
+
/**
|
|
117
|
+
* Environment for an sbt invocation that resolves Maven Central from the
|
|
118
|
+
* mirror: a repositories file under cdxgen's temp directory, named through
|
|
119
|
+
* `SBT_OPTS`. A user who already configures repositories (`~/.sbt/repositories`
|
|
120
|
+
* or their own `sbt.repository.config`) keeps their configuration, and the
|
|
121
|
+
* mirror stays out of the way.
|
|
122
|
+
*
|
|
123
|
+
* @returns {Object} Environment variables to add to the child process
|
|
124
|
+
*/
|
|
125
|
+
export declare function sbtMirrorEnv(): Object;
|
|
126
|
+
/**
|
|
127
|
+
* Environment for tools that resolve through the Coursier CLI.
|
|
128
|
+
*
|
|
129
|
+
* @returns {Object} Environment variables to add to the child process
|
|
130
|
+
*/
|
|
131
|
+
export declare function coursierMirrorEnv(): Object;
|
|
132
|
+
/**
|
|
133
|
+
* Extra Bazel build arguments that hand the mirror to repository rules, whose
|
|
134
|
+
* environment Bazel otherwise keeps isolated from the client's. Repositories
|
|
135
|
+
* whose URLs the project pins, as rules_jvm_external projects do, are not
|
|
136
|
+
* changed by this; it covers the ones that resolve through Coursier defaults.
|
|
137
|
+
*
|
|
138
|
+
* @returns {string[]} Arguments to append to the Bazel build command line
|
|
139
|
+
*/
|
|
140
|
+
export declare function bazelMirrorArgs(): string[];
|
|
141
|
+
/**
|
|
142
|
+
* The `-Sdeps` data that repoints the default `central` repository of the
|
|
143
|
+
* Clojure CLI at the mirror. Repositories merge by name, so a project's other
|
|
144
|
+
* repositories, including Clojars, keep resolving as declared.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} mirrorUrl Mirror base URL
|
|
147
|
+
* @returns {string}
|
|
148
|
+
*/
|
|
149
|
+
export declare function clojureMirrorSdeps(mirrorUrl: string): string;
|
|
150
|
+
/**
|
|
151
|
+
* Extra arguments for a Clojure CLI invocation. Skipped when the user already
|
|
152
|
+
* passes `-Sdeps`, whose data would otherwise be replaced.
|
|
153
|
+
*
|
|
154
|
+
* @param {string[]} baseArgs Arguments the caller already assembled
|
|
155
|
+
* @returns {string[]} Arguments to append
|
|
156
|
+
*/
|
|
157
|
+
export declare function clojureMirrorArgs(baseArgs?: string[]): string[];
|
|
158
|
+
/**
|
|
159
|
+
* Arguments for a Leiningen invocation that repoint its `central` repository
|
|
160
|
+
* at the mirror, through `lein update-in`, which changes the project map in
|
|
161
|
+
* memory and never the project.clj file. Skipped when the project declares
|
|
162
|
+
* its own `:mirrors`, which must keep winning.
|
|
163
|
+
*
|
|
164
|
+
* @param {string[]} baseArgs Arguments the caller already assembled
|
|
165
|
+
* @param {string} [projectFileContent] The project's project.clj, when the
|
|
166
|
+
* caller has it at hand
|
|
167
|
+
* @returns {string[]} Full argument list to invoke Leiningen with
|
|
168
|
+
*/
|
|
169
|
+
export declare function leiningenMirrorArgs(baseArgs: string[], projectFileContent?: string): string[];
|
|
170
|
+
//# sourceMappingURL=mavenCentralMirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mavenCentralMirror.d.ts","sourceRoot":"","sources":["../../../lib/inventory/mavenCentralMirror.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wBAIrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAF7B,MAAM,EAKf,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAFxB,MAAM,GAAC,SAAS,CAuB5B;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAF9B,OAAO,CAInB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAHvB,MAAM,GAAC,SAAS,CAW5B;AAkFD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EALrC,MAKqC,EAAE,SAAS,EAJhD,MAIgD,GAH9C,MAAM,GAAC,SAAS,CAuB5B;AAoBD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,oBAAoB,AAJzD,CAEA,EAFQ,MAIiD,GAF/C,MAAM,EAAE,CAyBpB;AAED;;;;;;GAMG;AACH,wBAAgB,q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