@forklaunch/core 0.17.2 → 0.17.3
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/{apiDefinition.types-XZ0lrfFc.d.mts → contractDetails.types-BKkaBgAN.d.mts} +883 -883
- package/lib/{apiDefinition.types-XZ0lrfFc.d.ts → contractDetails.types-BKkaBgAN.d.ts} +883 -883
- package/lib/http/index.d.mts +3 -3
- package/lib/http/index.d.ts +3 -3
- package/lib/http/index.js +4 -2
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +4 -2
- package/lib/http/index.mjs.map +1 -1
- package/lib/ws/index.d.mts +2 -2
- package/lib/ws/index.d.ts +2 -2
- package/package.json +23 -23
package/lib/http/index.mjs
CHANGED
|
@@ -1323,7 +1323,8 @@ function resolveRouteMiddlewares(params) {
|
|
|
1323
1323
|
params.requestSchema,
|
|
1324
1324
|
params.responseSchemas,
|
|
1325
1325
|
params.openTelemetryCollector,
|
|
1326
|
-
|
|
1326
|
+
// Use dynamic lookup from router instance instead of captured params
|
|
1327
|
+
() => params.router ? params.router.routerOptions : params.routerOptions
|
|
1327
1328
|
),
|
|
1328
1329
|
...params.postEnrichMiddleware,
|
|
1329
1330
|
parse,
|
|
@@ -1599,7 +1600,8 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
|
|
|
1599
1600
|
routerOptions: this.routerOptions,
|
|
1600
1601
|
postEnrichMiddleware: this.postEnrichMiddleware,
|
|
1601
1602
|
includeCreateContext: false,
|
|
1602
|
-
handlers
|
|
1603
|
+
handlers,
|
|
1604
|
+
router: this
|
|
1603
1605
|
});
|
|
1604
1606
|
registrationMethod.bind(this.internal)(
|
|
1605
1607
|
path,
|