@forklaunch/core 1.3.8 → 1.3.9

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/lib/http/index.js CHANGED
@@ -1967,7 +1967,7 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
1967
1967
  */
1968
1968
  validateSurfacingFunctions(router = this, parentAuth) {
1969
1969
  const routerAuth = router.routerOptions?.auth && typeof router.routerOptions.auth === "object" ? router.routerOptions.auth : void 0;
1970
- const globalAuth = routerAuth ?? parentAuth;
1970
+ const globalAuth = routerAuth && parentAuth ? { ...parentAuth, ...routerAuth } : routerAuth ?? parentAuth;
1971
1971
  for (const route of router.routes) {
1972
1972
  const auth = route.contractDetails.auth;
1973
1973
  const access = route.contractDetails.access;