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

@tinyhttp/app

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/app - npm Package Compare versions

Comparing version 2.0.25 to 2.0.26

11

dist/index.js

@@ -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",

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