@adonisjs/http-server 7.5.0 → 7.6.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.
@@ -4499,9 +4499,10 @@ var Server = class {
4499
4499
  // src/define_config.ts
4500
4500
  import proxyAddr from "proxy-addr";
4501
4501
  import string3 from "@poppinss/utils/string";
4502
+ import lodash3 from "@poppinss/utils/lodash";
4502
4503
  function defineConfig(config) {
4503
4504
  const { trustProxy: trustProxy2, ...rest } = config;
4504
- const normalizedConfig = {
4505
+ const defaults = {
4505
4506
  allowMethodSpoofing: false,
4506
4507
  trustProxy: proxyAddr.compile("loopback"),
4507
4508
  subdomainOffset: 2,
@@ -4530,9 +4531,9 @@ function defineConfig(config) {
4530
4531
  arrayFormat: "indices",
4531
4532
  skipNulls: false
4532
4533
  }
4533
- },
4534
- ...rest
4534
+ }
4535
4535
  };
4536
+ const normalizedConfig = lodash3.merge({}, defaults, rest);
4536
4537
  if (normalizedConfig.cookie.maxAge) {
4537
4538
  normalizedConfig.cookie.maxAge = string3.seconds.parse(normalizedConfig.cookie.maxAge);
4538
4539
  }
@@ -4570,4 +4571,4 @@ export {
4570
4571
  Server,
4571
4572
  defineConfig
4572
4573
  };
4573
- //# sourceMappingURL=chunk-PCV5MT2U.js.map
4574
+ //# sourceMappingURL=chunk-7AGINHO3.js.map