@base44-preview/cli 0.0.38-pr.372.5f6c29b → 0.0.38-pr.372.8a4d510
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 +25 -6
- package/dist/cli/index.js.map +6 -6
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -222538,6 +222538,9 @@ var UserInfoSchema = exports_external.object({
|
|
|
222538
222538
|
name: exports_external.string()
|
|
222539
222539
|
});
|
|
222540
222540
|
|
|
222541
|
+
// src/core/clients/base44-client.ts
|
|
222542
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
222543
|
+
|
|
222541
222544
|
// ../../node_modules/ky/distribution/errors/HTTPError.js
|
|
222542
222545
|
class HTTPError extends Error {
|
|
222543
222546
|
response;
|
|
@@ -231653,8 +231656,12 @@ async function handleUnauthorized(request, _options, response) {
|
|
|
231653
231656
|
return;
|
|
231654
231657
|
}
|
|
231655
231658
|
retriedRequests.add(request);
|
|
231659
|
+
const requestId = request.headers.get("X-Request-ID");
|
|
231656
231660
|
return distribution_default(request.clone(), {
|
|
231657
|
-
headers: {
|
|
231661
|
+
headers: {
|
|
231662
|
+
...requestId && { "X-Request-ID": requestId },
|
|
231663
|
+
Authorization: `Bearer ${newAccessToken}`
|
|
231664
|
+
}
|
|
231658
231665
|
});
|
|
231659
231666
|
}
|
|
231660
231667
|
var base44Client = distribution_default.create({
|
|
@@ -231664,6 +231671,9 @@ var base44Client = distribution_default.create({
|
|
|
231664
231671
|
},
|
|
231665
231672
|
hooks: {
|
|
231666
231673
|
beforeRequest: [
|
|
231674
|
+
(request) => {
|
|
231675
|
+
request.headers.set("X-Request-ID", randomUUID2());
|
|
231676
|
+
},
|
|
231667
231677
|
captureRequestBody,
|
|
231668
231678
|
async (request) => {
|
|
231669
231679
|
try {
|
|
@@ -231689,10 +231699,18 @@ function getAppClient() {
|
|
|
231689
231699
|
});
|
|
231690
231700
|
}
|
|
231691
231701
|
// src/core/clients/oauth-client.ts
|
|
231702
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
231692
231703
|
var oauthClient = distribution_default.create({
|
|
231693
231704
|
prefixUrl: getBase44ApiUrl(),
|
|
231694
231705
|
headers: {
|
|
231695
231706
|
"User-Agent": "Base44 CLI"
|
|
231707
|
+
},
|
|
231708
|
+
hooks: {
|
|
231709
|
+
beforeRequest: [
|
|
231710
|
+
(request) => {
|
|
231711
|
+
request.headers.set("X-Request-ID", randomUUID3());
|
|
231712
|
+
}
|
|
231713
|
+
]
|
|
231696
231714
|
}
|
|
231697
231715
|
});
|
|
231698
231716
|
// src/core/auth/api.ts
|
|
@@ -231837,7 +231855,8 @@ async function deleteSecret(name2) {
|
|
|
231837
231855
|
let response;
|
|
231838
231856
|
try {
|
|
231839
231857
|
response = await appClient.delete("secrets", {
|
|
231840
|
-
searchParams: { secret_name: name2 }
|
|
231858
|
+
searchParams: { secret_name: name2 },
|
|
231859
|
+
timeout: false
|
|
231841
231860
|
});
|
|
231842
231861
|
} catch (error48) {
|
|
231843
231862
|
throw await ApiError.fromHttpError(error48, "deleting secret");
|
|
@@ -241806,7 +241825,7 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
|
|
|
241806
241825
|
// src/cli/dev/dev-server/routes/integrations.ts
|
|
241807
241826
|
var import_express3 = __toESM(require_express(), 1);
|
|
241808
241827
|
var import_multer = __toESM(require_multer(), 1);
|
|
241809
|
-
import { randomUUID as
|
|
241828
|
+
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
241810
241829
|
import fs28 from "node:fs";
|
|
241811
241830
|
import path18 from "node:path";
|
|
241812
241831
|
function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
@@ -241817,7 +241836,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
241817
241836
|
destination: mediaFilesDir,
|
|
241818
241837
|
filename: (_req, file2, cb2) => {
|
|
241819
241838
|
const ext = path18.extname(file2.originalname);
|
|
241820
|
-
cb2(null, `${
|
|
241839
|
+
cb2(null, `${randomUUID4()}${ext}`);
|
|
241821
241840
|
}
|
|
241822
241841
|
});
|
|
241823
241842
|
const MAX_FILE_SIZE = 50 * 1024 * 1024;
|
|
@@ -241844,7 +241863,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
241844
241863
|
res.status(400).json({ error: "file_uri is required" });
|
|
241845
241864
|
return;
|
|
241846
241865
|
}
|
|
241847
|
-
const signature =
|
|
241866
|
+
const signature = randomUUID4();
|
|
241848
241867
|
const signed_url = `${baseUrl}/media/${file_uri}?signature=${signature}`;
|
|
241849
241868
|
res.json({ signed_url });
|
|
241850
241869
|
});
|
|
@@ -248058,4 +248077,4 @@ export {
|
|
|
248058
248077
|
CLIExitError
|
|
248059
248078
|
};
|
|
248060
248079
|
|
|
248061
|
-
//# debugId=
|
|
248080
|
+
//# debugId=8CFE85C6A0026BF564756E2164756E21
|