bxo 0.0.5-dev.7 → 0.0.5-dev.8
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/index.ts +2 -0
- package/package.json +1 -1
package/index.ts
CHANGED
@@ -31,6 +31,7 @@ export type Context<TConfig extends RouteConfig = {}> = {
|
|
31
31
|
query: TConfig['query'] extends z.ZodSchema<any> ? InferZodType<TConfig['query']> : Record<string, string | undefined>;
|
32
32
|
body: TConfig['body'] extends z.ZodSchema<any> ? InferZodType<TConfig['body']> : unknown;
|
33
33
|
headers: TConfig['headers'] extends z.ZodSchema<any> ? InferZodType<TConfig['headers']> : Record<string, string>;
|
34
|
+
path: string;
|
34
35
|
request: Request;
|
35
36
|
set: {
|
36
37
|
status?: number;
|
@@ -400,6 +401,7 @@ export default class BXO {
|
|
400
401
|
query: route.config?.query ? this.validateData(route.config.query, query) : query,
|
401
402
|
body: route.config?.body ? this.validateData(route.config.body, body) : body,
|
402
403
|
headers: route.config?.headers ? this.validateData(route.config.headers, headers) : headers,
|
404
|
+
path: pathname,
|
403
405
|
request,
|
404
406
|
set: {}
|
405
407
|
};
|