@cdxgen/cdxgen 13.5.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 +6 -6
- package/bin/cdxgen.js +4 -0
- package/bin/evinse.js +3 -0
- package/bin/validate.js +6 -0
- package/data/license-aliases.json +24 -2
- package/data/remediations.json +124 -0
- package/data/rules/ai-bom.yaml +1 -1
- package/data/rules/brotli-decoder.yaml +107 -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/cli/bomAssembly.js +92 -3
- package/lib/cli/index.js +108 -1
- package/lib/cli/jsBom.js +153 -64
- package/lib/cli/jvmBom.js +237 -46
- package/lib/cli/managedBom.js +142 -16
- package/lib/cli/nativeBom.js +42 -5
- package/lib/core/boundedFile.js +344 -0
- package/lib/core/brotliProbe.js +182 -0
- package/lib/core/env.js +8 -0
- package/lib/core/fs.js +12 -0
- package/lib/core/httpClient.js +98 -1
- package/lib/core/lockPaths.js +38 -0
- package/lib/core/paths.js +24 -1
- package/lib/core/processTree.js +5 -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/gradleutils.js +828 -224
- package/lib/ecosystems/parsers-bazel.js +107 -6
- package/lib/ecosystems/parsers-js.js +505 -22
- package/lib/ecosystems/parsers-misc.js +209 -20
- package/lib/ecosystems/parsers-python.js +89 -2
- package/lib/ecosystems/pythonutils.js +128 -2
- package/lib/ecosystems/rubyutils.js +538 -31
- package/lib/ecosystems/scalacliutils.js +2 -0
- package/lib/ecosystems/scalasem.js +796 -151
- package/lib/ecosystems/vendoredCode.js +237 -3
- package/lib/ecosystems/venvProbe.js +360 -0
- package/lib/evinser/evinser.js +346 -43
- package/lib/helpers/agenticToolutils.js +413 -93
- package/lib/helpers/vsixutils.js +1574 -315
- package/lib/inventory/atomUtils.js +77 -0
- package/lib/inventory/brotliDecoder.js +142 -0
- package/lib/inventory/buildToolRateLimit.js +1 -1
- package/lib/inventory/cbomutils.js +56 -7
- package/lib/inventory/deps.js +35 -0
- package/lib/inventory/dosai.js +139 -5
- package/lib/inventory/dotnetRuntime.js +217 -0
- package/lib/inventory/envcontext.js +307 -13
- package/lib/inventory/evidenceUtils.js +11 -0
- package/lib/inventory/fetchBatch.js +1 -1
- package/lib/inventory/formulationParsers.js +31 -3
- package/lib/inventory/gtfobins.js +13 -0
- package/lib/inventory/hostRuntimeProbe.js +686 -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/osPackageResolver.js +182 -0
- package/lib/inventory/phpBuildInfo.js +10 -59
- package/lib/inventory/phpHostProbe.js +32 -488
- 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 +49 -2
- package/lib/managers/binary.js +337 -3
- package/lib/managers/docker.js +79 -0
- package/lib/parsers/largeJson.js +28 -11
- package/lib/parsers/vscodeExtensionId.js +183 -0
- package/lib/server/server.js +12 -1
- package/lib/stages/postgen/ruleEngine.js +13 -5
- package/lib/stages/pregen/envAudit.js +1 -0
- package/lib/stages/pregen/pregen.js +114 -57
- package/lib/validator/bomValidator.js +6 -1
- package/lib/validator/generated/validate-1.6.mjs +1 -1
- package/lib/validator/generated/validate-1.7.mjs +1 -1
- package/lib/validator/generated/validate-2.0.mjs +1 -1
- package/lib/validator/index.js +1 -1
- package/package.json +3 -2
- package/types/lib/cli/bomAssembly.d.ts +13 -1
- package/types/lib/cli/bomAssembly.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.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 +4 -0
- 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/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/gradleutils.d.ts +47 -13
- 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-js.d.ts +17 -20
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +19 -0
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts +10 -0
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +20 -2
- 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/scalacliutils.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 +63 -8
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/inventory/atomUtils.d.ts +19 -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/cbomutils.d.ts +17 -0
- package/types/lib/inventory/cbomutils.d.ts.map +1 -1
- package/types/lib/inventory/deps.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +17 -1
- 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/envcontext.d.ts +52 -6
- package/types/lib/inventory/envcontext.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/formulationParsers.d.ts.map +1 -1
- package/types/lib/inventory/gtfobins.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/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/osPackageResolver.d.ts +38 -0
- package/types/lib/inventory/osPackageResolver.d.ts.map +1 -1
- package/types/lib/inventory/phpBuildInfo.d.ts.map +1 -1
- package/types/lib/inventory/phpHostProbe.d.ts.map +1 -1
- 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 +10 -0
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +12 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/parsers/largeJson.d.ts +4 -3
- package/types/lib/parsers/largeJson.d.ts.map +1 -1
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -1
- package/types/lib/stages/pregen/pregen.d.ts +12 -8
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
|
@@ -84,6 +84,30 @@ export declare function getDefaultHttpTimeoutMs(): number;
|
|
|
84
84
|
* @returns {number|undefined} Total timeout in milliseconds, or `undefined`.
|
|
85
85
|
*/
|
|
86
86
|
export declare function resolveTimeout(timeout?: number | Object): number | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Set or clear the cached runtime Brotli verdict. Exported for unit tests only.
|
|
89
|
+
*
|
|
90
|
+
* @param {boolean|undefined} verdict verdict to use, or undefined to re-check
|
|
91
|
+
*/
|
|
92
|
+
export declare function _setRuntimeBrotliVerdict(verdict: boolean | undefined): void;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the Brotli decoder of the runtime cdxgen runs on carries the
|
|
95
|
+
* CVE-2026-111497 fix, read once from the decoder itself: the node binary, or
|
|
96
|
+
* the shared libbrotlidec a `--shared-brotli` build (Homebrew, distro
|
|
97
|
+
* packages) loads; under Bun, the bun binary, which carries its own copy.
|
|
98
|
+
* process.versions.brotli cannot answer this, since Node.js backports the fix
|
|
99
|
+
* without changing it. Deno decodes Brotli in Rust, which was never affected.
|
|
100
|
+
*
|
|
101
|
+
* On Node.js cdxgen never asks for `br`, so a Brotli response comes only from
|
|
102
|
+
* a server that sends it unasked. When the decoder cannot be shown to be
|
|
103
|
+
* patched, such a body is left undecoded rather than handed to a decoder an
|
|
104
|
+
* attacker can write past. Bun decodes in its transport, so there the client
|
|
105
|
+
* stops asking for `br` instead.
|
|
106
|
+
*
|
|
107
|
+
* @param {Object} [runtime] the runtime to judge, for tests
|
|
108
|
+
* @returns {boolean} true when Brotli bodies may be decoded
|
|
109
|
+
*/
|
|
110
|
+
export declare function runtimeBrotliDecoderIsPatched(runtime?: Object): boolean;
|
|
87
111
|
/**
|
|
88
112
|
* Override the response cache bounds. Returns the previous bounds so tests can
|
|
89
113
|
* restore them. Not part of the public API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../lib/core/httpClient.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../lib/core/httpClient.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAU3B,QAAQ;IACR,OAAO;IACP,IAAI;IAXX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,GAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,MAAM,GAAC,IAAI,CAIlG,GAFxB,IAAI,CAIhB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAFvB,IAAI,CAIhB;AA8VD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,AAJtC,CACA,EADQ,MAImC,YAwC7C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Containment check for a path taken from a lockfile (issue #3816). A crafted
|
|
3
|
+
* npm lockfile can name `file:`/`link:` specifiers or link targets built from
|
|
4
|
+
* `..` chains or absolute paths, so a parser that is about to list such an
|
|
5
|
+
* entry checks the resolved path against the project root first.
|
|
6
|
+
*
|
|
7
|
+
* The candidate is resolved against `projectRoot`, so both relative values
|
|
8
|
+
* and the absolute paths arborist already normalised are accepted. The root
|
|
9
|
+
* itself counts as inside: a lockfile may legitimately link the project to
|
|
10
|
+
* its own directory.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} candidate Path to check, absolute or relative to projectRoot
|
|
13
|
+
* @param {string} projectRoot Project root the path must stay inside; a falsy
|
|
14
|
+
* root means the current working directory, mirroring `node:path`
|
|
15
|
+
*
|
|
16
|
+
* @returns {Boolean} True when the path is inside projectRoot
|
|
17
|
+
*/
|
|
18
|
+
export declare function isPathInsideProject(candidate: string, projectRoot: string): boolean;
|
|
19
|
+
//# sourceMappingURL=lockPaths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockPaths.d.ts","sourceRoot":"","sources":["../../../lib/core/lockPaths.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EANlC,MAMkC,EAAE,WAAW,EAL/C,MAK+C,WAkBzD"}
|
|
@@ -25,6 +25,8 @@ export declare function formatDuration(ms: number): string;
|
|
|
25
25
|
* its end: once the root is gone its pid can be handed to an unrelated
|
|
26
26
|
* process, whose children would otherwise look like the run's. Elsewhere this
|
|
27
27
|
* does nothing: an orphan is re-parented and can no longer be told apart.
|
|
28
|
+
* It returns once the stopped processes have exited, or after ten seconds,
|
|
29
|
+
* so the caller can remove files the run left half-written.
|
|
28
30
|
*
|
|
29
31
|
* @param {number|undefined} rootPid pid of the process cdxgen spawned
|
|
30
32
|
* @param {number} startedAt Epoch milliseconds at which the run started
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processTree.d.ts","sourceRoot":"","sources":["../../../lib/core/processTree.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAHtB,MAGsB,GAFpB,MAAM,CAQlB;AAED
|
|
1
|
+
{"version":3,"file":"processTree.d.ts","sourceRoot":"","sources":["../../../lib/core/processTree.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAHtB,MAGsB,GAFpB,MAAM,CAQlB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAPE,MAAM,GAAC,SAOT,EACP,SAAS,EAPA,MAOA,EACT,OAAO,AAPN,CACA,EADQ,MAOW,EACpB,QAAQ,AAPP,CACA,EADQ,MAOY,GANV,MAAM,EAAE,CA0DpB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Record an external tool cdxgen executed. The first version seen wins unless
|
|
3
|
+
* it was unknown, so an enriched probe never overwrites a concrete version
|
|
4
|
+
* with `undefined` and a later concrete version fills an earlier gap.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} name Tool name as invoked (a bare name or a path)
|
|
7
|
+
* @param {string|undefined} version Version when cheaply known
|
|
8
|
+
*/
|
|
9
|
+
export declare function recordExecutedTool(name: string, version: string | undefined): void;
|
|
10
|
+
/**
|
|
11
|
+
* Remember the version a stage already resolved for a tool, such as the JVM
|
|
12
|
+
* build tool pregen provisioned. The version shows in `metadata.tools` only if
|
|
13
|
+
* the tool is executed; the first version recorded wins.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} name Tool name as it will be invoked (a bare name or a path)
|
|
16
|
+
* @param {string} version Resolved version
|
|
17
|
+
*/
|
|
18
|
+
export declare function recordToolVersion(name: string, version: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Snapshot of the tools recorded so far, sorted by name so the assembled
|
|
21
|
+
* `metadata.tools` diff stays stable between runs.
|
|
22
|
+
*
|
|
23
|
+
* @returns {Array<{name: string, version: (string|undefined)}>} Sorted tool records
|
|
24
|
+
*/
|
|
25
|
+
export declare function getExecutedTools(): Array<{
|
|
26
|
+
name: string;
|
|
27
|
+
version: (string | undefined);
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Clear the registry. The server calls it between scans through the run-state
|
|
31
|
+
* reset; tests call it directly.
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
35
|
+
export declare function resetExecutedTools(): void;
|
|
36
|
+
//# sourceMappingURL=toolRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolRegistry.d.ts","sourceRoot":"","sources":["../../../lib/core/toolRegistry.js"],"names":[],"mappings":"AAsFA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAH5B,MAG4B,EAAE,OAAO,EAFrC,MAAM,GAAC,SAE8B,QAoB/C;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAH3B,MAG2B,EAAE,OAAO,EAFpC,MAEoC,QAW9C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAFnB,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,CAAC,MAAM,GAAC,SAAS,CAAC,CAAA;CAAC,CAAC,CAe9D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAFrB,IAAI,CAKhB"}
|
|
@@ -10,6 +10,46 @@
|
|
|
10
10
|
* @returns {boolean} true when the directory holds at least one C or C++ file
|
|
11
11
|
*/
|
|
12
12
|
export declare function hasCppSources(src: string, options?: Object): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The ports vcpkg installed into the `vcpkg_installed` directories of a
|
|
15
|
+
* project and its build trees, by lower-case port name.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} src project directory
|
|
18
|
+
* @param {Object} options CLI options, for the build-directory candidates
|
|
19
|
+
* @returns {Map<string, {version: string, triplet: string}>}
|
|
20
|
+
*/
|
|
21
|
+
export declare function installedVcpkgPorts(src: string, options?: Object): Map<string, {
|
|
22
|
+
version: string;
|
|
23
|
+
triplet: string;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Read a vcpkg manifest (vcpkg.json) in a directory: the project it describes
|
|
27
|
+
* and the ports it declares. A port's version comes from what vcpkg installed
|
|
28
|
+
* in the build tree when that is known, otherwise from the manifest's
|
|
29
|
+
* `overrides`, which pin it exactly. A `version>=` constraint is only a
|
|
30
|
+
* minimum, so it is kept as a property, never as the version.
|
|
31
|
+
* https://learn.microsoft.com/vcpkg/reference/vcpkg-json
|
|
32
|
+
*
|
|
33
|
+
* The read is cheap and runs no tool, so it does not wait for the atom-based
|
|
34
|
+
* analysis that getCppModules adds.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} src directory that may hold vcpkg.json
|
|
37
|
+
* @param {Object} [options] options
|
|
38
|
+
* @param {Map<string, {version: string, triplet: string}>} [options.installedPorts]
|
|
39
|
+
* ports vcpkg installed, by lower-case name
|
|
40
|
+
* @param {function(string): boolean} [options.isListed] whether another source
|
|
41
|
+
* already lists a port by that name
|
|
42
|
+
* @returns {{parentComponent: Object|undefined, pkgList: Object[]}}
|
|
43
|
+
*/
|
|
44
|
+
export declare function parseVcpkgManifest(src: string, options?: {
|
|
45
|
+
installedPorts?: Map<string, {
|
|
46
|
+
version: string;
|
|
47
|
+
triplet: string;
|
|
48
|
+
}>;
|
|
49
|
+
}): {
|
|
50
|
+
parentComponent: Object | undefined;
|
|
51
|
+
pkgList: Object[];
|
|
52
|
+
};
|
|
13
53
|
/**
|
|
14
54
|
* Method to find c/c++ modules by collecting usages with atom
|
|
15
55
|
*
|
|
@@ -24,19 +64,6 @@ export declare function hasCppSources(src: string, options?: Object): boolean;
|
|
|
24
64
|
*/
|
|
25
65
|
export declare function getCppModules(src: string, options: object, osPkgsList: array, epkgList: array, isFirstPartyHeader?: Function): {
|
|
26
66
|
parentComponent: Object | {
|
|
27
|
-
name: any;
|
|
28
|
-
version: any;
|
|
29
|
-
description: any;
|
|
30
|
-
license: any;
|
|
31
|
-
purl: any;
|
|
32
|
-
type: string;
|
|
33
|
-
"bom-ref": string;
|
|
34
|
-
group?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
description?: undefined;
|
|
37
|
-
license?: undefined;
|
|
38
|
-
purl?: undefined;
|
|
39
|
-
"bom-ref"?: undefined;
|
|
40
67
|
group: any;
|
|
41
68
|
name: any;
|
|
42
69
|
version: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cppEvidence.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cppEvidence.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cppEvidence.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cppEvidence.js"],"names":[],"mappings":"AA4MA;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAJtB,MAIsB,EAAE,OAAO,GAH/B,MAGoC,GAFlC,OAAO,CAOnB;AAID;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAJ5B,MAI4B,EAAE,OAAO,GAHrC,MAG0C,GAFxC,GAAG,CAAC,MAAM,EAAE;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAAC,CAsB3D;AAgCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAR3B,MAQ2B,EAAE,OAAO,AAP5C,CAGA,EAFA;IAAkE,cAAc,AAAhF,CAEA,EAFQ,GAAG,CAAC,MAAM,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC,CAEvD;CAIiD,GAFvC;IAAC,eAAe,EAAE,MAAM,GAAC,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,CA4JlE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAVM,MAUN,EACH,OAAO,EAVE,MAUF,EACP,UAAU,EAVD,KAUC,EACV,QAAQ,EAVC,KAUD,EACR,kBAAkB,WAAY;;;;;;;;;;;;EAmX/B"}
|
|
@@ -33,12 +33,13 @@ export declare function parseCIncludeSlices(sliceData: Object): Map<string, {
|
|
|
33
33
|
* line relative to the installed directory.
|
|
34
34
|
*
|
|
35
35
|
* @param {string[]} installedDirs `vcpkg_installed` directories
|
|
36
|
-
* @returns {Map<string, {port: string, version: string, triplet: string}>}
|
|
36
|
+
* @returns {Map<string, {port: string, version: string, triplet: string, portVersion?: string}>}
|
|
37
37
|
*/
|
|
38
38
|
export declare function readVcpkgInstalledIndex(installedDirs: string[]): Map<string, {
|
|
39
39
|
port: string;
|
|
40
40
|
version: string;
|
|
41
41
|
triplet: string;
|
|
42
|
+
portVersion?: string;
|
|
42
43
|
}>;
|
|
43
44
|
/**
|
|
44
45
|
* The package folders of a Conan 2 cache, from its database
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cppIncludeResolver.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cppIncludeResolver.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAYH;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,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ED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAJxB,MAIwB,EAAE,MAAM,EAHhC,MAAM,EAG0B,GAF9B;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAgBrD;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAd5C;IAAwB,GAAG,EAAnB,MAAM,CACd;IAA2B,UAAU,AAArC,CAGA,EAHQ,MAAM,EAAE,CAGhB;IAA2B,SAAS,AAApC,CAEA,EAFQ,MAAM,EAAE,CAEhB;CAQ4C,YA2F9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystems.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/ecosystems.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecosystems.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/ecosystems.js"],"names":[],"mappings":"AAmHA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,IAAK,CAAC;AAqDjC;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAH1C,MAAM,EAGoC,GAFxC,OAAO,CAAC,MAAM,EAAE,CAAC,CAmC7B;AA8LD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,OAAO,OAAA,EAAE,WAAW,AAPtD,CACA,EADQ,MAO8C,EAAE,OAAO,AAN/D,CAKF,EAJE;IAAyB,WAAW,AAApC,CAEA,EAFQ,MAAM,CAEd;IAA0B,UAAU,AAApC,CAEF,EAFU,OAAO,CAEjB;CACsE,kBAgItE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAL/B,MAK+B,EAAE,IAAI,EAJrC,MAIqC,EAAE,OAAO,EAH9C,MAG8C,GAF5C,MAAM,GAAC,IAAI,CAYvB;AAscD;;;;;;;;;;;;;;;;GAgBG;AACH,wB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YAAY,EAFvC,MAEuC,gBAiDjD;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,KAAK,QAAA,EAAE,IAAI,QAAA,EAAE,OAAO,AAFtD,CACF,QACwD,gBA6BxD;AAiND;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,OAAA,EAAE,OAAO,AAJrD,CAGF,EAFE;IAA0B,gBAAgB,AAA1C,CAEF,EAFU,OAAO,CAEjB;CAC4D,kBAmK5D;AA8GD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,OAAO,OAAA,EAAE,OAAO,AAJnD,CAGF,EAFE;IAA0B,UAAU,AAApC,CAEF,EAFU,OAAO,CAEjB;CAC0D,kBAwF1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAHtC,MAGsC,GAFpC,MAAM,GAAC,SAAS,CA6B5B;AAwDD;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EANpC,MAMoC,EAAE,OAAO,EAL7C,MAK6C,EAAE,YAAY,GAJ3D,MAIgE,kBAoe1E;AAkbD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,OAAA,EAAE,YAAY,QAAY;;;GA4IvE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The gem homes of a host, each a directory with a `specifications` directory.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} rootPath root directory
|
|
5
|
+
* @param {string} platform `linux`, `darwin` or `win32`
|
|
6
|
+
* @returns {string[]} absolute gem home directories
|
|
7
|
+
*/
|
|
8
|
+
export declare function findGemHomes(rootPath: string, platform: string): string[];
|
|
9
|
+
/**
|
|
10
|
+
* Inventory the gems of a host's gem homes. One component per distinct gem
|
|
11
|
+
* and version, with an occurrence for each gemspec it was read from, so no
|
|
12
|
+
* host path reaches a purl.
|
|
13
|
+
*
|
|
14
|
+
* @param {Object} [options] options
|
|
15
|
+
* @param {string} [options.rootPath="/"] root directory; tests point it at a built tree
|
|
16
|
+
* @param {string} [options.platform] `linux`, `darwin` or `win32`
|
|
17
|
+
* @param {function(string): (Object[]|undefined)} [options.executeOsQuery] runs
|
|
18
|
+
* an osquery query, for rpm ownership
|
|
19
|
+
* @param {Object[]} [options.packageComponents] the OS packages the scan has
|
|
20
|
+
* inventoried, which name the owners
|
|
21
|
+
* @param {Object} [options.packageDatabases] where the package databases are
|
|
22
|
+
* @returns {Promise<Object[]>} gem components
|
|
23
|
+
*/
|
|
24
|
+
export declare function probeHostRubyGems(options?: {
|
|
25
|
+
rootPath?: string;
|
|
26
|
+
platform?: string;
|
|
27
|
+
}): Promise<Object[]>;
|
|
28
|
+
//# sourceMappingURL=gemHostProbe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemHostProbe.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/gemHostProbe.js"],"names":[],"mappings":"AA+FA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAJ1B,MAI0B,EAAE,QAAQ,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CAmCpB;AAWD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,AAV5C,CAGA,EAFA;IAAyB,QAAQ,AAAjC,CACA,EADQ,MAAM,CACd;IAAyB,QAAQ,AAAjC,CACA,EADQ,MAAM,CACd;CAOiD,GAFvC,OAAO,CAAC,MAAM,EAAE,CAAC,CA6I7B"}
|
|
@@ -110,24 +110,58 @@ export declare function recordGradleInvocationFailure(result: Object, context?:
|
|
|
110
110
|
command?: string;
|
|
111
111
|
gradleVersion?: string;
|
|
112
112
|
}): void;
|
|
113
|
+
/**
|
|
114
|
+
* Read the properties of every project the dependency reports name that
|
|
115
|
+
* `gradleModules` does not have yet, such as a project of an included build,
|
|
116
|
+
* and add a module for each one whose properties task printed a report. One
|
|
117
|
+
* Gradle invocation covers all of them.
|
|
118
|
+
*
|
|
119
|
+
* @param {Iterable<string>} reports Text of the `gradle dependencies` reports
|
|
120
|
+
* @param {Map} gradleModules Modules keyed by project path, updated in place
|
|
121
|
+
* @param {string} gradleRootPath Directory to run Gradle in
|
|
122
|
+
* @param {Object} options CLI options
|
|
123
|
+
* @returns {Promise<string[]>} Paths of the projects added
|
|
124
|
+
*/
|
|
125
|
+
export declare function loadGradleModulesForReports(reports: Iterable<string>, gradleModules: Map<any, any>, gradleRootPath: string, options?: Object): Promise<string[]>;
|
|
126
|
+
/**
|
|
127
|
+
* Reconcile the copies of a component that several Gradle projects report.
|
|
128
|
+
* Every copy gets the strongest scope any project gave it, so a library one
|
|
129
|
+
* module only tests with stays required when another module compiles against
|
|
130
|
+
* it, and a dependency one project failed to resolve loses its failure
|
|
131
|
+
* properties when another project resolved it.
|
|
132
|
+
*
|
|
133
|
+
* @param {Object[]} pkgList Components from all the projects, updated in place
|
|
134
|
+
* @returns {Object[]} The same list
|
|
135
|
+
*/
|
|
136
|
+
export declare function reconcileGradleComponents(pkgList: Object[]): Object[];
|
|
113
137
|
/**
|
|
114
138
|
* Method to resolve dependencies from a gradle output
|
|
115
139
|
*
|
|
140
|
+
* A constraint line (`(c)`) adds neither a component nor an edge. Gradle
|
|
141
|
+
* prints a nested constraint under the platform or module that declares it,
|
|
142
|
+
* and only when the dependency it affects is resolved elsewhere in the tree,
|
|
143
|
+
* where that dependency gets its component and edges. A top-level
|
|
144
|
+
* `{strictly …}` constraint from consistent resolution can name a module the
|
|
145
|
+
* configuration never resolves. A dependency that failed to resolve carries
|
|
146
|
+
* `cdx:gradle:resolutionFailed`, keeps the version it was requested at when
|
|
147
|
+
* that is a concrete version, and otherwise records the request in
|
|
148
|
+
* `cdx:gradle:requestedVersion`. A dependency seen in several configurations
|
|
149
|
+
* keeps the strongest scope among them.
|
|
150
|
+
*
|
|
151
|
+
* The parser runs no Gradle task. A project the tree names but `gradleModules`
|
|
152
|
+
* lacks gets a component built from the root project's group and version; use
|
|
153
|
+
* `loadGradleModulesForReports` first to read such projects' properties.
|
|
154
|
+
*
|
|
116
155
|
* @param {string} rawOutput Text output from gradle dependencies task
|
|
117
|
-
* @param {string} rootProjectName
|
|
118
|
-
* @param {map} gradleModules
|
|
119
|
-
* @param {string} gradleRootPath
|
|
156
|
+
* @param {string} rootProjectName Key in `gradleModules` of the project the report belongs to
|
|
157
|
+
* @param {map} gradleModules Gradle modules keyed by project path, and the root project by its name
|
|
158
|
+
* @param {string} gradleRootPath Directory Gradle ran in, recorded as `cdx:gradle:GradleRootPath`
|
|
159
|
+
* @returns {{pkgList: Object[], dependenciesList: Object[]}|{}} The components and dependency graph
|
|
120
160
|
*/
|
|
121
|
-
export declare function parseGradleDep(rawOutput: string, rootProjectName?: string, gradleModules?: map, gradleRootPath?: string):
|
|
122
|
-
pkgList:
|
|
123
|
-
dependenciesList:
|
|
124
|
-
|
|
125
|
-
dependsOn: any[];
|
|
126
|
-
}[];
|
|
127
|
-
} | {
|
|
128
|
-
pkgList?: undefined;
|
|
129
|
-
dependenciesList?: undefined;
|
|
130
|
-
}>;
|
|
161
|
+
export declare function parseGradleDep(rawOutput: string, rootProjectName?: string, gradleModules?: map, gradleRootPath?: string): {
|
|
162
|
+
pkgList: Object[];
|
|
163
|
+
dependenciesList: Object[];
|
|
164
|
+
} | {};
|
|
131
165
|
/**
|
|
132
166
|
* Method that handles object creation for gradle modules.
|
|
133
167
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradleutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/gradleutils.js"],"names":[],"mappings":"AAyBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"gradleutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/gradleutils.js"],"names":[],"mappings":"AAyBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAyBpE,OAAO,EAAE,uBAAuB,EAAE,CAA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zC,MAGyC,GAFvC,MAAM,GAAC,IAAI,CA4BvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAJ7B,MAI6B,GAH3B,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CA2DpC;AAqBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EANC,MAMD,EACR,aAAa,AANZ,CAEA,EAFQ,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAMP,EACzB,OAAO,AALN,CACF,EADU,MAKG,QAoBb;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAJ5B,MAI4B,EAAE,QAAQ,EAHtC,MAGsC,EAAE,OAAO,AAFvD,CACF,EADU,MAEoD,UAmK9D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAH1C,MAG0C,GAFxC,MAAM,EAAE,CAoEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-bazel.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-bazel.js"],"names":[],"mappings":"AAgDA;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAHhC,MAGgC,GAF9B;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"parsers-bazel.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-bazel.js"],"names":[],"mappings":"AAgDA;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAHhC,MAGgC,GAF9B;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CAmGhF;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAHlC,MAGkC,GAFhC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAiDzD;AA+dD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAJrB,MAIqB,EAAE,IAAI,EAH3B,MAG2B,GAFzB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAC,MAAM,EAAE,CAAC,CAAC,CA2B/C"}
|
|
@@ -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":"parsers-js.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-js.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAubrC;;;;;;;;;;;;;GAaG;AACH,wBAAsB,YAAY,CAChC,WAAW,EAZF,MAYE,EACX,MAAM,AAZL,CAEA,EAFQ,OAYK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I,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"}
|
|
@@ -369,6 +369,25 @@ export declare function parseCmakeDotFile(dotFile: string, pkgType: string, opti
|
|
|
369
369
|
* @returns {Object} The component
|
|
370
370
|
*/
|
|
371
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
|
+
}>;
|
|
372
391
|
/**
|
|
373
392
|
* Parse a CMake-like build file (CMakeLists.txt, meson.build, etc.) and extract the
|
|
374
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;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EALvC,MAAM,WAAO,MAK0B,EAAE,OAAO,EAJhD,MAAM,EAI0C,EAAE,OAAO,EAHzD,MAAM,EAGmD,GAFvD,MAAM,EAAE,CAoEpB;AAmBD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CAmEpB;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAH7C,MAG6C,GAF3C,MAAM,EAAE,CA6DpB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAHlC,MAGkC,GAFhC,MAAM,EAAE,CAmEpB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,aAAa,EAH/B,MAG+B,GAF7B,MAAM,CAelB;AAaD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAHvB,MAGuB,GAFrB,MAAM,EAAE,CAiFpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAHhC,MAGgC,GAF9B,MAAM,EAAE,CAoDpB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAH7B,MAG6B,GAF3B,MAAM,EAAE,CA4BpB;A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oB,CAAC,cAAc,QAAA,EAAE,YAAY,AAH9D,CACA,EADQ,OAG6D,GAF3D,MAAM,CAYlB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EALjC,QAKiC,EAAE,IAAI,QAAA,EAAE,OAAO,EAHhD,MAGgD,GAF9C,MAAM,CAyDlB;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAND,MAMC,EACV,OAAO,EANE,MAMF,EACP,IAAI,AANH,CACA,QAKe,GALL,MAAM,CA0FlB;AA+BD;;GAEG;AACH,wBAAgB,yBAAyB,SAExC;AAID;;;;;;;;;;;;;;;GAeG;AACH,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
|
*
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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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AU,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
|
*
|
|
@@ -96,9 +114,9 @@ export declare function createUVLock(basePath: string, options: Object): void;
|
|
|
96
114
|
*/
|
|
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
|
-
dependenciesList?: undefined;
|
|
100
|
-
failedPkgList?: undefined;
|
|
101
117
|
rootList?: undefined;
|
|
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,GAFzD,MAAM,CAyLlB;AAyED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAHpC,MAGoC,GAFlC,MAAM,CA6BlB;AAgBD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAH3B,MAG2B,GAFzB,GAAG,CAAC,MAAM,CAAC,CAwCvB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAJ3B,MAI2B,EAAE,IAAI,EAHjC,MAGiC,GAF/B,OAAO,CA+BnB;AA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