@tinyhttp/app
Advanced tools
Comparing version 2.0.32 to 2.0.33
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node/http.js" /> | ||
import { Server } from 'http'; | ||
@@ -111,1 +111,2 @@ import type { Request } from './request.js'; | ||
} | ||
//# sourceMappingURL=app.d.ts.map |
@@ -9,1 +9,2 @@ import { Request } from './request.js'; | ||
export declare const extendMiddleware: <EngineOptions>(app: App) => (req: Request, res: Response<EngineOptions, any>, next: NextFunction) => void; | ||
//# sourceMappingURL=extend.d.ts.map |
@@ -15,1 +15,2 @@ export { App } from './app.js'; | ||
export type { NextFunction, Middleware, Request, Response }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -323,3 +323,3 @@ import { STATUS_CODES, createServer } from "http"; | ||
*/ | ||
listen(port, cb, host = "0.0.0.0") { | ||
listen(port, cb, host) { | ||
return createServer().on("request", this.attach).listen(port, host, cb); | ||
@@ -326,0 +326,0 @@ } |
@@ -7,1 +7,2 @@ import type { NextFunction } from '@tinyhttp/router'; | ||
export declare const onErrorHandler: ErrorHandler; | ||
//# sourceMappingURL=onError.d.ts.map |
@@ -1,5 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node/http.js" /> | ||
import { IncomingMessage } from 'http'; | ||
@@ -58,1 +55,2 @@ import { ParsedUrlQuery } from 'querystring'; | ||
} | ||
//# sourceMappingURL=request.d.ts.map |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node/http.js" /> | ||
import { ServerResponse } from 'http'; | ||
@@ -50,1 +50,2 @@ import type { SerializeOptions } from '@tinyhttp/cookie'; | ||
} | ||
//# sourceMappingURL=response.d.ts.map |
{ | ||
"name": "@tinyhttp/app", | ||
"version": "2.0.32", | ||
"version": "2.0.33", | ||
"description": "0-legacy, tiny & fast web framework as a replacement of Express", | ||
@@ -37,13 +37,12 @@ "type": "module", | ||
"regexparam": "^2.0.1", | ||
"@tinyhttp/res": "2.0.23", | ||
"@tinyhttp/req": "2.0.16", | ||
"@tinyhttp/router": "2.1.0", | ||
"@tinyhttp/proxy-addr": "2.0.7", | ||
"@tinyhttp/cookie": "2.0.6" | ||
"@tinyhttp/cookie": "2.0.7", | ||
"@tinyhttp/proxy-addr": "2.0.8", | ||
"@tinyhttp/req": "2.0.17", | ||
"@tinyhttp/res": "2.0.24", | ||
"@tinyhttp/router": "2.1.1" | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"postbuild": "tsc --emitDeclarationOnly" | ||
"build": "vite build" | ||
} | ||
} |
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
34432
16
580
+ Added@tinyhttp/accepts@2.0.9(transitive)
+ Added@tinyhttp/content-disposition@2.0.10(transitive)
+ Added@tinyhttp/cookie@2.0.7(transitive)
+ Added@tinyhttp/cookie-signature@2.0.7(transitive)
+ Added@tinyhttp/encode-url@2.0.8(transitive)
+ Added@tinyhttp/etag@2.0.7(transitive)
+ Added@tinyhttp/forwarded@2.0.7(transitive)
+ Added@tinyhttp/proxy-addr@2.0.8(transitive)
+ Added@tinyhttp/req@2.0.17(transitive)
+ Added@tinyhttp/res@2.0.24(transitive)
+ Added@tinyhttp/router@2.1.1(transitive)
+ Added@tinyhttp/send@2.0.9(transitive)
+ Added@tinyhttp/type-is@2.0.8(transitive)
+ Added@tinyhttp/url@2.0.9(transitive)
- Removed@tinyhttp/accepts@2.0.8(transitive)
- Removed@tinyhttp/content-disposition@2.0.9(transitive)
- Removed@tinyhttp/cookie@2.0.6(transitive)
- Removed@tinyhttp/cookie-signature@2.0.6(transitive)
- Removed@tinyhttp/encode-url@2.0.7(transitive)
- Removed@tinyhttp/etag@2.0.6(transitive)
- Removed@tinyhttp/forwarded@2.0.6(transitive)
- Removed@tinyhttp/proxy-addr@2.0.7(transitive)
- Removed@tinyhttp/req@2.0.16(transitive)
- Removed@tinyhttp/res@2.0.23(transitive)
- Removed@tinyhttp/router@2.1.0(transitive)
- Removed@tinyhttp/send@2.0.8(transitive)
- Removed@tinyhttp/type-is@2.0.7(transitive)
- Removed@tinyhttp/url@2.0.8(transitive)
Updated@tinyhttp/cookie@2.0.7
Updated@tinyhttp/proxy-addr@2.0.8
Updated@tinyhttp/req@2.0.17
Updated@tinyhttp/res@2.0.24
Updated@tinyhttp/router@2.1.1