@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.
- package/dist/index.js +6 -3
- 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.
|
|
45358
|
-
return "6.
|
|
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 =
|
|
45845
|
+
this._validationError = `Validation failed: ${error instanceof Error ? error.message : "Unknown error"}`;
|
|
45843
45846
|
}
|
|
45844
45847
|
return { valid: false, error: this._validationError };
|
|
45845
45848
|
}
|