mobbdev 0.0.152 → 0.0.155
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/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -386,6 +386,8 @@ var getIssueType = (issueType) => {
|
|
|
386
386
|
return "Value Never Read";
|
|
387
387
|
case "VALUE_SHADOWING" /* ValueShadowing */:
|
|
388
388
|
return "Value Shadowing";
|
|
389
|
+
case "ERRONEOUS_STRING_COMPARE" /* ErroneousStringCompare */:
|
|
390
|
+
return "Erroneous String Compare";
|
|
389
391
|
default: {
|
|
390
392
|
return issueType ? issueType.replaceAll("_", " ") : "Other";
|
|
391
393
|
}
|
|
@@ -1942,6 +1944,7 @@ var SCMLib = class {
|
|
|
1942
1944
|
}
|
|
1943
1945
|
case "ADO" /* ADO */: {
|
|
1944
1946
|
const scm = new AdoSCMLib(trimmedUrl, accessToken, scmOrg);
|
|
1947
|
+
await scm.getAdoSdk();
|
|
1945
1948
|
await scm.validateParams();
|
|
1946
1949
|
return scm;
|
|
1947
1950
|
}
|
|
@@ -2851,7 +2854,7 @@ async function getAdoApiClient(params) {
|
|
|
2851
2854
|
}
|
|
2852
2855
|
const orgUrl = `${origin2}/${orgName}`;
|
|
2853
2856
|
if (params.tokenType === "OAUTH" /* OAUTH */) {
|
|
2854
|
-
if (isAdoOnCloud(origin2)) {
|
|
2857
|
+
if (!isAdoOnCloud(origin2)) {
|
|
2855
2858
|
throw new Error(
|
|
2856
2859
|
`Oauth token is not supported for ADO on prem - ${origin2} `
|
|
2857
2860
|
);
|