@base44-preview/cli 0.0.50-pr.475.6a7c77b → 0.0.50-pr.475.7817b8d

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
@@ -243211,6 +243211,7 @@ var package_default = {
243211
243211
  "@types/ejs": "^3.1.5",
243212
243212
  "@types/express": "^5.0.6",
243213
243213
  "@types/json-schema": "^7.0.15",
243214
+ "@types/jsonwebtoken": "^9.0.10",
243214
243215
  "@types/lodash": "^4.17.24",
243215
243216
  "@types/multer": "^2.0.0",
243216
243217
  "@types/node": "^22.10.5",
@@ -243229,6 +243230,7 @@ var package_default = {
243229
243230
  globby: "^16.1.0",
243230
243231
  "http-proxy-middleware": "^3.0.5",
243231
243232
  "json-schema-to-typescript": "^15.0.4",
243233
+ jsonwebtoken: "^9.0.3",
243232
243234
  json5: "^2.2.3",
243233
243235
  ky: "^1.14.2",
243234
243236
  lodash: "^4.17.23",
@@ -253094,9 +253096,13 @@ function createFunctionRouter(manager, logger2) {
253094
253096
  on: {
253095
253097
  proxyReq: (proxyReq, req) => {
253096
253098
  const xAppId = req.headers["x-app-id"];
253099
+ const authorization = req.headers.authorization;
253097
253100
  if (xAppId) {
253098
253101
  proxyReq.setHeader("Base44-App-Id", xAppId);
253099
253102
  }
253103
+ if (authorization) {
253104
+ proxyReq.setHeader("Base44-Service-Authorization", authorization);
253105
+ }
253100
253106
  proxyReq.setHeader("Base44-Api-Url", `${req.protocol}://${req.headers.host}`);
253101
253107
  },
253102
253108
  error: (err, _req, res) => {
@@ -260393,4 +260399,4 @@ export {
260393
260399
  CLIExitError
260394
260400
  };
260395
260401
 
260396
- //# debugId=87279C94ABAC181364756E2164756E21
260402
+ //# debugId=CB186C06DA18198C64756E2164756E21