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.0.1 to 1.0.2

6

CHANGELOG.md
# @tinyhttp/router
## 1.0.2
### Patch Changes
- Fix next function types
## 1.0.1

@@ -4,0 +10,0 @@

2

dist/index.d.ts
/// <reference types="node" />
import { IncomingMessage as I, ServerResponse as R } from 'http';
export declare type NextFunction = (err?: any) => void | undefined;
export declare type NextFunction = (err?: any) => void;
export declare type SyncHandler<Request extends any = I, Response extends any = R> = (req: Request, res: Response, next?: NextFunction) => void;

@@ -5,0 +5,0 @@ export declare type AsyncHandler<Request extends any = I, Response extends any = R> = (req: Request, res: Response, next?: NextFunction) => Promise<void>;

{
"name": "@tinyhttp/router",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Router for tinyhttp",

@@ -5,3 +5,3 @@ import { METHODS, IncomingMessage as I, ServerResponse as R } from 'http'

export type NextFunction = (err?: any) => void | undefined
export type NextFunction = (err?: any) => void

@@ -8,0 +8,0 @@ export type SyncHandler<Request extends any = I, Response extends any = R> = (

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