@base44-preview/cli 0.0.36-pr.344.ec76c5b → 0.0.36-pr.346.fffa92d

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/cli/index.js CHANGED
@@ -208896,6 +208896,7 @@ class ApiError extends SystemError {
208896
208896
  requestMethod;
208897
208897
  requestBody;
208898
208898
  responseBody;
208899
+ requestId;
208899
208900
  constructor(message, options, parsedResponse) {
208900
208901
  const hints = options?.hints ?? ApiError.getReasonHints(parsedResponse) ?? ApiError.getDefaultHints(options?.statusCode);
208901
208902
  super(message, { hints, cause: options?.cause });
@@ -208904,6 +208905,7 @@ class ApiError extends SystemError {
208904
208905
  this.requestMethod = options?.requestMethod;
208905
208906
  this.requestBody = options?.requestBody;
208906
208907
  this.responseBody = options?.responseBody;
208908
+ this.requestId = options?.requestId;
208907
208909
  }
208908
208910
  static async fromHttpError(error48, context) {
208909
208911
  if (error48 instanceof HTTPError) {
@@ -208922,12 +208924,14 @@ class ApiError extends SystemError {
208922
208924
  }
208923
208925
  const statusCode = ApiError.normalizeStatusCode(error48.response.status, responseBody);
208924
208926
  const requestBody = error48.options.context?.__requestBody;
208927
+ const requestId = error48.response.headers.get("x-request-id") ?? undefined;
208925
208928
  return new ApiError(`Error ${context}: ${message}`, {
208926
208929
  statusCode,
208927
208930
  requestUrl: error48.request.url,
208928
208931
  requestMethod: error48.request.method,
208929
208932
  requestBody,
208930
208933
  responseBody,
208934
+ requestId,
208931
208935
  cause: error48
208932
208936
  }, parsedErrorResponse);
208933
208937
  }
@@ -231348,7 +231352,8 @@ class ErrorReporter {
231348
231352
  api_request_url: error48.requestUrl,
231349
231353
  api_request_method: error48.requestMethod,
231350
231354
  api_request_body: error48.requestBody,
231351
- api_response_body: error48.responseBody
231355
+ api_response_body: error48.responseBody,
231356
+ api_request_id: error48.requestId
231352
231357
  } : {};
231353
231358
  return {
231354
231359
  session_id: this.sessionId,
@@ -231459,4 +231464,4 @@ export {
231459
231464
  CLIExitError
231460
231465
  };
231461
231466
 
231462
- //# debugId=F081B92DADB2C53064756E2164756E21
231467
+ //# debugId=B1C3AC3587882DBA64756E2164756E21