@forklaunch/core 1.3.7 → 1.3.8

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.
@@ -1895,8 +1895,9 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
1895
1895
  * available (from the route, router, or application level).
1896
1896
  * Call this at listen() time when the full option chain is assembled.
1897
1897
  */
1898
- validateSurfacingFunctions(router = this) {
1899
- const globalAuth = router.routerOptions?.auth && typeof router.routerOptions.auth === "object" ? router.routerOptions.auth : void 0;
1898
+ validateSurfacingFunctions(router = this, parentAuth) {
1899
+ const routerAuth = router.routerOptions?.auth && typeof router.routerOptions.auth === "object" ? router.routerOptions.auth : void 0;
1900
+ const globalAuth = routerAuth ?? parentAuth;
1900
1901
  for (const route of router.routes) {
1901
1902
  const auth = route.contractDetails.auth;
1902
1903
  const access = route.contractDetails.access;
@@ -1926,7 +1927,7 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
1926
1927
  }
1927
1928
  }
1928
1929
  for (const subRouter of router.routers) {
1929
- this.validateSurfacingFunctions(subRouter);
1930
+ this.validateSurfacingFunctions(subRouter, globalAuth);
1930
1931
  }
1931
1932
  }
1932
1933
  use = (pathOrContractDetailsOrMiddlewareOrTypedHandler, contractDetailsOrMiddlewareOrTypedHandler, ...middlewareOrMiddlewareWithTypedHandler) => {