You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
callback(result.tryMap{ metadata in metadata.readmeURL })
94
+
}
95
+
}
73
96
74
97
publicfunc findPackages(
75
98
_ query:String,
@@ -102,7 +125,10 @@ public struct PackageSearchClient {
102
125
}
103
126
}
104
127
105
-
// Interpret the given search term as a URL and fetch the corresponding Git repository to determine the available version tags and branches. If the search term cannot be interpreted as a URL or there are any errors during the process, we fall back to searching the configured index or package collections.
128
+
// Interpret the given search term as a URL and fetch the corresponding Git repository to
129
+
// determine the available version tags and branches. If the search term cannot be interpreted
130
+
// as a URL or there are any errors during the process, we fall back to searching the configured
@@ -134,23 +160,40 @@ public struct PackageSearchClient {
134
160
}
135
161
}
136
162
137
-
// If the given search term can be interpreted as a registry identity, try to get package metadata for it from the configured registry. If there are any errors or the search term does not work as a registry identity, we will fall back on `fetchStandalonePackageByURL`.
163
+
// If the given search term can be interpreted as a registry identity, try to get
164
+
// package metadata for it from the configured registry. If there are any errors
165
+
// or the search term does not work as a registry identity, we will fall back on
166
+
// `fetchStandalonePackageByURL`.
138
167
if isRegistryIdentity {
139
168
returnself.registryClient.getPackageMetadata(package: identity, observabilityScope: observabilityScope, callbackQueue:DispatchQueue.sharedConcurrent){ result in
0 commit comments