zarro 1.181.0 → 1.183.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/gulp-tasks/modules/dotnet-cli.js +26 -2
- package/package.json +1 -1
- package/types.d.ts +1 -1
|
@@ -507,6 +507,15 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
507
507
|
if (!opts.apiKey) {
|
|
508
508
|
throw new ZarroError("apiKey was not specified");
|
|
509
509
|
}
|
|
510
|
+
const o = opts;
|
|
511
|
+
// the dotnet cli mentions --skip-duplicate, which makes
|
|
512
|
+
// sense for a single package, however, as an outer caller
|
|
513
|
+
// potentially acting on multiple packages will use the
|
|
514
|
+
// pluralized version, and since I've just spent 1/2 an hour
|
|
515
|
+
// figuring this out... let's add some boilerplating.
|
|
516
|
+
if (o.skipDuplicate !== undefined && o.skipDuplicates === undefined) {
|
|
517
|
+
o.skipDuplicates = o.skipDuplicate;
|
|
518
|
+
}
|
|
510
519
|
const args = [
|
|
511
520
|
"nuget",
|
|
512
521
|
"push",
|
|
@@ -525,7 +534,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
525
534
|
pushIfSet(args, opts.timeout, "--timeout");
|
|
526
535
|
pushFlag(args, opts.disableBuffering, "--disable-buffering");
|
|
527
536
|
pushFlag(args, opts.noSymbols, "--no-symbols");
|
|
528
|
-
pushFlag(args, opts.
|
|
537
|
+
pushFlag(args, opts.skipDuplicates, "--skip-duplicate");
|
|
529
538
|
pushFlag(args, opts.noServiceEndpoint, "--no-service-endpoint");
|
|
530
539
|
pushFlag(args, opts.forceEnglishOutput, "--force-english-output");
|
|
531
540
|
pushAdditionalArgs(args, opts);
|
|
@@ -788,6 +797,16 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
788
797
|
if (parsed.problems && parsed.problems.length) {
|
|
789
798
|
throw new ZarroError(`unable to perform package search (check your access token):\n${parsed.problems.join("\n")}`);
|
|
790
799
|
}
|
|
800
|
+
for (const result of parsed.searchResult || []) {
|
|
801
|
+
for (const pkg of result.packages || []) {
|
|
802
|
+
if (typeof pkg.version === "string") {
|
|
803
|
+
pkg.version = new Version(pkg.version);
|
|
804
|
+
}
|
|
805
|
+
if (typeof pkg.latestVersion === "string") {
|
|
806
|
+
pkg.latestVersion = new Version(pkg.latestVersion);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
791
810
|
return parsed;
|
|
792
811
|
}
|
|
793
812
|
async function searchPackages(options) {
|
|
@@ -804,6 +823,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
804
823
|
);
|
|
805
824
|
}
|
|
806
825
|
async function searchPackagesUncached(opts) {
|
|
826
|
+
var _a;
|
|
807
827
|
const args = ["package", "search"];
|
|
808
828
|
pushIfSet(args, opts.source, "--source");
|
|
809
829
|
pushFlag(args, opts.exactMatch, "--exact-match");
|
|
@@ -843,9 +863,13 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
843
863
|
const finalResult = [];
|
|
844
864
|
for (const sourceResult of parsed.searchResult) {
|
|
845
865
|
for (const pkg of sourceResult.packages) {
|
|
866
|
+
const version = (_a = pkg.latestVersion) !== null && _a !== void 0 ? _a : pkg.version;
|
|
867
|
+
if (!version) {
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
846
870
|
finalResult.push({
|
|
847
871
|
id: pkg.id,
|
|
848
|
-
version:
|
|
872
|
+
version: version,
|
|
849
873
|
source: sourceResult.sourceName
|
|
850
874
|
});
|
|
851
875
|
}
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1539,7 +1539,7 @@ declare global {
|
|
|
1539
1539
|
symbolApiKey?: string;
|
|
1540
1540
|
disableBuffering?: boolean;
|
|
1541
1541
|
noSymbols?: boolean;
|
|
1542
|
-
|
|
1542
|
+
skipDuplicates?: boolean;
|
|
1543
1543
|
noServiceEndpoint?: boolean;
|
|
1544
1544
|
forceEnglishOutput?: boolean;
|
|
1545
1545
|
source?: string;
|