@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,25 +1,57 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The licence
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* before pkg.go.dev is asked.
|
|
2
|
+
* The licence notices of a module that is already on this machine, from the
|
|
3
|
+
* directory `go list` reported, from the project's `vendor/` tree, or from the
|
|
4
|
+
* module cache. Reading them costs no network round trip, so they answer
|
|
5
|
+
* before pkg.go.dev is asked. Every notice of the first directory holding
|
|
6
|
+
* one is returned, as pkg.go.dev reads every notice of a module.
|
|
6
7
|
*
|
|
7
8
|
* The directory `go list` reported is always read. The vendor tree and the
|
|
8
9
|
* module cache stand in for pkg.go.dev, so they are read only when licences
|
|
9
|
-
* are being fetched.
|
|
10
|
+
* are being fetched. Their directories are built from a module path and
|
|
11
|
+
* version read from modules.txt or go.sum, so a path or version the Go
|
|
12
|
+
* toolchain would reject, such as one with a `..` element, is not looked up:
|
|
13
|
+
* Go never writes such a directory, and joining it could leave the tree.
|
|
10
14
|
*
|
|
11
15
|
* @param {string} name Full module path
|
|
12
16
|
* @param {string} [version] Module version, for the module cache layout
|
|
13
17
|
* @param {Object} [options] Options
|
|
14
18
|
* @param {string} [options.dir] The module's directory, as `go list` reports it
|
|
15
19
|
* @param {string} [options.projectRoot] Project root holding a `vendor/` tree
|
|
16
|
-
* @
|
|
17
|
-
*
|
|
20
|
+
* @param {string} [options.vendorPath] The path the module is vendored under,
|
|
21
|
+
* when it differs from `name`: Go vendors a replaced module under the path
|
|
22
|
+
* it replaces
|
|
23
|
+
* @returns {{fileName: string, text: string}[]} The notices, in file name
|
|
24
|
+
* order; empty when none is held locally
|
|
18
25
|
*/
|
|
19
|
-
export declare function
|
|
26
|
+
export declare function readLocalGoLicenses(name: string, version?: string, options?: {
|
|
20
27
|
dir?: string;
|
|
21
28
|
projectRoot?: string;
|
|
22
|
-
|
|
29
|
+
vendorPath?: string;
|
|
30
|
+
}): {
|
|
31
|
+
fileName: string;
|
|
32
|
+
text: string;
|
|
33
|
+
}[];
|
|
34
|
+
/**
|
|
35
|
+
* The text of the first licence notice {@link readLocalGoLicenses} finds.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} name Full module path
|
|
38
|
+
* @param {string} [version] Module version, for the module cache layout
|
|
39
|
+
* @param {Object} [options] The options {@link readLocalGoLicenses} takes
|
|
40
|
+
* @returns {string|undefined} The notice text, or undefined when none is held
|
|
41
|
+
* locally
|
|
42
|
+
*/
|
|
43
|
+
export declare function readLocalGoLicense(name: string, version?: string, options?: Object): string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Order two Go module versions by semantic version precedence, as Go's semver
|
|
46
|
+
* package does: a pre-release, pseudo-versions included, sorts before its
|
|
47
|
+
* release, and build metadata such as `+incompatible` does not count.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} a A module version
|
|
50
|
+
* @param {string} b Another module version
|
|
51
|
+
* @returns {number} Negative, zero or positive as `a` sorts before, with or
|
|
52
|
+
* after `b`
|
|
53
|
+
*/
|
|
54
|
+
export declare function compareGoVersions(a: string, b: string): number;
|
|
23
55
|
/**
|
|
24
56
|
* Builds a Go package component object containing purl, bom-ref, integrity hash,
|
|
25
57
|
* and optionally license and VCS external reference information.
|
|
@@ -36,12 +68,15 @@ export declare function readLocalGoLicense(name: string, version?: string, optio
|
|
|
36
68
|
* it, where a local licence notice is read first
|
|
37
69
|
* @param {string} [options.projectRoot] Project root holding a `vendor/` tree
|
|
38
70
|
* the module may be vendored in
|
|
71
|
+
* @param {string} [options.vendorPath] The path the module is vendored under,
|
|
72
|
+
* when it differs from `name`
|
|
39
73
|
* @returns {Promise<Object>} Component object ready for inclusion in a BOM package list
|
|
40
74
|
*/
|
|
41
75
|
export declare function getGoPkgComponent(group: string, name: string, version: string, hash: string, options?: {
|
|
42
76
|
skipRegistryLookups?: boolean;
|
|
43
77
|
dir?: string;
|
|
44
78
|
projectRoot?: string;
|
|
79
|
+
vendorPath?: string;
|
|
45
80
|
}): Promise<Object>;
|
|
46
81
|
/**
|
|
47
82
|
* Method to parse go.mod files
|
|
@@ -49,7 +84,8 @@ export declare function getGoPkgComponent(group: string, name: string, version:
|
|
|
49
84
|
* @param {String} goModData Contents of go.mod file
|
|
50
85
|
* @param {Object} gosumMap Data from go.sum files
|
|
51
86
|
*
|
|
52
|
-
* @returns {Object} Object containing parent component, rootList
|
|
87
|
+
* @returns {Object} Object containing parent component, rootList, packages
|
|
88
|
+
* list, and the replace directives as `replacements`
|
|
53
89
|
*/
|
|
54
90
|
export declare function parseGoModData(goModData: string, gosumMap: Object): Object;
|
|
55
91
|
/**
|
|
@@ -57,6 +93,12 @@ export declare function parseGoModData(goModData: string, gosumMap: Object): Obj
|
|
|
57
93
|
* Go package components. Cross-references the go.sum map for integrity hashes and
|
|
58
94
|
* sets scope and confidence based on hash availability.
|
|
59
95
|
*
|
|
96
|
+
* Only the modules the vendor tree holds become components: a module line
|
|
97
|
+
* followed by its `##` annotations or its packages. `go mod vendor` also
|
|
98
|
+
* records every replace directive of go.mod at the end of the file, as a
|
|
99
|
+
* module line with nothing after it, so the consumer can tell that the
|
|
100
|
+
* replacement had no effect; those lines name no vendored module.
|
|
101
|
+
*
|
|
60
102
|
* @param {string} txtFile Path to the modules.txt file
|
|
61
103
|
* @param {Object} gosumMap Map of "module@version" keys to sha256 hash values from go.sum
|
|
62
104
|
* @returns {Promise<Object[]>} List of Go package component objects with evidence
|
|
@@ -65,17 +107,40 @@ export declare function parseGoModulesTxt(txtFile: string, gosumMap: Object): Pr
|
|
|
65
107
|
/**
|
|
66
108
|
* Parse go list output
|
|
67
109
|
*
|
|
110
|
+
* Each row is printed by the template in createGoBom:
|
|
111
|
+
* `Path|Version|Indirect|GoMod|GoVersion|Main|Time|Deprecated|GoModSum|Dir|Sum|
|
|
112
|
+
* Replace.Path|Replace.Version|Replace.Sum`. Rows from older templates end
|
|
113
|
+
* after `Dir`.
|
|
114
|
+
*
|
|
115
|
+
* A replaced module is reported as the module Go builds (see
|
|
116
|
+
* {@link goReplacement}), with the checksum of the replacement. A go.work
|
|
117
|
+
* workspace makes every member a main module, so the parent is the main
|
|
118
|
+
* module in `options.mainModuleDir`, and the other members are returned as
|
|
119
|
+
* `workspaceModules`.
|
|
120
|
+
*
|
|
68
121
|
* @param {string} rawOutput Output from go list invocation
|
|
69
122
|
* @param {Object} gosumMap go.sum data
|
|
70
|
-
* @
|
|
123
|
+
* @param {Object} [options] Options
|
|
124
|
+
* @param {string} [options.mainModuleDir] Directory `go list` ran in, whose
|
|
125
|
+
* main module is the parent component
|
|
126
|
+
* @returns Object with parent component, list of packages, and the other main
|
|
127
|
+
* modules of a workspace
|
|
71
128
|
*/
|
|
72
|
-
export declare function parseGoListDep(rawOutput: string, gosumMap: Object
|
|
129
|
+
export declare function parseGoListDep(rawOutput: string, gosumMap: Object, options?: {
|
|
130
|
+
mainModuleDir?: string;
|
|
131
|
+
}): Promise<{
|
|
73
132
|
parentComponent: {};
|
|
74
133
|
pkgList: Object[];
|
|
134
|
+
workspaceModules: Object[];
|
|
75
135
|
}>;
|
|
76
136
|
/**
|
|
77
137
|
* Parse go mod graph
|
|
78
138
|
*
|
|
139
|
+
* `go mod graph` names every module by the path and version its requirement
|
|
140
|
+
* names, whatever replaces it. A replaced module is mapped to the module Go
|
|
141
|
+
* builds: from the components `go list` reported, which record what they
|
|
142
|
+
* replace, or else from the replace directives of go.mod.
|
|
143
|
+
*
|
|
79
144
|
* @param {string} rawOutput Output from go mod graph invocation
|
|
80
145
|
* @param {string} goModFile go.mod file
|
|
81
146
|
* @param {Object} gosumMap Hashes from gosum for lookups
|
|
@@ -115,7 +180,8 @@ export declare function isGoModWhyNotNeeded(rawOutput: string): boolean;
|
|
|
115
180
|
* building components or touching the network.
|
|
116
181
|
*
|
|
117
182
|
* @param {string} gosumData Content of go.sum
|
|
118
|
-
* @returns {Object} Map of `module@version` keys to `sha256-…`
|
|
183
|
+
* @returns {Object} Map of `module@version` keys to the `sha256-…` checksum of
|
|
184
|
+
* the module content, for every version go.sum holds one for
|
|
119
185
|
*/
|
|
120
186
|
export declare function parseGosumHashes(gosumData: string): Object;
|
|
121
187
|
/**
|
|
@@ -137,6 +203,12 @@ export declare function parseGopkgData(gopkgData: string): Promise<Object[]>;
|
|
|
137
203
|
* Parses the output of `go version -m` (build info) and returns a list of Go
|
|
138
204
|
* package components for each "dep" line, including name, version, and integrity hash.
|
|
139
205
|
*
|
|
206
|
+
* A dependency that a replace directive swapped out is printed as its `dep`
|
|
207
|
+
* line followed by a `=>` line naming the replacement (runtime/debug
|
|
208
|
+
* BuildInfo.String). The replacement is what the binary holds, so it is
|
|
209
|
+
* reported as {@link goReplacement} describes, with the replacement's
|
|
210
|
+
* checksum.
|
|
211
|
+
*
|
|
140
212
|
* @param {string} buildInfoData Raw string output from `go version -m`
|
|
141
213
|
* @returns {Promise<Object[]>} List of Go package component objects
|
|
142
214
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-go.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-go.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parsers-go.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-go.js"],"names":[],"mappings":"AAyPA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAX7B,MAW6B,EAAE,OAAO,AAV9C,CACA,EADQ,MAUsC,EAAE,OAAO,AATvD,CAMA,EALA;IAAyB,GAAG,AAA5B,CACA,EADQ,MAAM,CACd;IAAyB,WAAW,AAApC,CACA,EADQ,MAAM,CACd;IAAyB,UAAU,AAAnC,CAGA,EAHQ,MAAM,CAGd;CAG4D,GAHlD;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,EAAE,CAqE9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAN5B,MAM4B,EAAE,OAAO,AAL7C,CACA,EADQ,MAKqC,EAAE,OAAO,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GAKG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAH5B,MAG4B,GAF1B,MAAM,GAAC,SAAS,CAc5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAHlC,MAGkC,GAFhC,OAAO,CASnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAJ/B,MAI+B,GAH7B,MAAM,CAWlB;AAyCD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAHnC,MAGmC,qBAY7C;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAHnC,MAGmC,GAFjC,OAAO,CAAC,MAAM,EAAE,CAAC,CAmD7B;AAoBD;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,aAAa,EAH3C,MAG2C,GAFzC,OAAO,CAAC,MAAM,EAAE,CAAC,CAqD7B"}
|
|
@@ -186,6 +186,22 @@ export declare function pnpmMetadata(pkgList: any[], lockFilePath: string): any[
|
|
|
186
186
|
* plain version and not an alias
|
|
187
187
|
*/
|
|
188
188
|
export declare function parsePnpmAliasRef(value: string): Object | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* Decide whether a parsed pnpm lockfile document is a boot document.
|
|
191
|
+
*
|
|
192
|
+
* Since pnpm 12 a lockfile can hold two YAML documents. The first, the boot
|
|
193
|
+
* document, records the project's config dependencies and the resolved pnpm
|
|
194
|
+
* version under its importers, and the last is the project lockfile. The
|
|
195
|
+
* boot document is recognised by these keys rather than by its position
|
|
196
|
+
* alone, and tolerates either key missing.
|
|
197
|
+
*
|
|
198
|
+
* See: https://pnpm.io/lockfile
|
|
199
|
+
*
|
|
200
|
+
* @param {Object} docObj Parsed YAML document
|
|
201
|
+
*
|
|
202
|
+
* @returns {boolean} true when the document looks like a boot document
|
|
203
|
+
*/
|
|
204
|
+
export declare function isPnpmBootDocument(docObj: Object): boolean;
|
|
189
205
|
/**
|
|
190
206
|
* Parse nodejs pnpm lock file
|
|
191
207
|
*
|
|
@@ -193,30 +209,11 @@ export declare function parsePnpmAliasRef(value: string): Object | undefined;
|
|
|
193
209
|
* @param {Object} parentComponent parent component
|
|
194
210
|
* @param {Array[String]} workspacePackages Workspace packages
|
|
195
211
|
* @param {Object} workspaceSrcFiles Workspace package.json files
|
|
196
|
-
* @param {Object} _workspaceCatalogs Workspace catalogs
|
|
197
212
|
* @param {Object} _workspaceDirectDeps Direct dependencies of each workspace
|
|
198
213
|
* @param {Object} depsWorkspaceRefs Workspace references for each dependency
|
|
199
214
|
* @param {string} projectRoot Root path used to relativize pnpm-lock evidence paths
|
|
200
215
|
*/
|
|
201
|
-
export declare function parsePnpmLock(pnpmLock: string, parentComponent?: Object, workspacePackages?: any, workspaceSrcFiles?: Object,
|
|
202
|
-
pkgList?: undefined;
|
|
203
|
-
dependenciesList?: undefined;
|
|
204
|
-
parentSubComponents?: undefined;
|
|
205
|
-
} | {
|
|
206
|
-
pkgList: any[];
|
|
207
|
-
dependenciesList: {
|
|
208
|
-
ref: string;
|
|
209
|
-
dependsOn: any[];
|
|
210
|
-
}[];
|
|
211
|
-
parentSubComponents: {
|
|
212
|
-
group: any;
|
|
213
|
-
name: any;
|
|
214
|
-
version: any;
|
|
215
|
-
type: string;
|
|
216
|
-
purl: any;
|
|
217
|
-
"bom-ref": string;
|
|
218
|
-
}[];
|
|
219
|
-
}>;
|
|
216
|
+
export declare function parsePnpmLock(pnpmLock: string, parentComponent?: Object, workspacePackages?: any, workspaceSrcFiles?: Object, _workspaceDirectDeps?: Object, depsWorkspaceRefs?: Object, projectRoot?: string): Promise<{}>;
|
|
220
217
|
/**
|
|
221
218
|
* Parse bower json file
|
|
222
219
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-js.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-js.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file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ASa,EACtB,WAAW,GATF,MASc,eAkqCxB;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,aAAa,EAFvC,MAEuC,kBA6CjD;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,SAAS,EAF/B,MAE+B,kBA2FzC;AAGD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAH9B,MAAM,GAAC,MAGuB,GAF5B;IAAE,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,GAAC,IAAI,CAAA;CAAE,CAoBvG;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,QAAA,GAFjC,KAAK,QAAQ,CA4CzB"}
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parse pom file
|
|
3
3
|
*
|
|
4
|
+
* Versions resolve from the pom's own properties and dependencyManagement.
|
|
5
|
+
* A caller that has read the pom's parents passes what they define in
|
|
6
|
+
* `inherited`, so versions the parents manage resolve too. Imported BOMs and
|
|
7
|
+
* parents outside the scanned directory are not read.
|
|
8
|
+
*
|
|
4
9
|
* @param {string} pomFile pom file to parse
|
|
5
|
-
* @
|
|
10
|
+
* @param {Object} [inherited] Properties and managed versions from parent poms
|
|
11
|
+
* @param {Object} [inherited.properties] Property name to raw value
|
|
12
|
+
* @param {Object} [inherited.managedVersions] `groupId:artifactId` to version
|
|
13
|
+
* @returns {Object} Object containing pom properties, modules, the parent
|
|
14
|
+
* reference, the user properties and managed versions this pom defines, and
|
|
15
|
+
* array of dependencies
|
|
16
|
+
*/
|
|
17
|
+
export declare function parsePom(pomFile: string, inherited?: {
|
|
18
|
+
properties?: Object;
|
|
19
|
+
managedVersions?: Object;
|
|
20
|
+
}): Object;
|
|
21
|
+
/**
|
|
22
|
+
* Parse a pom file together with the parent poms it names that are present
|
|
23
|
+
* inside the scanned directory, without running Maven. Properties and
|
|
24
|
+
* dependencyManagement versions from those parents resolve the versions the
|
|
25
|
+
* pom leaves to them. Parents outside the directory and imported BOMs are not
|
|
26
|
+
* read, so the versions they manage stay empty.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} pomFile Pom file to parse
|
|
29
|
+
* @param {string} rootDir Scanned directory; parents outside it are ignored
|
|
30
|
+
* @param {Map} [cache] Reused across the poms of one scan
|
|
31
|
+
* @returns {Object} Same shape as parsePom
|
|
6
32
|
*/
|
|
7
|
-
export declare function
|
|
33
|
+
export declare function parsePomWithLocalParents(pomFile: string, rootDir: string, cache?: Map<any, any>): Object;
|
|
8
34
|
/**
|
|
9
35
|
* Every pom file of the reactor an aggregator pom builds: its own modules,
|
|
10
36
|
* recursively through nested aggregators. A recursive dependency:tree run
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-jvm.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-jvm.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parsers-jvm.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-jvm.js"],"names":[],"mappings":"AAsDA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EARrB,MAQqB,EAAE,SAAS,AAPxC,CAGA,EAFA;IAA2B,UAAU,AAArC,CACA,EADQ,MAAM,CACd;IAA2B,eAAe,AAA1C,CACA,EADQ,MAAM,CACd;CAI6C,GAJnC,MAAM,CA8PlB;AAiFD;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EALrC,MAKqC,EAAE,OAAO,EAJ9C,MAI8C,EAAE,KAAK,AAH7D,CACA,eAEyE,GAF/D,MAAM,CAalB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAHnC,MAGmC,GAFjC,GAAG,CAAC,MAAM,CAAC,CAsDvB;AAED;;;;GAIG;AACH,eAA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AAE,UAAU,EAJlC,MAIkC,EAAE,IAAI,EAHxC,MAAM,EAGkC,GAFtC,MAAM,EAAE,CA0BpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAFpC,MAEoC,SAkC9C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAFjC,MAEiC,SAqD3C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAF9B,MAE8B,SAexC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,SAAS,KAAA,SAmCnC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAHhC,MAGgC,GAF9B,MAAM,EAAE,CAkCpB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAH5B,MAG4B,GAF1B,MAAM,EAAE,CAoDpB"}
|
|
@@ -186,65 +186,25 @@ export declare function parseComposerJson(composerJsonFile: string): Object;
|
|
|
186
186
|
*
|
|
187
187
|
* @param {string} pkgLockFile composer.lock file
|
|
188
188
|
* @param {array} rootRequires require section from composer.json
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
identity: {
|
|
207
|
-
field: string;
|
|
208
|
-
confidence: number;
|
|
209
|
-
methods: {
|
|
210
|
-
technique: string;
|
|
211
|
-
confidence: number;
|
|
212
|
-
value: string;
|
|
213
|
-
}[];
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
}[];
|
|
217
|
-
dependenciesList: {
|
|
218
|
-
ref: string;
|
|
219
|
-
dependsOn: any[];
|
|
220
|
-
}[];
|
|
221
|
-
rootList: {
|
|
222
|
-
group: any;
|
|
223
|
-
name: any;
|
|
224
|
-
purl: any;
|
|
225
|
-
"bom-ref": string;
|
|
226
|
-
version: any;
|
|
227
|
-
repository: any;
|
|
228
|
-
license: any;
|
|
229
|
-
description: any;
|
|
230
|
-
scope: string;
|
|
231
|
-
properties: {
|
|
232
|
-
name: string;
|
|
233
|
-
value: string;
|
|
234
|
-
}[];
|
|
235
|
-
evidence: {
|
|
236
|
-
identity: {
|
|
237
|
-
field: string;
|
|
238
|
-
confidence: number;
|
|
239
|
-
methods: {
|
|
240
|
-
technique: string;
|
|
241
|
-
confidence: number;
|
|
242
|
-
value: string;
|
|
243
|
-
}[];
|
|
244
|
-
};
|
|
245
|
-
};
|
|
189
|
+
* @returns {{pkgList: Object[], dependenciesList: Object[], rootList: Object[], platformProperties: {name: string, value: string}[]}|Array}
|
|
190
|
+
* The locked packages, the dependency edges between them, the packages the
|
|
191
|
+
* root requires, and the lock's `platform`, `platform-dev` and
|
|
192
|
+
* `platform-overrides` entries as `cdx:composer:*` properties. The platform
|
|
193
|
+
* entries are constraints and assumed versions, not the PHP that runs; the
|
|
194
|
+
* caller puts them on the module component. Every locked package carries its
|
|
195
|
+
* own `php`, `hhvm`, `ext-*` and `lib-*` requirements as
|
|
196
|
+
* `cdx:composer:require:<name>` properties. A lock that is not valid JSON
|
|
197
|
+
* gives an empty array.
|
|
198
|
+
*/
|
|
199
|
+
export declare function parseComposerLock(pkgLockFile: string, rootRequires: array): {
|
|
200
|
+
pkgList: Object[];
|
|
201
|
+
dependenciesList: Object[];
|
|
202
|
+
rootList: Object[];
|
|
203
|
+
platformProperties: {
|
|
204
|
+
name: string;
|
|
205
|
+
value: string;
|
|
246
206
|
}[];
|
|
247
|
-
};
|
|
207
|
+
} | any[];
|
|
248
208
|
/**
|
|
249
209
|
* Method to execute dpkg --listfiles to determine the files provided by a given package
|
|
250
210
|
*
|
|
@@ -409,6 +369,25 @@ export declare function parseCmakeDotFile(dotFile: string, pkgType: string, opti
|
|
|
409
369
|
* @returns {Object} The component
|
|
410
370
|
*/
|
|
411
371
|
export declare function cmakeFetchDependencyComponent(dep: Object, srcFile: string): Object;
|
|
372
|
+
/**
|
|
373
|
+
* Read the wrap files of a meson project's subprojects directory: which
|
|
374
|
+
* dependency names each wrap provides, and the version it pins.
|
|
375
|
+
* https://mesonbuild.com/Wrap-dependency-system-manual.html
|
|
376
|
+
*
|
|
377
|
+
* A WrapDB wrap records `wrapdb_version = <upstream>-<wrap revision>`; any wrap
|
|
378
|
+
* names its unpacked `directory` and its archive, which carry the upstream
|
|
379
|
+
* version; a git wrap pins a `revision` that is often a version tag.
|
|
380
|
+
*
|
|
381
|
+
* @param {string} subprojectsDir path of the subprojects directory
|
|
382
|
+
* @returns {Map<string, {wrap: string, version: string, source: string, revision?: string}>}
|
|
383
|
+
* by provided dependency name, lower-case
|
|
384
|
+
*/
|
|
385
|
+
export declare function readMesonWraps(subprojectsDir: string): Map<string, {
|
|
386
|
+
wrap: string;
|
|
387
|
+
version: string;
|
|
388
|
+
source: string;
|
|
389
|
+
revision?: string;
|
|
390
|
+
}>;
|
|
412
391
|
/**
|
|
413
392
|
* Parse a CMake-like build file (CMakeLists.txt, meson.build, etc.) and extract the
|
|
414
393
|
* parent component and list of dependency packages.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-misc.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-misc.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parsers-misc.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-misc.js"],"names":[],"mappings":"AA4FA;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,KAAA,EAAE,QAAQ,KAAA,GAF/C,MAAM,CA8ElB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAHjC,MAGiC,GAF/B,MAAM,EAAE,CA+BpB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,MAAM,EAAE,CAiEpB;AA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H,wBAAsB,qBAAqB,CAAC,YAAY,EAJ7C,KAAK,CAAC,MAAM,CAIiC,GAF3C,OAAO,CAAC,IAAI,CAAC,CA4CzB;AAwWD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CAoHpB"}
|
|
@@ -82,6 +82,16 @@ export declare function installedMetadataKey(p: Object): string | undefined;
|
|
|
82
82
|
* the METADATA files can skip those as components
|
|
83
83
|
*/
|
|
84
84
|
export declare function enrichFromInstalledMetadata(pkgList: Object[], installedMetadata: Object[]): Set<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Whether an environment marker is false for every CPython interpreter. Only
|
|
87
|
+
* `platform_python_implementation` and `implementation_name` clauses are
|
|
88
|
+
* decided; anything else, or a marker with parentheses, is treated as possibly
|
|
89
|
+
* true, so the answer errs towards keeping a package.
|
|
90
|
+
*
|
|
91
|
+
* @param {string} marker PEP 508 environment marker
|
|
92
|
+
* @returns {boolean} true when no CPython environment satisfies the marker
|
|
93
|
+
*/
|
|
94
|
+
export declare function markerExcludesCPython(marker: string): boolean;
|
|
85
95
|
/**
|
|
86
96
|
* Method to parse python lock files such as poetry.lock, pdm.lock, uv.lock, and pylock.toml.
|
|
87
97
|
*
|
|
@@ -166,11 +176,12 @@ export declare function parsePixiLockFile(pixiLockFileName: string, path: string
|
|
|
166
176
|
*/
|
|
167
177
|
export declare function parsePixiTomlFile(pixiToml: string): {};
|
|
168
178
|
/**
|
|
169
|
-
* Method to run cli command `pixi install`
|
|
170
|
-
*
|
|
179
|
+
* Method to run cli command `pixi install` in the project directory.
|
|
171
180
|
*
|
|
181
|
+
* @param {string} projectPath Directory containing pixi.toml
|
|
182
|
+
* @returns {boolean} true when pixi install succeeded
|
|
172
183
|
*/
|
|
173
|
-
export declare function generatePixiLockFile(
|
|
184
|
+
export declare function generatePixiLockFile(projectPath: string): boolean;
|
|
174
185
|
/**
|
|
175
186
|
* Parse a Mojo `mojoproject.toml` manifest.
|
|
176
187
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-python.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-python.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parsers-python.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-python.js"],"names":[],"mappings":"AAgEA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,QAAA;;;cAqB9C;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,QAAQ,EALpC,MAKoC,EAAE,iBAAiB,AAJ/D,CAGF,EAHU,MAAM,EAIiD,kBAoBjE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EALnC,MAKmC,EAAE,IAAI,EAJzC,MAIyC,EAAE,KAAK,EAHhD,MAGgD,GAF9C,IAAI,CAkBhB;AAuMD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAHpC,MAGoC,GAFlC,MAAM,CAwSlB;AAqFD;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAAC,SAAS,EAH/C,MAG+C,GAF7C,MAAM,GAAG,SAAS,CA2C9B;AAiBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAH9B,MAG8B,GAF5B,MAAM,GAAC,SAAS,CAU5B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAH3B,MAG2B,GAFzB,MAAM,GAAC,SAAS,CAM5B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAPxC,MAAM,EAOkC,EAAE,iBAAiB,EAN3D,MAAM,EAMqD,GAJzD,GAAG,CAAC,MAAM,CAAC,CA0CvB;AAiBD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAHjC,MAGiC,GAF/B,OAAO,CAWnB;AAsBD;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EATC,MASD,EACR,QAAQ,EATC,MASD,EACR,aAAa,EATJ,MASI,EACb,OAAO,AATN,CAIF,EAHE;IAA2B,iBAAiB,AAA5C,CAGF,EAHU,MAAM,EAAE,CAGlB;CAKa;;;;;;;;;;;;;;;;;;;;;;GA4pBb;AAYD;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,OAAO,QAAA,EACP,aAAa,UAAQ,EACrB,iBAAiB,AAThB,CAIA,EAJQ,MAAM,EASc,OAG9B;AAySD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,QAAA,GAFhC,KAAK,CAAC,MAAM,CAAC,CAmCzB;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAFvC,MAEuC,qBAqBjD;AA6CD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,gBAAgB,QAAA,EAAE,IAAI,QAAA;;;;;;;;;EAkLvD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,QAAA,MAiCzC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAHrC,MAGqC,GAFnC,OAAO,CAqBnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,eAAe,EAHrC,MAGqC,GAFnC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CA8C1D"}
|
|
@@ -84,6 +84,24 @@ export declare function getPyModules(src: string, epkgList: any[], options: Obje
|
|
|
84
84
|
* @param {Object} options CLI options
|
|
85
85
|
*/
|
|
86
86
|
export declare function createUVLock(basePath: string, options: Object): void;
|
|
87
|
+
/**
|
|
88
|
+
* Check whether a pyproject.toml requires poetry-core 2 or newer to build.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} pyprojectFile Path to pyproject.toml
|
|
91
|
+
* @returns {boolean} true when the project needs Poetry 2 or newer
|
|
92
|
+
*/
|
|
93
|
+
export declare function isPoetry2Project(pyprojectFile: string): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Build the poetry install arguments for a poetry project.
|
|
96
|
+
*
|
|
97
|
+
* Poetry 2 installs only the main dependency group and no extras by default,
|
|
98
|
+
* so projects requiring poetry-core 2 or newer also get --all-groups and
|
|
99
|
+
* --all-extras. Callers prepend the python invocation such as -m poetry.
|
|
100
|
+
*
|
|
101
|
+
* @param {string} pyprojectFile pyproject.toml or poetry.lock path of the project
|
|
102
|
+
* @returns {string[]} poetry install arguments
|
|
103
|
+
*/
|
|
104
|
+
export declare function getPoetryInstallArgs(pyprojectFile: string): string[];
|
|
87
105
|
/**
|
|
88
106
|
* Execute pip freeze by creating a virtual env in a temp directory and construct the dependency tree
|
|
89
107
|
*
|
|
@@ -97,8 +115,8 @@ export declare function createUVLock(basePath: string, options: Object): void;
|
|
|
97
115
|
export declare function getPipFrozenTree(basePath: string, reqOrSetupFile: string, tempVenvDir: string, parentComponent: Object, projectRoot: any, getTreeWithPluginFn: any): Object;
|
|
98
116
|
export declare function getPipTreeForPackages(basePath: any, pkgList: any, tempVenvDir: any, parentComponent: any, getTreeWithPluginFn: any): {
|
|
99
117
|
rootList?: undefined;
|
|
100
|
-
dependenciesList?: undefined;
|
|
101
118
|
failedPkgList?: undefined;
|
|
119
|
+
dependenciesList?: undefined;
|
|
102
120
|
} | {
|
|
103
121
|
failedPkgList: any[];
|
|
104
122
|
rootList: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythonutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/pythonutils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pythonutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/pythonutils.js"],"names":[],"mappings":"AAmCA;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAJxB,MAIsC,EAAE,YAAY,AAH5D,CACA,EADQ,MAG2D,G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