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

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
@@ -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;
@@ -234439,6 +234442,9 @@ var base44Client = distribution_default.create({
234439
234442
  },
234440
234443
  hooks: {
234441
234444
  beforeRequest: [
234445
+ (request) => {
234446
+ request.headers.set("X-Request-ID", randomUUID2());
234447
+ },
234442
234448
  captureRequestBody,
234443
234449
  async (request) => {
234444
234450
  try {
@@ -244585,7 +244591,7 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
244585
244591
  // src/cli/dev/dev-server/routes/integrations.ts
244586
244592
  var import_express3 = __toESM(require_express(), 1);
244587
244593
  var import_multer = __toESM(require_multer(), 1);
244588
- import { randomUUID as randomUUID2 } from "node:crypto";
244594
+ import { randomUUID as randomUUID3 } from "node:crypto";
244589
244595
  import fs28 from "node:fs";
244590
244596
  import path18 from "node:path";
244591
244597
  function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
@@ -244596,7 +244602,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
244596
244602
  destination: mediaFilesDir,
244597
244603
  filename: (_req, file2, cb2) => {
244598
244604
  const ext = path18.extname(file2.originalname);
244599
- cb2(null, `${randomUUID2()}${ext}`);
244605
+ cb2(null, `${randomUUID3()}${ext}`);
244600
244606
  }
244601
244607
  });
244602
244608
  const MAX_FILE_SIZE = 50 * 1024 * 1024;
@@ -244623,7 +244629,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
244623
244629
  res.status(400).json({ error: "file_uri is required" });
244624
244630
  return;
244625
244631
  }
244626
- const signature = randomUUID2();
244632
+ const signature = randomUUID3();
244627
244633
  const signed_url = `${baseUrl}/media/${file_uri}?signature=${signature}`;
244628
244634
  res.json({ signed_url });
244629
244635
  });
@@ -250837,4 +250843,4 @@ export {
250837
250843
  CLIExitError
250838
250844
  };
250839
250845
 
250840
- //# debugId=38726C4F5E4FF72564756E2164756E21
250846
+ //# debugId=BFF51A9A93738BDA64756E2164756E21