@forklaunch/core 0.15.1 → 0.15.2

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.
@@ -1623,6 +1623,17 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
1623
1623
  }
1624
1624
  return this;
1625
1625
  }
1626
+ addRouterOptions(router) {
1627
+ router.routerOptions = {
1628
+ ...this.routerOptions ?? {},
1629
+ ...router.routerOptions ?? {}
1630
+ };
1631
+ router.routers.forEach((subRouter) => {
1632
+ this.addRouterOptions(
1633
+ subRouter
1634
+ );
1635
+ });
1636
+ }
1626
1637
  use = (pathOrContractDetailsOrMiddlewareOrTypedHandler, contractDetailsOrMiddlewareOrTypedHandler, ...middlewareOrMiddlewareWithTypedHandler) => {
1627
1638
  [
1628
1639
  pathOrContractDetailsOrMiddlewareOrTypedHandler,
@@ -1631,10 +1642,9 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
1631
1642
  ].forEach((arg) => {
1632
1643
  if (isForklaunchRouter(arg)) {
1633
1644
  this.routers.push(arg);
1634
- arg.routerOptions = {
1635
- ...this.routerOptions ?? {},
1636
- ...arg.routerOptions ?? {}
1637
- };
1645
+ this.addRouterOptions(
1646
+ arg
1647
+ );
1638
1648
  }
1639
1649
  });
1640
1650
  return this.registerNestableMiddlewareHandler(