@crvouga/mockingbird-service-junction 3.7.1 → 3.9.0

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.
@@ -13,7 +13,7 @@ import {
13
13
  pullCorpus,
14
14
  resolveAdminPrefix,
15
15
  restoreClock
16
- } from "./chunk-ZJCE4VM4.js";
16
+ } from "./chunk-ES4WU54W.js";
17
17
  import {
18
18
  defaultCorpus
19
19
  } from "./chunk-2FZJPMTR.js";
@@ -3070,7 +3070,7 @@ async function preflightFleet(config, options) {
3070
3070
  break;
3071
3071
  }
3072
3072
  }
3073
- targets.set(name, { ...target, packageVersion: packageVersion ?? "3.7.1" });
3073
+ targets.set(name, { ...target, packageVersion: packageVersion ?? "3.9.0" });
3074
3074
  } catch (error) {
3075
3075
  throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
3076
3076
  }
@@ -3296,7 +3296,11 @@ var serve = async (api, options = {}) => {
3296
3296
  // ../../adapters/node/dist/listen.js
3297
3297
  var listen = async (api, options = {}) => {
3298
3298
  const host = options.host ?? "127.0.0.1";
3299
- const server = await serve(api, { port: options.port ?? 0, host });
3299
+ const server = await serve(api, {
3300
+ port: options.port ?? 0,
3301
+ host,
3302
+ ...options.maxBodyBytes !== void 0 ? { maxBodyBytes: options.maxBodyBytes } : {}
3303
+ });
3300
3304
  const address = server.address();
3301
3305
  const port = typeof address === "object" && address !== null ? address.port : options.port ?? 0;
3302
3306
  const shown = host.includes(":") ? `[${host}]` : host;
@@ -3495,7 +3499,8 @@ var httpChild = async (target, entry, options, admission, generation, privateAcc
3495
3499
  try {
3496
3500
  server = await listen(api, {
3497
3501
  port: entry.port ?? target.defaultPort,
3498
- host: entry.host ?? "127.0.0.1"
3502
+ host: entry.host ?? "127.0.0.1",
3503
+ ...target.maxBodyBytes !== void 0 ? { maxBodyBytes: target.maxBodyBytes } : {}
3499
3504
  });
3500
3505
  target.listening?.(server);
3501
3506
  } catch (error) {
@@ -4886,7 +4891,11 @@ var start = async (target, values, config) => {
4886
4891
  });
4887
4892
  if (config.idBase !== void 0)
4888
4893
  runtime.setIdBase?.(config.idBase);
4889
- const listening = await listen(runtime, { port: config.port, host: config.host });
4894
+ const listening = await listen(runtime, {
4895
+ port: config.port,
4896
+ host: config.host,
4897
+ ...target.maxBodyBytes !== void 0 ? { maxBodyBytes: target.maxBodyBytes } : {}
4898
+ });
4890
4899
  target.listening?.(listening);
4891
4900
  console.log(`${target.name} emulator listening on ${listening.url}`);
4892
4901
  console.log(`${target.name} health: GET ${listening.url}${adminPrefix}/health`);
@@ -5255,4 +5264,4 @@ export {
5255
5264
  createServer2 as createServer,
5256
5265
  serveTarget
5257
5266
  };
5258
- //# sourceMappingURL=chunk-BGYGWODK.js.map
5267
+ //# sourceMappingURL=chunk-VHKUGUXZ.js.map