@crvouga/mockingbird-service-redis 2.7.0 → 2.8.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.
package/dist/cli.js CHANGED
@@ -12,10 +12,10 @@ import {
12
12
  restoreClock,
13
13
  serve,
14
14
  serveTarget
15
- } from "./chunk-OJI5WTP5.js";
15
+ } from "./chunk-55PZE5Z4.js";
16
16
  import {
17
17
  createRedis
18
- } from "./chunk-Z3XQGVTX.js";
18
+ } from "./chunk-TVELGGZ4.js";
19
19
 
20
20
  // ../../adapters/node/dist/cli.js
21
21
  import { readFile as readFile5 } from "node:fs/promises";
@@ -3063,7 +3063,7 @@ async function preflightFleet(config, options) {
3063
3063
  break;
3064
3064
  }
3065
3065
  }
3066
- targets.set(name, { ...target, packageVersion: packageVersion ?? "2.7.0" });
3066
+ targets.set(name, { ...target, packageVersion: packageVersion ?? "2.8.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 serve2 = async (api, options = {}) => {
3289
3289
  // ../../adapters/node/dist/listen.js
3290
3290
  var listen = async (api, options = {}) => {
3291
3291
  const host2 = options.host ?? "127.0.0.1";
3292
- const server = await serve2(api, { port: options.port ?? 0, host: host2 });
3292
+ const server = await serve2(api, {
3293
+ port: options.port ?? 0,
3294
+ host: host2,
3295
+ ...options.maxBodyBytes !== void 0 ? { maxBodyBytes: options.maxBodyBytes } : {}
3296
+ });
3293
3297
  const address = server.address();
3294
3298
  const port2 = typeof address === "object" && address !== null ? address.port : options.port ?? 0;
3295
3299
  const shown = host2.includes(":") ? `[${host2}]` : host2;
@@ -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 listening2 = await listen(runtime, { port: config.port, host: config.host });
4887
+ const listening2 = await listen(runtime, {
4888
+ port: config.port,
4889
+ host: config.host,
4890
+ ...target.maxBodyBytes !== void 0 ? { maxBodyBytes: target.maxBodyBytes } : {}
4891
+ });
4883
4892
  target.listening?.(listening2);
4884
4893
  console.log(`${target.name} emulator listening on ${listening2.url}`);
4885
4894
  console.log(`${target.name} health: GET ${listening2.url}${adminPrefix}/health`);