@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 +17 -12
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
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
|
-
|
|
186139
|
-
|
|
186140
|
-
|
|
186141
|
-
|
|
186142
|
-
|
|
186143
|
-
|
|
186144
|
-
|
|
186145
|
-
|
|
186146
|
-
|
|
186147
|
-
|
|
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=
|
|
200248
|
+
//# debugId=4D1B0191CACD8D7D64756E2164756E21
|