@base44-preview/cli 0.0.32-pr.265.7984a78 → 0.0.32-pr.265.a0aeeff

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
@@ -186135,17 +186135,22 @@ async function invokeFunction(functionName, data, options) {
186135
186135
  token = refreshed;
186136
186136
  }
186137
186137
  }
186138
- const response = await distribution_default(url2, {
186139
- method,
186140
- ...METHODS_WITH_BODY.has(method) ? { json: data } : {},
186141
- headers: {
186142
- Authorization: `Bearer ${token}`,
186143
- "X-App-Id": id,
186144
- "User-Agent": "Base44 CLI",
186145
- ...options?.headers
186146
- },
186147
- timeout: options?.timeout ?? 300000
186148
- });
186138
+ let response;
186139
+ try {
186140
+ response = await distribution_default(url2, {
186141
+ method,
186142
+ ...METHODS_WITH_BODY.has(method) ? { json: data } : {},
186143
+ headers: {
186144
+ Authorization: `Bearer ${token}`,
186145
+ "X-App-Id": id,
186146
+ "User-Agent": "Base44 CLI",
186147
+ ...options?.headers
186148
+ },
186149
+ timeout: options?.timeout ?? 300000
186150
+ });
186151
+ } catch (error48) {
186152
+ throw await ApiError.fromHttpError(error48, "invoking function");
186153
+ }
186149
186154
  return response.json();
186150
186155
  }
186151
186156
  // src/core/resources/function/resource.ts
@@ -200240,4 +200245,4 @@ export {
200240
200245
  CLIExitError
200241
200246
  };
200242
200247
 
200243
- //# debugId=B2CE23710B195DBD64756E2164756E21
200248
+ //# debugId=4D1B0191CACD8D7D64756E2164756E21