@mablhq/mabl-cli 2.70.27 → 2.70.33
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/api/mablApiClient.js +1 -11
- package/execution/index.js +1 -1
- package/mablscript/steps/AssertStep.js +2 -1
- package/package.json +1 -1
package/api/mablApiClient.js
CHANGED
|
@@ -12,22 +12,12 @@ const cliConfigProvider_1 = require("../providers/cliConfigProvider");
|
|
|
12
12
|
const basicApiClient_1 = require("./basicApiClient");
|
|
13
13
|
const query_string_1 = __importDefault(require("query-string"));
|
|
14
14
|
const featureSet_1 = require("./featureSet");
|
|
15
|
-
const AGENT_API_URL_DEV = 'https://api-dev.mabl.com';
|
|
16
|
-
const AGENT_API_URL_PROD = 'https://api.mabl.com';
|
|
17
15
|
class MablApiClient extends basicApiClient_1.BasicApiClient {
|
|
18
16
|
constructor(options) {
|
|
19
17
|
super(options);
|
|
20
18
|
this.baseApiUrl =
|
|
21
19
|
options.apiUrl ?? process.env.MABL_API_URL ?? env_1.BASE_API_URL;
|
|
22
|
-
|
|
23
|
-
this.baseApiAgentUrl = AGENT_API_URL_DEV;
|
|
24
|
-
}
|
|
25
|
-
else if (this.baseApiUrl.includes('api.internal')) {
|
|
26
|
-
this.baseApiAgentUrl = AGENT_API_URL_PROD;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this.baseApiAgentUrl = this.baseApiUrl;
|
|
30
|
-
}
|
|
20
|
+
this.baseApiAgentUrl = this.baseApiUrl;
|
|
31
21
|
}
|
|
32
22
|
async getPlan(planId) {
|
|
33
23
|
try {
|