mobbdev 1.0.195 → 1.0.197

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.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6069,6 +6069,14 @@ var accountsZ = z16.object({
6069
6069
 
6070
6070
  // src/features/analysis/scm/ado/utils.ts
6071
6071
  var debug = Debug("mobbdev:scm:ado");
6072
+ function transformVisualStudioUrl(url) {
6073
+ const match = url.match(/^https:\/\/([^.]+)\.visualstudio\.com/i);
6074
+ if (match) {
6075
+ const orgName = match[1];
6076
+ return `https://dev.azure.com/${orgName}`;
6077
+ }
6078
+ return url;
6079
+ }
6072
6080
  function _getPublicAdoClient({
6073
6081
  orgName,
6074
6082
  origin: origin2
@@ -6177,7 +6185,7 @@ async function getAdoApiClient(params) {
6177
6185
  );
6178
6186
  }
6179
6187
  const connection2 = new api.WebApi(
6180
- orgUrl,
6188
+ transformVisualStudioUrl(orgUrl),
6181
6189
  api.getBearerHandler(params.accessToken),
6182
6190
  {}
6183
6191
  );
@@ -6186,7 +6194,7 @@ async function getAdoApiClient(params) {
6186
6194
  const authHandler = api.getPersonalAccessTokenHandler(params.accessToken);
6187
6195
  const isBroker = isBrokerUrl(orgUrl);
6188
6196
  const connection = new api.WebApi(
6189
- orgUrl,
6197
+ transformVisualStudioUrl(orgUrl),
6190
6198
  authHandler,
6191
6199
  isBroker ? {
6192
6200
  proxy: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.mjs",