zarro 1.181.0 → 1.182.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.
|
@@ -788,6 +788,16 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
788
788
|
if (parsed.problems && parsed.problems.length) {
|
|
789
789
|
throw new ZarroError(`unable to perform package search (check your access token):\n${parsed.problems.join("\n")}`);
|
|
790
790
|
}
|
|
791
|
+
for (const result of parsed.searchResult || []) {
|
|
792
|
+
for (const pkg of result.packages || []) {
|
|
793
|
+
if (typeof pkg.version === "string") {
|
|
794
|
+
pkg.version = new Version(pkg.version);
|
|
795
|
+
}
|
|
796
|
+
if (typeof pkg.latestVersion === "string") {
|
|
797
|
+
pkg.latestVersion = new Version(pkg.latestVersion);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
791
801
|
return parsed;
|
|
792
802
|
}
|
|
793
803
|
async function searchPackages(options) {
|
|
@@ -804,6 +814,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
804
814
|
);
|
|
805
815
|
}
|
|
806
816
|
async function searchPackagesUncached(opts) {
|
|
817
|
+
var _a;
|
|
807
818
|
const args = ["package", "search"];
|
|
808
819
|
pushIfSet(args, opts.source, "--source");
|
|
809
820
|
pushFlag(args, opts.exactMatch, "--exact-match");
|
|
@@ -843,9 +854,13 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
843
854
|
const finalResult = [];
|
|
844
855
|
for (const sourceResult of parsed.searchResult) {
|
|
845
856
|
for (const pkg of sourceResult.packages) {
|
|
857
|
+
const version = (_a = pkg.latestVersion) !== null && _a !== void 0 ? _a : pkg.version;
|
|
858
|
+
if (!version) {
|
|
859
|
+
continue;
|
|
860
|
+
}
|
|
846
861
|
finalResult.push({
|
|
847
862
|
id: pkg.id,
|
|
848
|
-
version:
|
|
863
|
+
version: version,
|
|
849
864
|
source: sourceResult.sourceName
|
|
850
865
|
});
|
|
851
866
|
}
|