@base44-preview/cli 0.0.50-pr.475.235c44c → 0.0.50-pr.475.3ca36bb

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
@@ -252938,6 +252938,7 @@ function createDevLogger() {
252938
252938
 
252939
252939
  // src/cli/dev/dev-server/function-manager.ts
252940
252940
  import { spawn as spawn2 } from "node:child_process";
252941
+ import { pathToFileURL } from "node:url";
252941
252942
  var READY_TIMEOUT = 30000;
252942
252943
 
252943
252944
  class FunctionManager {
@@ -253017,7 +253018,7 @@ class FunctionManager {
253017
253018
  const process21 = spawn2("deno", ["run", "--allow-all", this.wrapperPath], {
253018
253019
  env: {
253019
253020
  ...globalThis.process.env,
253020
- FUNCTION_PATH: func.entryPath,
253021
+ FUNCTION_PATH: pathToFileURL(func.entryPath).href,
253021
253022
  FUNCTION_PORT: String(port),
253022
253023
  FUNCTION_NAME: func.name
253023
253024
  },
@@ -253096,9 +253097,13 @@ function createFunctionRouter(manager, logger2) {
253096
253097
  on: {
253097
253098
  proxyReq: (proxyReq, req) => {
253098
253099
  const xAppId = req.headers["x-app-id"];
253100
+ const authorization = req.headers.authorization;
253099
253101
  if (xAppId) {
253100
253102
  proxyReq.setHeader("Base44-App-Id", xAppId);
253101
253103
  }
253104
+ if (authorization) {
253105
+ proxyReq.setHeader("Base44-Service-Authorization", authorization);
253106
+ }
253102
253107
  proxyReq.setHeader("Base44-Api-Url", `${req.protocol}://${req.headers.host}`);
253103
253108
  },
253104
253109
  error: (err, _req, res) => {
@@ -260395,4 +260400,4 @@ export {
260395
260400
  CLIExitError
260396
260401
  };
260397
260402
 
260398
- //# debugId=8BC0D7129D49BDE164756E2164756E21
260403
+ //# debugId=81F12122B71A9B0F64756E2164756E21