@robinmordasiewicz/f5xc-xcsh 6.41.0 → 6.42.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -45354,8 +45354,8 @@ function getLogoModeFromEnv(envPrefix) {
45354
45354
  var CLI_NAME = "xcsh";
45355
45355
  var CLI_FULL_NAME = "F5 Distributed Cloud Shell";
45356
45356
  function getVersion() {
45357
- if ("6.41.0") {
45358
- return "6.41.0";
45357
+ if ("6.42.0") {
45358
+ return "6.42.0";
45359
45359
  }
45360
45360
  if (process.env.XCSH_VERSION) {
45361
45361
  return process.env.XCSH_VERSION;
@@ -45821,6 +45821,9 @@ var APIClient = class {
45821
45821
  this._validationError = "No API token configured";
45822
45822
  return { valid: false, error: this._validationError };
45823
45823
  }
45824
+ if (this.debug) {
45825
+ console.error(`DEBUG: Validating token against ${this.serverUrl}`);
45826
+ }
45824
45827
  try {
45825
45828
  await this.get("/api/web/namespaces");
45826
45829
  this._isValidated = true;
@@ -45839,7 +45842,7 @@ var APIClient = class {
45839
45842
  this._validationError = `Validation failed: HTTP ${error.statusCode}`;
45840
45843
  }
45841
45844
  } else {
45842
- this._validationError = "Validation failed: Unknown error";
45845
+ this._validationError = `Validation failed: ${error instanceof Error ? error.message : "Unknown error"}`;
45843
45846
  }
45844
45847
  return { valid: false, error: this._validationError };
45845
45848
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinmordasiewicz/f5xc-xcsh",
3
- "version": "6.41.0",
3
+ "version": "6.42.0",
4
4
  "description": "F5 Distributed Cloud Shell - Interactive CLI for F5 XC",
5
5
  "type": "module",
6
6
  "bin": {