@newpeak/barista-cli 0.2.91 → 0.2.97

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.
@@ -11349,7 +11349,7 @@ export const apiClient = {
11349
11349
  return extractApiError(error);
11350
11350
  }
11351
11351
  },
11352
- async uploadSysFile(environment, tenant, filePath, secretFlag = 'N') {
11352
+ async uploadSysFile(environment, tenant, filePath, secretFlag = 'N', timeout) {
11353
11353
  try {
11354
11354
  const token = await tokenManager.getToken({ service: 'liberica', environment, tenant });
11355
11355
  if (!token)
@@ -11362,9 +11362,13 @@ export const apiClient = {
11362
11362
  const formData = new FormData();
11363
11363
  formData.append('file', createReadStream(filePath), basename(filePath));
11364
11364
  formData.append('secretFlag', secretFlag);
11365
- const response = await client.getClient().post('/api/sysFileInfo/upload', formData, {
11365
+ const axiosConfig = {
11366
11366
  headers: formData.getHeaders(),
11367
- });
11367
+ };
11368
+ if (timeout !== undefined) {
11369
+ axiosConfig.timeout = timeout;
11370
+ }
11371
+ const response = await client.getClient().post('/api/sysFileInfo/upload', formData, axiosConfig);
11368
11372
  const body = response.data;
11369
11373
  // Roses framework returns { code, data } — normalize to CLI's { success, data }
11370
11374
  if (body && body.code === '00000') {