@forklaunch/core 0.2.25 → 0.2.27

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.
Files changed (35) hide show
  1. package/lib/eslint.config.d.mts +1 -1
  2. package/lib/src/cache/index.d.ts +1 -0
  3. package/lib/src/cache/index.d.ts.map +1 -1
  4. package/lib/src/cache/index.js +1 -0
  5. package/lib/src/cache/utils/cacheKey.d.ts +2 -0
  6. package/lib/src/cache/utils/cacheKey.d.ts.map +1 -0
  7. package/lib/src/cache/utils/cacheKey.js +3 -0
  8. package/lib/src/controllers/interfaces/controller.interface.d.ts +3 -15
  9. package/lib/src/controllers/interfaces/controller.interface.d.ts.map +1 -1
  10. package/lib/src/http/application/expressLikeApplication.d.ts +3 -2
  11. package/lib/src/http/application/expressLikeApplication.d.ts.map +1 -1
  12. package/lib/src/http/application/expressLikeApplication.js +3 -1
  13. package/lib/src/http/guards/isConstrainedForklaunchRouter.d.ts +4 -0
  14. package/lib/src/http/guards/isConstrainedForklaunchRouter.d.ts.map +1 -0
  15. package/lib/src/http/guards/isConstrainedForklaunchRouter.js +5 -0
  16. package/lib/src/http/guards/isExpressLikeSchemaHandler.d.ts.map +1 -1
  17. package/lib/src/http/guards/isExpressLikeSchemaHandler.js +1 -5
  18. package/lib/src/http/guards/isForklaunchExpressLikeRouter.d.ts +5 -0
  19. package/lib/src/http/guards/isForklaunchExpressLikeRouter.d.ts.map +1 -0
  20. package/lib/src/http/guards/isForklaunchExpressLikeRouter.js +6 -0
  21. package/lib/src/http/interfaces/expressLikeRouter.interface.d.ts +2 -2
  22. package/lib/src/http/interfaces/expressLikeRouter.interface.d.ts.map +1 -1
  23. package/lib/src/http/middleware/request/auth.middleware.d.ts.map +1 -1
  24. package/lib/src/http/middleware/request/auth.middleware.js +2 -1
  25. package/lib/src/http/router/expressLikeRouter.d.ts +7 -5
  26. package/lib/src/http/router/expressLikeRouter.d.ts.map +1 -1
  27. package/lib/src/http/router/expressLikeRouter.js +69 -16
  28. package/lib/src/http/types/apiDefinition.types.d.ts +6 -2
  29. package/lib/src/http/types/apiDefinition.types.d.ts.map +1 -1
  30. package/lib/src/http/types/expressLikeRouter.types.d.ts +24 -8
  31. package/lib/src/http/types/expressLikeRouter.types.d.ts.map +1 -1
  32. package/lib/src/http/types/router.types.d.ts +4 -1
  33. package/lib/src/http/types/router.types.d.ts.map +1 -1
  34. package/lib/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +16 -16
@@ -1,5 +1,8 @@
1
1
  import { AnySchemaValidator } from '@forklaunch/validator';
2
2
  import { HttpContractDetails, Method, PathParamHttpContractDetails } from './contractDetails.types';
3
+ export interface ConstrainedForklaunchRouter<SV extends AnySchemaValidator, RequestHandler> extends ForklaunchRouter<SV> {
4
+ requestHandler: RequestHandler;
5
+ }
3
6
  /**
4
7
  * Interface representing a Forklaunch router.
5
8
  *
@@ -7,7 +10,7 @@ import { HttpContractDetails, Method, PathParamHttpContractDetails } from './con
7
10
  */
8
11
  export interface ForklaunchRouter<SV extends AnySchemaValidator> {
9
12
  /** The base path for the router */
10
- basePath: string;
13
+ basePath: `/${string}`;
11
14
  /** The routes associated with the router */
12
15
  routes: ForklaunchRoute<SV>[];
13
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"router.types.d.ts","sourceRoot":"","sources":["../../../../src/http/types/router.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,MAAM,EACN,4BAA4B,EAC7B,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,gBAAgB,CAAC,EAAE,SAAS,kBAAkB;IAC7D,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,MAAM,EAAE,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe,CAAC,EAAE,SA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