Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/router

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/router - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

dist/index.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc