zarro 1.170.6 → 1.170.8
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.
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
if (!data || !seekKeys) {
|
|
37
37
|
return undefined;
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const setValues = seekKeys.filter(s => !!s);
|
|
40
|
+
const uniqueKeys = new Set(setValues);
|
|
40
41
|
for (let seek of uniqueKeys) {
|
|
41
42
|
const exactMatch = data[seek];
|
|
42
43
|
if (exactMatch) {
|
|
@@ -68,12 +69,18 @@
|
|
|
68
69
|
return source.name;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
+
if (!!process.env[env.NUGET_API_KEY] && looksLikeUrl(sourceToResolve)) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
log.warn(`Unable to match provided nuget push source '${sourceToResolve}' to the url or name of any registered source on this machine`);
|
|
72
76
|
log.warn(` known sources are:`);
|
|
73
77
|
for (const source of sources) {
|
|
74
78
|
log.warn(` ${source.name}: ${source.url} (${source.enabled ? "enabled" : "disabled"})`);
|
|
75
79
|
}
|
|
76
|
-
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
function looksLikeUrl(str) {
|
|
83
|
+
return !!str && str.includes("://");
|
|
77
84
|
}
|
|
78
85
|
function resolveSource(source) {
|
|
79
86
|
if (source) {
|