bxo 0.0.5-dev.23 → 0.0.5-dev.25

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 (2) hide show
  1. package/index.ts +1 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -90,7 +90,7 @@ export type Context<TConfig extends RouteConfig = {}> = {
90
90
  };
91
91
 
92
92
  // Handler function type with proper response typing
93
- type Handler<TConfig extends RouteConfig = {}, EC = {}> = (ctx: Context<TConfig> & EC) => Promise<InferResponseType<TConfig['response']>> | InferResponseType<TConfig['response']>;
93
+ type Handler<TConfig extends RouteConfig = {}, EC = {}> = (ctx: Context<TConfig> & EC) => Promise<InferResponseType<TConfig['response']> | any> | InferResponseType<TConfig['response']> | any;
94
94
 
95
95
  // Route definition
96
96
  interface Route {
@@ -643,7 +643,6 @@ export default class BXO {
643
643
  // Validate response against schema if provided
644
644
  if (route.config?.response && !(response instanceof Response)) {
645
645
  try {
646
- console.log('response', response);
647
646
  const status = ctx.set.status || 200;
648
647
  response = this.validateResponse(route.config.response, response, status);
649
648
  } catch (validationError) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bxo",
3
3
  "module": "index.ts",
4
- "version": "0.0.5-dev.23",
4
+ "version": "0.0.5-dev.25",
5
5
  "description": "A simple and lightweight web framework for Bun",
6
6
  "type": "module",
7
7
  "devDependencies": {