@tinyhttp/router
Advanced tools
Comparing version 1.2.0 to 1.2.1
export declare type NextFunction = (err?: any) => void; | ||
export declare type SyncHandler<Request extends any = any, Response extends any = any> = (req: Request, res: Response, next?: NextFunction) => void; | ||
export declare type AsyncHandler<Request extends any = any, Response extends any = any> = (req: Request, res: Response, next?: NextFunction) => Promise<void>; | ||
export declare type SyncHandler<Request extends any = any, Response extends any = any> = (req: Request, res: Response, next: NextFunction) => void; | ||
export declare type AsyncHandler<Request extends any = any, Response extends any = any> = (req: Request, res: Response, next: NextFunction) => Promise<void>; | ||
export declare type Handler<Request extends any = any, Response extends any = any> = AsyncHandler<Request, Response> | SyncHandler<Request, Response>; | ||
@@ -5,0 +5,0 @@ declare const METHODS: readonly ["ACL", "BIND", "CHECKOUT", "CONNECT", "COPY", "DELETE", "GET", "HEAD", "LINK", "LOCK", "M-SEARCH", "MERGE", "MKACTIVITY", "MKCALENDAR", "MKCOL", "MOVE", "NOTIFY", "OPTIONS", "PATCH", "POST", "PRI", "PROPFIND", "PROPPATCH", "PURGE", "PUT", "REBIND", "REPORT", "SEARCH", "SOURCE", "SUBSCRIBE", "TRACE", "UNBIND", "UNLINK", "UNLOCK", "UNSUBSCRIBE"]; |
{ | ||
"name": "@tinyhttp/router", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Router for tinyhttp", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34289