azdo-cli 0.5.0-feature-tech-stack-030-auth-diagnostics.546 → 0.5.0-feature-fix-security-bugs.560

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.
@@ -413,6 +413,8 @@ var LoopbackListenerImpl = class {
413
413
  this.server = server;
414
414
  this.port = port;
415
415
  }
416
+ server;
417
+ port;
416
418
  active = null;
417
419
  awaitCallback(session, signal) {
418
420
  return new Promise((rResolve, rReject) => {
@@ -988,7 +990,7 @@ async function deletePat(org) {
988
990
  }
989
991
  try {
990
992
  const { unlinkSync: unlinkSync2 } = await import("fs");
991
- const { lockPath: lockPath2 } = await import("./oauth-token-refresh-7FQ4VAIS.js");
993
+ const { lockPath: lockPath2 } = await import("./oauth-token-refresh-DEDIDLNN.js");
992
994
  unlinkSync2(lockPath2(org));
993
995
  } catch {
994
996
  }
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import {
35
35
  tokenResponseToCredential,
36
36
  unsetConfigValue,
37
37
  unsetOrgScopedValue
38
- } from "./chunk-XVXMDWQE.js";
38
+ } from "./chunk-TY5KENBQ.js";
39
39
 
40
40
  // src/index.ts
41
41
  import { Command as Command17 } from "commander";
@@ -975,11 +975,18 @@ function parseSingleRemoteLine(line) {
975
975
  const url = urlEnd === -1 ? afterTab : afterTab.slice(0, urlEnd);
976
976
  return { remoteName, url };
977
977
  }
978
+ function decodePctSegment(segment) {
979
+ try {
980
+ return decodeURIComponent(segment);
981
+ } catch {
982
+ return segment;
983
+ }
984
+ }
978
985
  function matchAzdoRemote(remoteName, url) {
979
986
  for (const pattern of patterns) {
980
987
  const match = pattern.exec(url);
981
988
  if (!match) continue;
982
- const project = match[2];
989
+ const project = decodePctSegment(match[2]);
983
990
  if (/^DefaultCollection$/i.test(project)) return null;
984
991
  return { remoteName, org: match[1], project, hasEmbeddedSecret: httpsEmbeddedSecret.test(url) };
985
992
  }
@@ -5,7 +5,7 @@ import {
5
5
  lockPath,
6
6
  locksDir,
7
7
  refreshIfNeeded
8
- } from "./chunk-XVXMDWQE.js";
8
+ } from "./chunk-TY5KENBQ.js";
9
9
  export {
10
10
  _resetInFlight,
11
11
  classifyRefreshFailure,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azdo-cli",
3
- "version": "0.5.0-feature-tech-stack-030-auth-diagnostics.546",
3
+ "version": "0.5.0-feature-fix-security-bugs.560",
4
4
  "description": "Azure DevOps CLI tool",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,6 +30,9 @@
30
30
  "jimp": "^1.6.1",
31
31
  "node-html-markdown": "^2.0.0"
32
32
  },
33
+ "overrides": {
34
+ "esbuild": "^0.28.1"
35
+ },
33
36
  "devDependencies": {
34
37
  "@eslint/js": "^10.0.1",
35
38
  "@types/node": "^25.5.0",