@crvouga/mockingbird-service-wholescripts 3.7.0 → 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.
@@ -12,7 +12,7 @@ import {
12
12
  parseFaultHeader,
13
13
  resolveAdminPrefix,
14
14
  restoreClock
15
- } from "./chunk-4BLJLSNN.js";
15
+ } from "./chunk-FQNFUBRX.js";
16
16
 
17
17
  // src/server.ts
18
18
  import { readFileSync } from "node:fs";
@@ -3063,7 +3063,7 @@ async function preflightFleet(config, options) {
3063
3063
  break;
3064
3064
  }
3065
3065
  }
3066
- targets.set(name, { ...target, packageVersion: packageVersion ?? "3.7.0" });
3066
+ targets.set(name, { ...target, packageVersion: packageVersion ?? "3.9.0" });
3067
3067
  } catch (error) {
3068
3068
  throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
3069
3069
  }
@@ -3289,7 +3289,11 @@ var serve = async (api, options = {}) => {
3289
3289
  // ../../adapters/node/dist/listen.js
3290
3290
  var listen = async (api, options = {}) => {
3291
3291
  const host = options.host ?? "127.0.0.1";
3292
- const server = await serve(api, { port: options.port ?? 0, host });
3292
+ const server = await serve(api, {
3293
+ port: options.port ?? 0,
3294
+ host,
3295
+ ...options.maxBodyBytes !== void 0 ? { maxBodyBytes: options.maxBodyBytes } : {}
3296
+ });
3293
3297
  const address = server.address();
3294
3298
  const port = typeof address === "object" && address !== null ? address.port : options.port ?? 0;
3295
3299
  const shown = host.includes(":") ? `[${host}]` : host;
@@ -3488,7 +3492,8 @@ var httpChild = async (target, entry, options, admission, generation, privateAcc
3488
3492
  try {
3489
3493
  server = await listen(api, {
3490
3494
  port: entry.port ?? target.defaultPort,
3491
- host: entry.host ?? "127.0.0.1"
3495
+ host: entry.host ?? "127.0.0.1",
3496
+ ...target.maxBodyBytes !== void 0 ? { maxBodyBytes: target.maxBodyBytes } : {}
3492
3497
  });
3493
3498
  target.listening?.(server);
3494
3499
  } catch (error) {
@@ -4879,7 +4884,11 @@ var start = async (target, values, config) => {
4879
4884
  });
4880
4885
  if (config.idBase !== void 0)
4881
4886
  runtime.setIdBase?.(config.idBase);
4882
- const listening = await listen(runtime, { port: config.port, host: config.host });
4887
+ const listening = await listen(runtime, {
4888
+ port: config.port,
4889
+ host: config.host,
4890
+ ...target.maxBodyBytes !== void 0 ? { maxBodyBytes: target.maxBodyBytes } : {}
4891
+ });
4883
4892
  target.listening?.(listening);
4884
4893
  console.log(`${target.name} emulator listening on ${listening.url}`);
4885
4894
  console.log(`${target.name} health: GET ${listening.url}${adminPrefix}/health`);
@@ -5087,4 +5096,4 @@ export {
5087
5096
  loadCatalogFile,
5088
5097
  serveTarget
5089
5098
  };
5090
- //# sourceMappingURL=chunk-R57VJDWN.js.map
5099
+ //# sourceMappingURL=chunk-OVMNKYTB.js.map