@tinyhttp/app
Advanced tools
Comparing version 2.0.25 to 2.0.26
@@ -135,7 +135,12 @@ import { STATUS_CODES, createServer } from "http"; | ||
class App extends Router { | ||
middleware = []; | ||
locals = {}; | ||
noMatchHandler; | ||
onError; | ||
settings; | ||
engines = {}; | ||
applyExtensions; | ||
attach; | ||
constructor(options = {}) { | ||
super(); | ||
this.middleware = []; | ||
this.locals = {}; | ||
this.engines = {}; | ||
this.onError = (options == null ? void 0 : options.onError) || onErrorHandler; | ||
@@ -142,0 +147,0 @@ this.noMatchHandler = (options == null ? void 0 : options.noMatchHandler) || this.onError.bind(this, { code: 404 }); |
import type { NextFunction } from '@tinyhttp/router'; | ||
import type { Request } from './request.js'; | ||
import type { Response } from './response.js'; | ||
import type { App } from './app'; | ||
import type { App } from './app.js'; | ||
export declare type ErrorHandler = (this: App, err: any, req: Request, res: Response, next?: NextFunction) => void; | ||
export declare const onErrorHandler: ErrorHandler; |
{ | ||
"name": "@tinyhttp/app", | ||
"version": "2.0.25", | ||
"version": "2.0.26", | ||
"description": "0-legacy, tiny & fast web framework as a replacement of Express", | ||
@@ -38,3 +38,3 @@ "type": "module", | ||
"@tinyhttp/req": "2.0.14", | ||
"@tinyhttp/res": "2.0.19", | ||
"@tinyhttp/res": "2.0.20", | ||
"@tinyhttp/router": "2.0.6", | ||
@@ -41,0 +41,0 @@ "header-range-parser": "1.1.3", |
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
23684
554
+ Added@tinyhttp/res@2.0.20(transitive)
- Removed@tinyhttp/res@2.0.19(transitive)
Updated@tinyhttp/res@2.0.20