@cdxgen/cdxgen 13.2.0 → 13.3.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 +28 -12
- package/bin/cdxgen.js +227 -119
- package/bin/evinse.js +5 -0
- package/bin/sign.js +88 -14
- package/bin/tracebom.js +64 -4
- package/bin/validate.js +29 -7
- package/bin/verify.js +79 -39
- package/data/remediations.json +24 -0
- package/lib/cli/bomAssembly.js +105 -15
- package/lib/cli/cliOptions.js +93 -1
- package/lib/cli/index.js +43 -4
- package/lib/cli/jsBom.js +49 -24
- package/lib/cli/jvmBom.js +46 -12
- package/lib/cli/managedBom.js +112 -41
- package/lib/cli/nativeBom.js +125 -14
- package/lib/core/env.js +5 -6
- package/lib/core/fs.js +174 -6
- package/lib/core/metadataProperties.js +97 -0
- package/lib/core/projectConfig.js +31 -4
- package/lib/ecosystems/bunutils.js +269 -101
- package/lib/ecosystems/caxa.js +434 -2
- package/lib/ecosystems/cmakeResolver.js +66 -0
- package/lib/ecosystems/cppEvidence.js +64 -31
- package/lib/ecosystems/ecosystems.js +19 -8
- package/lib/ecosystems/gradleutils.js +42 -7
- package/lib/ecosystems/jsEvidence.js +19 -20
- package/lib/ecosystems/kosi.js +10 -3
- package/lib/ecosystems/npmutils.js +110 -9
- package/lib/ecosystems/parsers-dotnet.js +51 -10
- package/lib/ecosystems/parsers-go.js +47 -9
- package/lib/ecosystems/parsers-js.js +171 -50
- package/lib/ecosystems/parsers-misc.js +747 -161
- package/lib/ecosystems/parsers-python.js +26 -14
- package/lib/ecosystems/parsers-rust.js +24 -18
- package/lib/ecosystems/rubyutils.js +1426 -166
- package/lib/ecosystems/rusi.js +32 -1
- package/lib/evinser/evinser.js +436 -128
- package/lib/evinser/swiftsem.js +1914 -302
- package/lib/helpers/bomSigner.js +652 -221
- package/lib/inventory/atomUtils.js +568 -31
- package/lib/inventory/cdxrs.js +103 -12
- package/lib/inventory/depsUtils.js +183 -11
- package/lib/inventory/display.js +4 -5
- package/lib/inventory/dosai.js +550 -13
- package/lib/inventory/dynamic.js +39 -1
- package/lib/inventory/evidenceUtils.js +14 -6
- package/lib/inventory/fetchBatch.js +116 -17
- package/lib/inventory/protobom.js +8 -1
- package/lib/inventory/purl.js +152 -3
- package/lib/inventory/sbomDocument.js +2 -70
- package/lib/inventory/source.js +37 -19
- package/lib/inventory/traceRunner.js +210 -21
- package/lib/managers/binary.js +115 -24
- package/lib/managers/docker.js +440 -20
- package/lib/managers/oci.js +39 -1
- package/lib/parsers/cmakeLists.js +452 -0
- package/lib/parsers/largeJson.js +454 -0
- package/lib/parsers/npmrc.js +19 -1
- package/lib/stages/postgen/postgen.js +68 -15
- package/lib/validator/bomValidator.js +6 -16
- package/lib/validator/index.js +48 -10
- package/lib/validator/reporters/console.js +3 -0
- package/lib/validator/reporters/json.js +1 -0
- package/lib/validator/reporters/sarif.js +7 -0
- package/package.json +20 -20
- package/types/lib/cli/bomAssembly.d.ts +2 -1
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +33 -1
- package/types/lib/cli/cliOptions.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/cli/jsBom.d.ts.map +1 -1
- package/types/lib/cli/jvmBom.d.ts.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/env.d.ts.map +1 -1
- package/types/lib/core/fs.d.ts +55 -0
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/metadataProperties.d.ts +39 -0
- package/types/lib/core/metadataProperties.d.ts.map +1 -0
- package/types/lib/core/projectConfig.d.ts +6 -2
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/ecosystems/bunutils.d.ts +12 -5
- package/types/lib/ecosystems/bunutils.d.ts.map +1 -1
- package/types/lib/ecosystems/caxa.d.ts +14 -0
- package/types/lib/ecosystems/caxa.d.ts.map +1 -1
- package/types/lib/ecosystems/cmakeResolver.d.ts +23 -0
- package/types/lib/ecosystems/cmakeResolver.d.ts.map +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +20 -4
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/jsEvidence.d.ts +5 -2
- package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/kosi.d.ts +13 -0
- package/types/lib/ecosystems/kosi.d.ts.map +1 -1
- package/types/lib/ecosystems/npmutils.d.ts +42 -0
- package/types/lib/ecosystems/npmutils.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-go.d.ts +10 -0
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-js.d.ts +10 -4
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +67 -3
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts +143 -2
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts +13 -0
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +59 -9
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +280 -15
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/helpers/bomSigner.d.ts +106 -13
- package/types/lib/helpers/bomSigner.d.ts.map +1 -1
- package/types/lib/inventory/atomUtils.d.ts +145 -3
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/cdxrs.d.ts +8 -3
- package/types/lib/inventory/cdxrs.d.ts.map +1 -1
- package/types/lib/inventory/depsUtils.d.ts +15 -0
- package/types/lib/inventory/depsUtils.d.ts.map +1 -1
- package/types/lib/inventory/display.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +64 -1
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dynamic.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/fetchBatch.d.ts.map +1 -1
- package/types/lib/inventory/plugins.d.ts.map +1 -1
- package/types/lib/inventory/protobom.d.ts.map +1 -1
- package/types/lib/inventory/purl.d.ts +71 -2
- package/types/lib/inventory/purl.d.ts.map +1 -1
- package/types/lib/inventory/sbomDocument.d.ts.map +1 -1
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/inventory/traceRunner.d.ts +47 -1
- package/types/lib/inventory/traceRunner.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +30 -1
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +29 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +14 -0
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/parsers/cmakeLists.d.ts +76 -0
- package/types/lib/parsers/cmakeLists.d.ts.map +1 -0
- package/types/lib/parsers/largeJson.d.ts +52 -0
- package/types/lib/parsers/largeJson.d.ts.map +1 -0
- package/types/lib/parsers/npmrc.d.ts +5 -0
- package/types/lib/parsers/npmrc.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
- package/types/lib/validator/index.d.ts +10 -1
- package/types/lib/validator/index.d.ts.map +1 -1
- package/types/lib/validator/reporters/console.d.ts.map +1 -1
- package/types/lib/validator/reporters/json.d.ts.map +1 -1
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -1
|
@@ -5,4 +5,18 @@
|
|
|
5
5
|
* @returns {Promise<Object>} Parsed metadata object.
|
|
6
6
|
*/
|
|
7
7
|
export declare function parseCaxaMetadata(mfile: string): Promise<Object>;
|
|
8
|
+
/**
|
|
9
|
+
* Complete caxa metadata from the application the binary extracts (or was
|
|
10
|
+
* built from): npm integrity from the lockfile pnpm or npm leaves in
|
|
11
|
+
* node_modules, the native tools a cdxgen plugins manifest describes, with
|
|
12
|
+
* their own dependencies, and the PHP, Ruby and Java packages vendored inside
|
|
13
|
+
* npm packages. Everything found is linked from the npm package whose
|
|
14
|
+
* directory contains it; npm packages that are not in the metadata are
|
|
15
|
+
* ignored.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} mdata Parsed caxa metadata (see parseCaxaMetadata)
|
|
18
|
+
* @param {string} appDir Directory of the extracted app
|
|
19
|
+
* @returns {Promise<Object>} The metadata, with components and dependencies added
|
|
20
|
+
*/
|
|
21
|
+
export declare function enrichCaxaMetadataFromApp(mdata: Object, appDir: string): Promise<Object>;
|
|
8
22
|
//# sourceMappingURL=caxa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caxa.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/caxa.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"caxa.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/caxa.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAHlC,MAGkC,GAFhC,OAAO,CAAC,MAAM,CAAC,CA0E3B;AAiXD;;;;;;;;;;;;GAYG;AACH,wBAAsB,yBAAyB,CAAC,KAAK,EAJ1C,MAI0C,EAAE,MAAM,EAHlD,MAGkD,GAFhD,OAAO,CAAC,MAAM,CAAC,CAyC3B"}
|
|
@@ -172,5 +172,28 @@ export declare function buildDependentPurl(resolvedUrl: string, version?: string
|
|
|
172
172
|
* @returns {Object[]} Components with one entry per package name, in first-seen order
|
|
173
173
|
*/
|
|
174
174
|
export declare function collapseCmakeVersions(pkgList: Object[]): Object[];
|
|
175
|
+
/**
|
|
176
|
+
* Keep one component per dependency downloaded at configure time.
|
|
177
|
+
*
|
|
178
|
+
* The same `FetchContent_Declare` may be read from several files, and a
|
|
179
|
+
* `find_package(<name>)` names the package a `FetchContent_Declare(<name>)` or
|
|
180
|
+
* `CPMAddPackage` fetches. Within the components scraped from CMake files, the
|
|
181
|
+
* first fetched component of each name stands for all of them, and a plain
|
|
182
|
+
* `find_package` entry of that name is dropped.
|
|
183
|
+
*
|
|
184
|
+
* @param {Object[]} pkgList Components scraped from CMake-like files
|
|
185
|
+
* @returns {Object[]} The components, in first-seen order
|
|
186
|
+
*/
|
|
187
|
+
export declare function preferFetchedCmakeDependencies(pkgList: Object[]): Object[];
|
|
188
|
+
/**
|
|
189
|
+
* Drop the components scraped from CMake files for a dependency the build tree
|
|
190
|
+
* has resolved: the gitclone script names the repository and tag that were
|
|
191
|
+
* really checked out, so its component replaces the declared one.
|
|
192
|
+
*
|
|
193
|
+
* @param {Object[]} pkgList Components collected so far
|
|
194
|
+
* @param {string} name Name of the resolved dependency
|
|
195
|
+
* @returns {Object[]} The components without the scraped entries for `name`
|
|
196
|
+
*/
|
|
197
|
+
export declare function withoutScrapedFetchDependency(pkgList: Object[], name: string): Object[];
|
|
175
198
|
export { GIT_COMMAND, toRepoRelative };
|
|
176
199
|
//# sourceMappingURL=cmakeResolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmakeResolver.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/cmakeResolver.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAWH,OAAO,EAEL,WAAW,EAEZ,MAAM,4BAA4B,CAAC;AAgBpC;;;;;;;;GAQG;AACH,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,CAAC,OAAO,EAJ1C,MAAM,EAIoC,EAAE,IAAI,EAHhD,MAGgD,GAF9C,MAAM,EAAE,CAapB;AAED,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -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":"AAwDA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EALtB,MAKsB,EAAE,OAAO,EAJ/B,MAI+B,EAAE,UAAU,EAH3C,KAG2C,EAAE,QAAQ,EAFrD,KAEqD;;;;;;;;;;;;;;;;;;;;;;;;;EAuT/D"}
|
|
@@ -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":"AAkGA,eAAO,IAAI,cAAc,IAAK,CAAC;AAY/B;;;;GAIG;AACH,wBAAgB,mBAAmB,SAElC;AAED;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAH1C,MAAM,EAGoC,GAFxC,OAAO,CAAC,MAAM,EAAE,CAAC,CAmC7B;AAyBD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,OAAO,OAAA,EAAE,WAAW,KAAA,kBAiGxD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAL/B,MAK+B,EAAE,IAAI,EAJrC,MAIqC,EAAE,OAAO,EAH9C,MAG8C,GAF5C,MAAM,GAAC,IAAI,CAmIvB;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,OAAO,OAAA,EACP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;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,OAAA,EAAE,OAAO,AAJrD,CAGF,EAFE;IAA0B,gBAAgB,AAA1C,CAEF,EAFU,OAAO,CAEjB;CAC4D,kBAiJ5D;AAkFD;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,OAAO,OAAA,kBAiE5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAHtC,MAGsC,GAFpC,MAAM,GAAC,SAAS,CA6B5B;AAED;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EANpC,MAMoC,EAAE,OAAO,EAL7C,MAK6C,EAAE,YAAY,GAJ3D,MAIgE,kBAyY1E;AAiND;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,OAAA,EAAE,YAAY,QAAY;;;GA2KvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"golem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/golem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"golem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/golem.js"],"names":[],"mappings":"AAyjDA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,OAAO,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAJ/B,MAI+B,GAH7B,MAAM,GAAC,SAAS,CAY5B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EALzB,MAKyB,EAAE,UAAU,EAJrC,MAIqC,EAAE,OAAO,AAHtD,CACA,EADQ,MAGmD,GAFjD,OAAO,CAmDnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAJ5B,MAI4B,EAAE,OAAO,AAH7C,CACA,EADQ,MAG0C,GAFxC,MAAM,GAAC,SAAS,CA2B5B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,AAL7C,CACA,EADQ,MAK0C,EAAE,UAAU,AAJ9D,CACA,EADQ,KAAK,CAAC,MAAM,CAI+C,GAHzD;IAAC,sBAAsB,2BAAgC;IAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,mBAAmB,0BAA0B;IAAC,cAAc,wBAAwB;IAAC,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,eAAe,wBAAuB;CAAC,CAsFpQ"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Method to return the gradle command to use.
|
|
3
3
|
*
|
|
4
|
+
* Project-local wrapper scripts (`gradlew`) are attacker-controlled files in
|
|
5
|
+
* the scanned project, so they are only used when dependency tooling is
|
|
6
|
+
* allowed (`options.installDeps !== false`); otherwise the system Gradle is
|
|
7
|
+
* used.
|
|
8
|
+
*
|
|
4
9
|
* @param {string} srcPath Path to look for gradlew wrapper
|
|
5
10
|
* @param {string|null} rootPath Root directory to look for gradlew wrapper
|
|
11
|
+
* @param {Object} [options] CLI options (`installDeps` gates wrapper use)
|
|
6
12
|
*/
|
|
7
|
-
export declare function getGradleCommand(srcPath: string, rootPath: string | null): string;
|
|
13
|
+
export declare function getGradleCommand(srcPath: string, rootPath: string | null, options?: Object): string;
|
|
8
14
|
/**
|
|
9
15
|
* Method to combine the general gradle arguments, the sub-commands and the sub-commands' arguments in the correct way
|
|
10
16
|
*
|
|
@@ -57,7 +63,7 @@ export declare function parseGradleProperties(rawOutput: string, gradleModuleNam
|
|
|
57
63
|
*
|
|
58
64
|
* @returns {string} The combined output for all subprojects of the Gradle properties task
|
|
59
65
|
*/
|
|
60
|
-
export declare function executeParallelGradleProperties(dir: string, allProjectsStr: array, extraArgs?: array): string;
|
|
66
|
+
export declare function executeParallelGradleProperties(dir: string, allProjectsStr: array, extraArgs?: array, options?: {}): string;
|
|
61
67
|
/**
|
|
62
68
|
* Forget the causes diagnosed so far, so a process that generates more than
|
|
63
69
|
* one BOM diagnoses each run on its own.
|
|
@@ -159,16 +165,26 @@ _includeCacheDir?: boolean): Promise<Object>;
|
|
|
159
165
|
/**
|
|
160
166
|
* Method to return the mill command to use.
|
|
161
167
|
*
|
|
168
|
+
* The project-local `mill` script is an attacker-controlled file in the
|
|
169
|
+
* scanned project, so it is only used when dependency tooling is allowed
|
|
170
|
+
* (`options.installDeps !== false`).
|
|
171
|
+
*
|
|
162
172
|
* @param {string} srcPath Path to look for mill wrapper
|
|
173
|
+
* @param {Object} [options] CLI options (`installDeps` gates wrapper use)
|
|
163
174
|
*/
|
|
164
|
-
export declare function getMillCommand(srcPath: string): string;
|
|
175
|
+
export declare function getMillCommand(srcPath: string, options?: Object): string;
|
|
165
176
|
/**
|
|
166
177
|
* Method to return the maven command to use.
|
|
167
178
|
*
|
|
179
|
+
* Project-local wrapper scripts (`mvnw`) are attacker-controlled files in the
|
|
180
|
+
* scanned project, so they are only used when dependency tooling is allowed
|
|
181
|
+
* (`options.installDeps !== false`); otherwise the installed Maven is used.
|
|
182
|
+
*
|
|
168
183
|
* @param {string} srcPath Path to look for maven wrapper
|
|
169
184
|
* @param {string} rootPath Root directory to look for maven wrapper
|
|
185
|
+
* @param {Object} [options] CLI options (`installDeps` gates wrapper use)
|
|
170
186
|
*/
|
|
171
|
-
export declare function getMavenCommand(srcPath: string, rootPath: string): string;
|
|
187
|
+
export declare function getMavenCommand(srcPath: string, rootPath: string, options?: Object): string;
|
|
172
188
|
/**
|
|
173
189
|
* Parse a Gradle version catalog (`gradle/libs.versions.toml`).
|
|
174
190
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradleutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/gradleutils.js"],"names":[],"mappings":"AAwCA
|
|
1
|
+
{"version":3,"file":"gradleutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/gradleutils.js"],"names":[],"mappings":"AAwCA;;;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MAMU;;;;;;;;;GAkPpB;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAJ1C,MAI0C,EAAE,QAAQ,EAHpD,MAGoD,GAFlD,MAAM,CAkDlB;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,gBAAgB,EAHjD,MAGiD,GAF/C,MAAM,CAkBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,MAAM,EAH5C,MAG4C,GAF1C,MAAM,CAuBlB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAHtC,MAGsC,GAFpC,MAAM,CA8ClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,yBAAyB,CAC7C,UAAU,EAPD,MAOC,EACV,SAAS,EAPA,MAOA,EACT,QAAQ,GAPC,OAOM,EAAE,qCAAqC;AACtD,gBAAgB,GAPP,OAOe,GANb,OAAO,CAAC,MAAM,CAAC,CAgC3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAH3B,MAG2B,EAAE,OAAO,AAF5C,CACF,EADU,MAEyC,UAcnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAJ5B,MAI4B,EAAE,QAAQ,EAHtC,MAGsC,EAAE,OAAO,AAFvD,CACF,EADU,MAEoD,UAsK9D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAH1C,MAG0C,GAFxC,MAAM,EAAE,CAoEpB"}
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* For each component, resolves its module aliases (including the deno jsr
|
|
5
5
|
* specifier), records imported/exported modules as properties, attaches
|
|
6
|
-
* occurrence evidence, and
|
|
7
|
-
* package is used
|
|
6
|
+
* occurrence evidence, and promotes the component scope to "required" when the
|
|
7
|
+
* package is used. A package with no observed usage keeps the scope its
|
|
8
|
+
* manifest parser assigned: static import analysis cannot see packages loaded
|
|
9
|
+
* from configuration, bundler entrypoints, stylesheets, or plugins, so a
|
|
10
|
+
* missing import is not evidence that a package is optional.
|
|
8
11
|
*
|
|
9
12
|
* @param {Array<object>} pkgList Package components to enrich.
|
|
10
13
|
* @param {object} allImports Map of import specifier to usage evidence objects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsEvidence.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/jsEvidence.js"],"names":[],"mappings":"AA0GA
|
|
1
|
+
{"version":3,"file":"jsEvidence.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/jsEvidence.js"],"names":[],"mappings":"AA0GA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EARE,KAAK,CAAC,MAAM,CAQd,EACP,UAAU,EARD,MAQC,EACV,UAAU,EARD,MAQC,EACV,IAAI,EARK,OAQL,GANO,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAiMlC"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the workspace component candidate for one kosi module.
|
|
3
|
+
*
|
|
4
|
+
* kosi derives module names from Gradle settings files, so a quoted literal
|
|
5
|
+
* (rootProject.name = 'KotlinGoat') rides into the reported purl. A purl
|
|
6
|
+
* cdx-purl rejects anchors nothing and must not reach the BOM: keep the
|
|
7
|
+
* reported purl when it parses, rebuild one from the cleaned coordinates
|
|
8
|
+
* when it does not, and return undefined when neither works.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object|undefined} workspaceModule One entry of kosi's modules[].
|
|
11
|
+
* @returns {Object|undefined} Component candidate with a valid purl, or undefined.
|
|
12
|
+
*/
|
|
13
|
+
export declare function kosiWorkspaceComponent(workspaceModule: Object | undefined): Object | undefined;
|
|
1
14
|
export declare function isKosiKotlinLanguage(language: any): boolean;
|
|
2
15
|
/**
|
|
3
16
|
* True when kosi is disabled by CDXGEN_KOSI_DISABLE (1/all/true) or --no-kosi.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosi.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/kosi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kosi.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/kosi.js"],"names":[],"mappings":"AAoCA;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,eAAe,EAH3C,MAAM,GAAC,SAGoC,GAFzC,MAAM,GAAC,SAAS,CAwB5B;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,KAAA,WAE5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,QAQ3B;AA6DD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAJ3B,MAI2B,EAAE,OAAO,GAHpC,MAGyC,GAFvC,MAAM,GAAC,SAAS,CAkD5B;AA0BD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,KAAA,EAAE,SAAS,KAAA,OA4B/C;AAusBD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,KAAK,EAAE,WAAW,KAAK,MAsEpE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,GAJvC,MAI4C,EAAE,WAAW,GAHzD,MAG8D,GAF5D,MAAM,CAoFlB;AAiCD,wBAAgB,mBAAmB,CAAC,UAAU,KAAK,EAAE,UAAU,QAAK;;;;;;;EA2DnE"}
|
|
@@ -19,6 +19,48 @@ export declare function setNpmOptionalProperty(pkg: object): void;
|
|
|
19
19
|
* @returns {void}
|
|
20
20
|
*/
|
|
21
21
|
export declare function setNpmPeerProperty(pkg: object): void;
|
|
22
|
+
/**
|
|
23
|
+
* Marks an npm component as imported only for its TypeScript types.
|
|
24
|
+
*
|
|
25
|
+
* @param {object} pkg Component object to annotate
|
|
26
|
+
* @returns {void}
|
|
27
|
+
*/
|
|
28
|
+
export declare function setNpmTypeOnlyProperty(pkg: object): void;
|
|
29
|
+
/**
|
|
30
|
+
* Clean an npm version the way `npm publish` does before it records a release.
|
|
31
|
+
*
|
|
32
|
+
* Publishing a directory runs the manifest through `npm pkg fix`
|
|
33
|
+
* (`fixVersionField` in `@npmcli/package-json`, which calls `semver.clean` in
|
|
34
|
+
* loose mode) and then through libnpmpublish, which calls `semver.clean` again
|
|
35
|
+
* in strict mode and records the result as the packument version, the
|
|
36
|
+
* dist-tag, the `_id` and the tarball file name. Semver build metadata
|
|
37
|
+
* (`1.0.0+build.5`), a leading `v` or `=`, surrounding whitespace and leading
|
|
38
|
+
* zeros are dropped; a prerelease is kept.
|
|
39
|
+
*
|
|
40
|
+
* The `package.json` inside the published tarball keeps the original string,
|
|
41
|
+
* and so do the lockfiles npm, pnpm, yarn and bun write for a project, a
|
|
42
|
+
* workspace member or a git, file or link dependency. The cleaned form is the
|
|
43
|
+
* version the npm registry knows the package by.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} version Version as a manifest or lockfile records it
|
|
46
|
+
* @returns {string|null} The cleaned version, or null when npm would reject `version` as invalid semver
|
|
47
|
+
*/
|
|
48
|
+
export declare function cleanNpmVersion(version: string): string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Record the version npm would publish when it differs from the recorded one.
|
|
51
|
+
*
|
|
52
|
+
* Sets `cdx:npm:cleanedVersion` on an npm component whose version is valid
|
|
53
|
+
* semver but not in the form {@link cleanNpmVersion} produces, for example
|
|
54
|
+
* `1.0.0+build.5` (published as `1.0.0`). The component's `version` and `purl`
|
|
55
|
+
* keep the recorded string: that is what the manifest and lockfile say. A
|
|
56
|
+
* component whose version is already clean, or not semver at all (a git
|
|
57
|
+
* commit, a `file:` path), is left without the property, and a stale value from
|
|
58
|
+
* an earlier pass is replaced.
|
|
59
|
+
*
|
|
60
|
+
* @param {object} component Component or package object with `version` and `purl`
|
|
61
|
+
* @returns {object} The same component, for chaining
|
|
62
|
+
*/
|
|
63
|
+
export declare function setNpmCleanedVersionProperty(component: object): object;
|
|
22
64
|
/**
|
|
23
65
|
* Helper function to create a properly encoded workspace PURL
|
|
24
66
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npmutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/npmutils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"npmutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/npmutils.js"],"names":[],"mappings":"AA8CA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAHlC,MAGkC,GAFhC,IAAI,CAgBhB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAH/B,MAG+B,GAF7B,IAAI,CAIhB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAH3B,MAG2B,GAFzB,IAAI,CAIhB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAH/B,MAG+B,GAF7B,IAAI,CAIhB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAH5B,MAG4B,GAF1B,MAAM,GAAC,IAAI,CAWvB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAH3C,MAG2C,GAFzC,MAAM,CA6BlB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAJvC,MAIuC,EAAE,OAAO,EAHhD,MAGgD,GAF9C,MAAM,CA2BlB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,iBAAiB,EAJ/C,MAAM,EAAE,GAAG,SAIoC,EAAE,WAAW,EAH5D,MAG4D,GAF1D,MAAM,GAAG,SAAS,CAmB9B;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAHnC,MAAM,GAAG,SAAS,GAAG,IAGc,GAFjC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MA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,GAXN,MAWW,EACpB,gBAAgB,UAAQ,EACxB,yBAAyB,GAXhB,MAWqB,EAC9B,eAAe,GAXN,MAWW,GART,MAAM,CAiflB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAJrC,MAIqC,EAAE,cAAc,EAHrD,MAGqD,GAFnD;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,MAAM,EAAE,CAAA;CAAE,CAuP7D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAJlC,MAIkC,EAAE,WAAW,EAH/C,MAG+C,GAF7C;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAkHjF;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAJrC,MAIqC,EAAE,WAAW,EAHlD,MAGkD,GAFhD;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,MAAM,EAAE,CAAA;CAAE,CAyH7D"}
|
|
@@ -66,6 +66,16 @@ export declare function parseGoModGraph(rawOutput: string, goModFile: string, go
|
|
|
66
66
|
* @returns {string|undefined} package name or none
|
|
67
67
|
*/
|
|
68
68
|
export declare function parseGoModWhy(rawOutput: string): string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Reports whether `go mod why -m` output says the main module does not need
|
|
71
|
+
* the module. go prints `(main module does not need module X)`, or
|
|
72
|
+
* `(main module does not need to vendor module X)` with `-vendor`, and exits
|
|
73
|
+
* with status 0 either way.
|
|
74
|
+
*
|
|
75
|
+
* @param {string} rawOutput Output from go mod why
|
|
76
|
+
* @returns {boolean} True when go reports the module as not needed
|
|
77
|
+
*/
|
|
78
|
+
export declare function isGoModWhyNotNeeded(rawOutput: string): boolean;
|
|
69
79
|
/**
|
|
70
80
|
* Parse go sum data
|
|
71
81
|
* @param {string} gosumData Content of go.sum
|
|
@@ -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":"AAgCA;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EANlC,MAMkC,EAAE,IAAI,EALxC,MAKwC,EAAE,OAAO,EAJjD,MAIiD,EAAE,IAAI,EAHvD,MAGuD,GAFrD,OAAO,CAAC,MAAM,CAAC,CAqD3B;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,SAAS,QAAA,EAAE,QAAQ,EAJ7C,MAI6C,GAF3C,MAAM,CA2ClB;AAkHD;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAJpC,MAIoC,EAAE,QAAQ,EAH9C,MAG8C,GAF5C,OAAO,CAAC,MAAM,EAAE,CAAC,CA6B7B;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAJnC,MAImC,EAAE,QAAQ,EAH7C,MAG6C;;;GAuHvD;AA6CD;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,SAAS,EATA,MASA,EACT,SAAS,EATA,MASA,EACT,QAAQ,EATC,MASD,EACR,QAAQ,QAAK,EACb,eAAe,GATN,MASW;;;;;;;;GAwMrB;AAED;;;;;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;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAHnC,MAGmC,kBA6B7C;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAHnC,MAGmC,GAFjC,OAAO,CAAC,MAAM,EAAE,CAAC,CAiD7B;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CAAC,aAAa,EAH3C,MAG2C,GAFzC,OAAO,CAAC,MAAM,EAAE,CAAC,CAkC7B"}
|
|
@@ -62,12 +62,15 @@ export declare function yarnLockToIdentMap(lockData: string): {};
|
|
|
62
62
|
* @param {Object} parentComponent parent component
|
|
63
63
|
* @param {Array[String]} workspacePackages Workspace packages
|
|
64
64
|
* @param {Object} workspaceSrcFiles Workspace package.json files
|
|
65
|
-
* @param {Object}
|
|
65
|
+
* @param {Object} workspaceDirectDeps Declared dependencies (name to range) of each workspace package
|
|
66
66
|
* @param {Object} depsWorkspaceRefs Workspace references for each dependency
|
|
67
67
|
*/
|
|
68
|
-
export declare function parseYarnLock(yarnLockFile: string, parentComponent?: Object, workspacePackages?: any, workspaceSrcFiles?: Object,
|
|
68
|
+
export declare function parseYarnLock(yarnLockFile: string, parentComponent?: Object, workspacePackages?: any, workspaceSrcFiles?: Object, workspaceDirectDeps?: Object, depsWorkspaceRefs?: Object): Promise<{
|
|
69
69
|
pkgList: any[];
|
|
70
|
-
dependenciesList:
|
|
70
|
+
dependenciesList: {
|
|
71
|
+
ref: string;
|
|
72
|
+
dependsOn: any[];
|
|
73
|
+
}[];
|
|
71
74
|
}>;
|
|
72
75
|
/**
|
|
73
76
|
* Parse nodejs shrinkwrap deps file
|
|
@@ -103,7 +106,10 @@ export declare function stripPnpmPeerSuffix(version: string): string;
|
|
|
103
106
|
* {@link stripPnpmPeerSuffix}.
|
|
104
107
|
*
|
|
105
108
|
* @param {string|object} depPkg Dependency version string or package object.
|
|
106
|
-
* @param {string} relativePath Base path for resolving link/file references
|
|
109
|
+
* @param {string} relativePath Base path for resolving link/file references:
|
|
110
|
+
* the directory of the importer that declares the dependency. Without it the
|
|
111
|
+
* path is tried against the working directory, which only works when cdxgen
|
|
112
|
+
* runs from the lock file's directory.
|
|
107
113
|
* @returns {Promise<string|undefined>} The resolved published version.
|
|
108
114
|
*/
|
|
109
115
|
export declare function getVersionNumPnpm(depPkg: string | object, relativePath: string): Promise<string | undefined>;
|
|
@@ -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;AA0arC;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,WAAW,EATF,MASE,EACX,MAAM,AATL,CAEA,EAFQ,OASK,EACd,aAAa,AARZ,CAEA,EAFQ,OAQY,GANV,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CA+OlC;AA0CD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAJhC,MAIgC,EAAE,KAAK,EAHvC,MAGuC,GAFrC,MAAM,CASlB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAHpC,MAGoC,GAFlC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAC,GAAC,IAAI,CA6BjF;AA+ED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAHnC,MAGmC,EAAE,OAAO,GAF5C,MAEiD;;;
|
|
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;AA0arC;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,WAAW,EATF,MASE,EACX,MAAM,AATL,CAEA,EAFQ,OASK,EACd,aAAa,AARZ,CAEA,EAFQ,OAQY,GANV,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CA+OlC;AA0CD;;;;;;;;;GASG;A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AAgB,CAAC,aAAa,QAAA,GAFjC,KAAK,QAAQ,CA4CzB"}
|
|
@@ -311,8 +311,6 @@ export declare function parseSwiftResolved(resolvedFile: string): {
|
|
|
311
311
|
name: any;
|
|
312
312
|
group: any;
|
|
313
313
|
version: any;
|
|
314
|
-
purl: string;
|
|
315
|
-
"bom-ref": string;
|
|
316
314
|
properties: {
|
|
317
315
|
name: string;
|
|
318
316
|
value: string;
|
|
@@ -329,6 +327,55 @@ export declare function parseSwiftResolved(resolvedFile: string): {
|
|
|
329
327
|
};
|
|
330
328
|
};
|
|
331
329
|
}[];
|
|
330
|
+
/**
|
|
331
|
+
* Identify the targets of a Swift package that are part of what it ships.
|
|
332
|
+
*
|
|
333
|
+
* Production targets are the non-test targets that are part of a product,
|
|
334
|
+
* executables, macros, plugins, targets nothing else depends on, and every
|
|
335
|
+
* target they depend on. The remaining non-test targets only serve tests,
|
|
336
|
+
* such as snapshot or fixture helper libraries.
|
|
337
|
+
*
|
|
338
|
+
* @param {Object} dumpJson `swift package dump-package` document
|
|
339
|
+
* @returns {Set<string>} Lowercase names of the production targets
|
|
340
|
+
*/
|
|
341
|
+
export declare function collectSwiftProductionTargets(dumpJson: Object): Set<string>;
|
|
342
|
+
/**
|
|
343
|
+
* Classify the dependencies of a Swift package into the packages its shipped
|
|
344
|
+
* code needs and the packages only its tests need.
|
|
345
|
+
*
|
|
346
|
+
* Production targets are the non-test targets that are part of a product,
|
|
347
|
+
* executables, macros, plugins, targets nothing else depends on, and every
|
|
348
|
+
* target they depend on. The remaining non-test targets only serve tests
|
|
349
|
+
* (test-support libraries). A package is test-only when only test and
|
|
350
|
+
* test-support targets reference its products or use its plugins. With the dependency graph from
|
|
351
|
+
* `swift package show-dependencies`, the packages reachable only through
|
|
352
|
+
* test-only packages are test-only as well; a package reachable from a
|
|
353
|
+
* production dependency, or from a declared dependency no target references,
|
|
354
|
+
* stays required.
|
|
355
|
+
*
|
|
356
|
+
* Target dependencies reference products either as
|
|
357
|
+
* `{"product": [name, package]}` or `{"byName": [name]}`; SwiftPM resolves a
|
|
358
|
+
* `byName` product through the package of the same name. When a production
|
|
359
|
+
* `byName` reference names neither a local target nor a package, the
|
|
360
|
+
* classification is abandoned rather than risking a required package being
|
|
361
|
+
* scoped optional.
|
|
362
|
+
*
|
|
363
|
+
* @param {Object|String} dumpJson `swift package dump-package` document, parsed or as text
|
|
364
|
+
* @param {Object|String} [treeJson] `swift package show-dependencies --format json` document, parsed or as text
|
|
365
|
+
* @returns {Object} `{ optionalRefs, requiredRefs, optionalNames, requiredNames }`:
|
|
366
|
+
* bom-refs from the dependency graph, and lowercase package identities,
|
|
367
|
+
* names, and repository names (the only result without a graph)
|
|
368
|
+
*/
|
|
369
|
+
export declare function classifySwiftDependencyScopes(dumpJson: Object | string, treeJson?: Object | string): Object;
|
|
370
|
+
/**
|
|
371
|
+
* Decide whether a dump-package target is a test target. The `type` field is
|
|
372
|
+
* usually the string `"test"`, but manifest APIs have also been observed
|
|
373
|
+
* representing it as an object.
|
|
374
|
+
*
|
|
375
|
+
* @param {Object} atarget dump-package target
|
|
376
|
+
* @returns {boolean} `true` for test targets
|
|
377
|
+
*/
|
|
378
|
+
export declare function isSwiftTestTarget(atarget: Object): boolean;
|
|
332
379
|
/**
|
|
333
380
|
* Parse a CMake-generated dot/graphviz file and extract components and their dependency
|
|
334
381
|
* relationships.
|
|
@@ -347,12 +394,29 @@ export declare function parseCmakeDotFile(dotFile: string, pkgType: string, opti
|
|
|
347
394
|
pkgList: Object[];
|
|
348
395
|
dependenciesList: Object[];
|
|
349
396
|
};
|
|
397
|
+
/**
|
|
398
|
+
* The component for a dependency a CMake file downloads at configure time
|
|
399
|
+
* (`FetchContent_Declare`, `ExternalProject_Add`, `CPMAddPackage`).
|
|
400
|
+
*
|
|
401
|
+
* A git repository becomes a `github` purl, or a `generic` one with a
|
|
402
|
+
* `vcs_url`, at its tag or commit. A GitHub archive URL becomes a `github` purl
|
|
403
|
+
* at the ref it names. Any other URL becomes a `generic` purl with a
|
|
404
|
+
* `download_url`, and a `URL_HASH` becomes a hash. A version that still holds an
|
|
405
|
+
* unresolved `${VAR}` is left out rather than published.
|
|
406
|
+
*
|
|
407
|
+
* @param {Object} dep Dependency facts from `cmakeFetchDependencies`
|
|
408
|
+
* @param {string} srcFile The CMake file the dependency was read from
|
|
409
|
+
* @returns {Object} The component
|
|
410
|
+
*/
|
|
411
|
+
export declare function cmakeFetchDependencyComponent(dep: Object, srcFile: string): Object;
|
|
350
412
|
/**
|
|
351
413
|
* Parse a CMake-like build file (CMakeLists.txt, meson.build, etc.) and extract the
|
|
352
414
|
* parent component and list of dependency packages.
|
|
353
415
|
*
|
|
354
416
|
* Handles `set`, `project`, `find_package`, `find_library`, `find_dependency`,
|
|
355
|
-
* `find_file
|
|
417
|
+
* `find_file` and `dependency()` directives (CMake command names in any case),
|
|
418
|
+
* and, for CMake files, the dependencies downloaded at configure time by
|
|
419
|
+
* `FetchContent_Declare`, `ExternalProject_Add` and `CPMAddPackage`.
|
|
356
420
|
* Uses the MesonWrapDB to improve name resolution confidence.
|
|
357
421
|
*
|
|
358
422
|
* @param {string} cmakeListFile Path to the CMake-like build file
|
|
@@ -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":"AA6DA;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,KAAA,EAAE,QAAQ,KAAA,GAF/C,MAAM,CAuElB;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;;;;;;;;;;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B,8BAA4B,SAAS,CAoDjD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,QAAA,GAFvB,MAAM,CAoBlB;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAJvC,MAIuC,EAAE,WAAW,QAAA,iBA6I9D;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EALG,MAKH,EACN,eAAe,eAAA,EACf,MAAM,AALL,CACF,QAImB,QA0BnB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,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;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB,CAAC,YAAY,EAJ7C,KAAK,CAAC,MAAM,CAIiC,GAF3C,OAAO,CAAC,IAAI,CAAC,CA4CzB;AAqUD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAHpC,MAGoC,GAFlC,MAAM,EAAE,CAoHpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-python.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-python.js"],"names":[],"mappings":"AAiEA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,QAAA;;;cAqB9C;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,QAAQ,EAFpC,MAEoC,
|
|
1
|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BAAgB,CAAC,eAAe,EAHrC,MAGqC,GAFnC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CA8C1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-rust.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-rust.js"],"names":[],"mappings":"AAisBA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACtC,aAAa,QAAA,EACb,MAAM,GAPG,OAOK,EACd,WAAW,GAPF,MAOO,EAChB,OAAO,KAAK,SAuQb;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,aAAa,QAAA,EACb,MAAM,GAPG,OAOK,EACd,WAAW,GAPF,MAOO,SAyGjB;AAgCD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,aAAa,EAJnD,MAImD,EAAE,OAAO,AAHpE,CACA,EADQ,MAGiE,GAF/D,MAAM,EAAE,CAsIpB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAH3C,MAG2C,GAFzC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"parsers-rust.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/parsers-rust.js"],"names":[],"mappings":"AAisBA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACtC,aAAa,QAAA,EACb,MAAM,GAPG,OAOK,EACd,WAAW,GAPF,MAOO,EAChB,OAAO,KAAK,SAuQb;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,aAAa,QAAA,EACb,MAAM,GAPG,OAOK,EACd,WAAW,GAPF,MAOO,SAyGjB;AAgCD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,aAAa,EAJnD,MAImD,EAAE,OAAO,AAHpE,CACA,EADQ,MAGiE,GAF/D,MAAM,EAAE,CAsIpB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,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ACL,WAAW,EACX,gBAAqB,EACrB,gBAA4B,GAC7B,EAbE;IAAqB,QAAQ,EAArB,MAAM,CACd;IAAqB,KAAK,EAAlB,MAAM,CACd;IAAqB,WAAW,EAAxB,MAAM,CACd;IAAwB,gBAAgB,AAAxC,CACA,EADQ,MAAM,EAAE,CAChB;IAA2B,gBAAgB,AAA3C,CACA,EADQ,GAAG,CAAC,MAAM,CAAC,CACnB;CAQF,GARY;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAC,CA2FrE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,EALlD,GAAG,CAAC,MAAM,EAAE,MAAM,CAKgC,EAAE,KAAK,EAJzD,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAIgC,EAAE,MAAM,EAHjE,GAAG,CAAC,MAAM,EAAE,MAAM,CAG+C,GAF/D;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CAwJ1D;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAAC,SAAS,EAH5C,MAG4C,GAF1C,OAAO,CAAC,MAAM,EAAE,CAAC,CA4B7B"}
|
|
@@ -71,9 +71,9 @@ export declare function createUVLock(basePath: string, options: Object): void;
|
|
|
71
71
|
*/
|
|
72
72
|
export declare function getPipFrozenTree(basePath: string, reqOrSetupFile: string, tempVenvDir: string, parentComponent: Object, projectRoot: any, getTreeWithPluginFn: any): Object;
|
|
73
73
|
export declare function getPipTreeForPackages(basePath: any, pkgList: any, tempVenvDir: any, parentComponent: any, getTreeWithPluginFn: any): {
|
|
74
|
+
dependenciesList?: undefined;
|
|
74
75
|
failedPkgList?: undefined;
|
|
75
76
|
rootList?: undefined;
|
|
76
|
-
dependenciesList?: undefined;
|
|
77
77
|
} | {
|
|
78
78
|
failedPkgList: any[];
|
|
79
79
|
rootList: {
|