@base44-preview/cli 0.0.38-pr.375.23c5f77 → 0.0.38-pr.376.6b8fe62
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 +23 -5
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -225313,6 +225313,9 @@ var UserInfoSchema = exports_external.object({
|
|
|
225313
225313
|
name: exports_external.string()
|
|
225314
225314
|
});
|
|
225315
225315
|
|
|
225316
|
+
// src/core/clients/base44-client.ts
|
|
225317
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
225318
|
+
|
|
225316
225319
|
// node_modules/ky/distribution/errors/HTTPError.js
|
|
225317
225320
|
class HTTPError extends Error {
|
|
225318
225321
|
response;
|
|
@@ -234428,8 +234431,12 @@ async function handleUnauthorized(request, _options, response) {
|
|
|
234428
234431
|
return;
|
|
234429
234432
|
}
|
|
234430
234433
|
retriedRequests.add(request);
|
|
234434
|
+
const requestId = request.headers.get("X-Request-ID");
|
|
234431
234435
|
return distribution_default(request.clone(), {
|
|
234432
|
-
headers: {
|
|
234436
|
+
headers: {
|
|
234437
|
+
...requestId && { "X-Request-ID": requestId },
|
|
234438
|
+
Authorization: `Bearer ${newAccessToken}`
|
|
234439
|
+
}
|
|
234433
234440
|
});
|
|
234434
234441
|
}
|
|
234435
234442
|
var base44Client = distribution_default.create({
|
|
@@ -234439,6 +234446,9 @@ var base44Client = distribution_default.create({
|
|
|
234439
234446
|
},
|
|
234440
234447
|
hooks: {
|
|
234441
234448
|
beforeRequest: [
|
|
234449
|
+
(request) => {
|
|
234450
|
+
request.headers.set("X-Request-ID", randomUUID2());
|
|
234451
|
+
},
|
|
234442
234452
|
captureRequestBody,
|
|
234443
234453
|
async (request) => {
|
|
234444
234454
|
try {
|
|
@@ -234464,10 +234474,18 @@ function getAppClient() {
|
|
|
234464
234474
|
});
|
|
234465
234475
|
}
|
|
234466
234476
|
// src/core/clients/oauth-client.ts
|
|
234477
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
234467
234478
|
var oauthClient = distribution_default.create({
|
|
234468
234479
|
prefixUrl: getBase44ApiUrl(),
|
|
234469
234480
|
headers: {
|
|
234470
234481
|
"User-Agent": "Base44 CLI"
|
|
234482
|
+
},
|
|
234483
|
+
hooks: {
|
|
234484
|
+
beforeRequest: [
|
|
234485
|
+
(request) => {
|
|
234486
|
+
request.headers.set("X-Request-ID", randomUUID3());
|
|
234487
|
+
}
|
|
234488
|
+
]
|
|
234471
234489
|
}
|
|
234472
234490
|
});
|
|
234473
234491
|
// src/core/auth/api.ts
|
|
@@ -244585,7 +244603,7 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
|
|
|
244585
244603
|
// src/cli/dev/dev-server/routes/integrations.ts
|
|
244586
244604
|
var import_express3 = __toESM(require_express(), 1);
|
|
244587
244605
|
var import_multer = __toESM(require_multer(), 1);
|
|
244588
|
-
import { randomUUID as
|
|
244606
|
+
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
244589
244607
|
import fs28 from "node:fs";
|
|
244590
244608
|
import path18 from "node:path";
|
|
244591
244609
|
function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
@@ -244596,7 +244614,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
244596
244614
|
destination: mediaFilesDir,
|
|
244597
244615
|
filename: (_req, file2, cb2) => {
|
|
244598
244616
|
const ext = path18.extname(file2.originalname);
|
|
244599
|
-
cb2(null, `${
|
|
244617
|
+
cb2(null, `${randomUUID4()}${ext}`);
|
|
244600
244618
|
}
|
|
244601
244619
|
});
|
|
244602
244620
|
const MAX_FILE_SIZE = 50 * 1024 * 1024;
|
|
@@ -244623,7 +244641,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
244623
244641
|
res.status(400).json({ error: "file_uri is required" });
|
|
244624
244642
|
return;
|
|
244625
244643
|
}
|
|
244626
|
-
const signature =
|
|
244644
|
+
const signature = randomUUID4();
|
|
244627
244645
|
const signed_url = `${baseUrl}/media/${file_uri}?signature=${signature}`;
|
|
244628
244646
|
res.json({ signed_url });
|
|
244629
244647
|
});
|
|
@@ -250837,4 +250855,4 @@ export {
|
|
|
250837
250855
|
CLIExitError
|
|
250838
250856
|
};
|
|
250839
250857
|
|
|
250840
|
-
//# debugId=
|
|
250858
|
+
//# debugId=E98D9FF553DE25D164756E2164756E21
|