@mailmodo/cli 0.0.41-beta.pr44.69 → 0.0.41
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.
|
@@ -113,7 +113,7 @@ export default class Contacts extends BaseCommand {
|
|
|
113
113
|
this.log(`\n Export status: ${status ?? 'unknown'}. No download URL yet.\n`);
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
const fileResult = await this.
|
|
116
|
+
const fileResult = await this.apiClient.getPublicFile(downloadUrl.trim());
|
|
117
117
|
if (!fileResult.ok) {
|
|
118
118
|
this.error(`Download failed: ${fileResult.status} ${fileResult.error ?? ''}\n` +
|
|
119
119
|
` URL: ${fileResult.debug.fullUrl}`);
|
|
@@ -261,7 +261,7 @@ export default class Settings extends BaseCommand {
|
|
|
261
261
|
const mimeType = mimeTypes[ext ?? ''] ?? 'application/octet-stream';
|
|
262
262
|
const formData = new FormData();
|
|
263
263
|
formData.append('logo', new Blob([new Uint8Array(fileBuffer)], { type: mimeType }), logoPath.split(/[/\\]/).pop() || 'logo.png');
|
|
264
|
-
const response = await this.
|
|
264
|
+
const response = await this.apiClient.postFormData(API_ENDPOINTS.ASSETS_LOGO, formData);
|
|
265
265
|
if (!response.ok) {
|
|
266
266
|
this.handleApiError(response);
|
|
267
267
|
}
|
package/oclif.manifest.json
CHANGED