zarro 1.170.20 → 1.170.24
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.
|
@@ -397,10 +397,10 @@
|
|
|
397
397
|
path: absoluteNuspecPath,
|
|
398
398
|
version: await readNuspecVersion(absoluteNuspecPath)
|
|
399
399
|
};
|
|
400
|
-
log.warn(`
|
|
401
|
-
WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
402
|
-
The version in '${copy.nuspec}' will be temporarily set to ${opts.versionSuffix} whilst
|
|
403
|
-
packing and reverted later.
|
|
400
|
+
log.warn(`
|
|
401
|
+
WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
402
|
+
The version in '${copy.nuspec}' will be temporarily set to ${opts.versionSuffix} whilst
|
|
403
|
+
packing and reverted later.
|
|
404
404
|
`.trim());
|
|
405
405
|
await updateNuspecVersion(absoluteNuspecPath, opts.versionSuffix);
|
|
406
406
|
// TODO: hook into "after dotnet run" to revert
|
|
@@ -766,6 +766,10 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
766
766
|
pushFlag(args, opts.exactMatch, "--exact-match");
|
|
767
767
|
pushFlag(args, opts.preRelease, "--prerelease");
|
|
768
768
|
pushIfSet(args, opts.configFile, "--configfile");
|
|
769
|
+
const skip = opts.skip === undefined ? 0 : opts.skip;
|
|
770
|
+
const take = opts.take === undefined ? 1024 : opts.take;
|
|
771
|
+
args.push("--skip", `${skip}`);
|
|
772
|
+
args.push("--take", `${take}`);
|
|
769
773
|
args.push("--format", "json");
|
|
770
774
|
if (opts.search) {
|
|
771
775
|
args.push(opts.search);
|
|
@@ -779,7 +783,6 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
779
783
|
}
|
|
780
784
|
const allText = stdout.join(" "), parsed = JSON.parse(allText);
|
|
781
785
|
const finalResult = [];
|
|
782
|
-
const limit = opts.take || Number.MAX_VALUE;
|
|
783
786
|
for (const sourceResult of parsed.searchResult) {
|
|
784
787
|
for (const pkg of sourceResult.packages) {
|
|
785
788
|
finalResult.push({
|
|
@@ -796,12 +799,12 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
796
799
|
// 2. dotnet returns results in ascending version order
|
|
797
800
|
// - where the most useful, especially for paging, is reverse-ordered
|
|
798
801
|
finalResult.sort((a, b) => a.version.compareWith(b.version)).reverse();
|
|
799
|
-
|
|
802
|
+
// some registries don't honor paging (looking at you, GitHub)
|
|
800
803
|
if (skip > 0) {
|
|
801
804
|
finalResult.splice(0, skip);
|
|
802
805
|
}
|
|
803
|
-
if (finalResult.length >
|
|
804
|
-
finalResult.splice(
|
|
806
|
+
if (finalResult.length > take) {
|
|
807
|
+
finalResult.splice(take);
|
|
805
808
|
}
|
|
806
809
|
return finalResult;
|
|
807
810
|
}
|
|
@@ -822,6 +825,9 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
822
825
|
pushIfSet(args, opts.source, "--source");
|
|
823
826
|
pushIfSet(args, opts.packageDirectory, "--package-directory");
|
|
824
827
|
pushFlag(args, opts.preRelease, "--prerelease");
|
|
828
|
+
if (opts.suppressOutput === undefined) {
|
|
829
|
+
opts.suppressOutput = true;
|
|
830
|
+
}
|
|
825
831
|
await runDotNetWith(args, opts);
|
|
826
832
|
}
|
|
827
833
|
module.exports = {
|