Qualifiers are a map of string key-value pairs
This commit is contained in:
+1
-1
@@ -8,6 +8,6 @@ export default class ComponentDetection {
|
||||
private static getComponentDetectionParameters;
|
||||
static getManifestsFromResults(): Promise<Manifest[] | undefined>;
|
||||
private static getDependencyScope;
|
||||
private static makePackageUrl;
|
||||
static makePackageUrl(packageUrlJson: any): string;
|
||||
private static getLatestReleaseURL;
|
||||
}
|
||||
|
||||
+5
-2
@@ -23425,8 +23425,11 @@ class ComponentDetection {
|
||||
if (packageUrlJson.Version) {
|
||||
packageUrl += `@${packageUrlJson.Version}`;
|
||||
}
|
||||
if (packageUrlJson.Qualifiers) {
|
||||
packageUrl += `?${packageUrlJson.Qualifiers}`;
|
||||
if (packageUrlJson.Qualifiers !== null) {
|
||||
const qualifierString = Object.entries(packageUrlJson.Qualifiers)
|
||||
.map(([key, value]) => `${key}=${value}`)
|
||||
.join("&");
|
||||
packageUrl += `?${qualifierString}`;
|
||||
}
|
||||
return packageUrl;
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user