@base44-preview/cli 0.0.38-pr.376.f197972 → 0.0.38-pr.377.8963484

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
@@ -234431,8 +234431,12 @@ async function handleUnauthorized(request, _options, response) {
234431
234431
  return;
234432
234432
  }
234433
234433
  retriedRequests.add(request);
234434
+ const requestId = request.headers.get("X-Request-ID");
234434
234435
  return distribution_default(request.clone(), {
234435
- headers: { Authorization: `Bearer ${newAccessToken}` }
234436
+ headers: {
234437
+ ...requestId && { "X-Request-ID": requestId },
234438
+ Authorization: `Bearer ${newAccessToken}`
234439
+ }
234436
234440
  });
234437
234441
  }
234438
234442
  var base44Client = distribution_default.create({
@@ -234470,10 +234474,18 @@ function getAppClient() {
234470
234474
  });
234471
234475
  }
234472
234476
  // src/core/clients/oauth-client.ts
234477
+ import { randomUUID as randomUUID3 } from "node:crypto";
234473
234478
  var oauthClient = distribution_default.create({
234474
234479
  prefixUrl: getBase44ApiUrl(),
234475
234480
  headers: {
234476
234481
  "User-Agent": "Base44 CLI"
234482
+ },
234483
+ hooks: {
234484
+ beforeRequest: [
234485
+ (request) => {
234486
+ request.headers.set("X-Request-ID", randomUUID3());
234487
+ }
234488
+ ]
234477
234489
  }
234478
234490
  });
234479
234491
  // src/core/auth/api.ts
@@ -244591,7 +244603,7 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
244591
244603
  // src/cli/dev/dev-server/routes/integrations.ts
244592
244604
  var import_express3 = __toESM(require_express(), 1);
244593
244605
  var import_multer = __toESM(require_multer(), 1);
244594
- import { randomUUID as randomUUID3 } from "node:crypto";
244606
+ import { randomUUID as randomUUID4 } from "node:crypto";
244595
244607
  import fs28 from "node:fs";
244596
244608
  import path18 from "node:path";
244597
244609
  function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
@@ -244602,7 +244614,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
244602
244614
  destination: mediaFilesDir,
244603
244615
  filename: (_req, file2, cb2) => {
244604
244616
  const ext = path18.extname(file2.originalname);
244605
- cb2(null, `${randomUUID3()}${ext}`);
244617
+ cb2(null, `${randomUUID4()}${ext}`);
244606
244618
  }
244607
244619
  });
244608
244620
  const MAX_FILE_SIZE = 50 * 1024 * 1024;
@@ -244629,7 +244641,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
244629
244641
  res.status(400).json({ error: "file_uri is required" });
244630
244642
  return;
244631
244643
  }
244632
- const signature = randomUUID3();
244644
+ const signature = randomUUID4();
244633
244645
  const signed_url = `${baseUrl}/media/${file_uri}?signature=${signature}`;
244634
244646
  res.json({ signed_url });
244635
244647
  });
@@ -250843,4 +250855,4 @@ export {
250843
250855
  CLIExitError
250844
250856
  };
250845
250857
 
250846
- //# debugId=BFF51A9A93738BDA64756E2164756E21
250858
+ //# debugId=E98D9FF553DE25D164756E2164756E21