@mablhq/mabl-cli 1.18.3 → 1.19.3
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/basicApiClient.js +7 -1
- package/api/mablApiClient.js +1 -1
- package/execution/index.js +1 -1
- package/package.json +1 -1
package/api/basicApiClient.js
CHANGED
|
@@ -130,7 +130,13 @@ class BasicApiClient {
|
|
|
130
130
|
return { ...result, entity_version: versionHeader };
|
|
131
131
|
}
|
|
132
132
|
async makePostRequest(path, requestBody, requestConfig) {
|
|
133
|
-
|
|
133
|
+
return this.postRequest(path, requestBody, this.getNonRetryableRequestConfig(requestConfig));
|
|
134
|
+
}
|
|
135
|
+
async makePostRequestWithRetries(path, requestBody, config) {
|
|
136
|
+
return this.retryWrappedRequest(`makePostRequestWithRetries('${path}')`, () => this.postRequest(path, requestBody, this.getRetryableRequestConfig(config)), config);
|
|
137
|
+
}
|
|
138
|
+
async postRequest(path, requestBody, config) {
|
|
139
|
+
const response = await this.debugRequest('POST', path, () => this.httpClient.post(path, requestBody, config));
|
|
134
140
|
BasicApiClient.checkResponseStatusCode(response);
|
|
135
141
|
return response.data;
|
|
136
142
|
}
|
package/api/mablApiClient.js
CHANGED
|
@@ -454,7 +454,7 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
|
|
|
454
454
|
context_id: contextId,
|
|
455
455
|
workspace_id: workspaceId,
|
|
456
456
|
};
|
|
457
|
-
return await this.
|
|
457
|
+
return await this.makePostRequestWithRetries(`${env_1.BASE_API_URL}/mailbox/address`, body);
|
|
458
458
|
}
|
|
459
459
|
catch (error) {
|
|
460
460
|
throw toApiError('Failed to create mailbox email address', error);
|