@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 +1 -1
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +1 -1
- package/lib/http/index.mjs.map +1 -1
- package/package.json +3 -3
package/lib/http/index.mjs
CHANGED
|
@@ -1897,7 +1897,7 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
|
|
|
1897
1897
|
*/
|
|
1898
1898
|
validateSurfacingFunctions(router = this, parentAuth) {
|
|
1899
1899
|
const routerAuth = router.routerOptions?.auth && typeof router.routerOptions.auth === "object" ? router.routerOptions.auth : void 0;
|
|
1900
|
-
const globalAuth = routerAuth ?? parentAuth;
|
|
1900
|
+
const globalAuth = routerAuth && parentAuth ? { ...parentAuth, ...routerAuth } : routerAuth ?? parentAuth;
|
|
1901
1901
|
for (const route of router.routes) {
|
|
1902
1902
|
const auth = route.contractDetails.auth;
|
|
1903
1903
|
const access = route.contractDetails.access;
|