rjweb-server
Advanced tools
Comparing version 9.3.2 to 9.3.3
# Changelog | ||
## 9.3.3 | ||
- Fix issues when merging middleware classes with outdated properties | ||
## 9.3.2 | ||
@@ -4,0 +8,0 @@ |
@@ -131,3 +131,3 @@ "use strict"; | ||
* | ||
* if (!data) return ctr.status((s) => s.BAD_REQUEST).print(error.toString()) | ||
* if (!data) return ctr.status(ctr.$status.BAD_REQUEST).print(error.toString()) | ||
* | ||
@@ -134,0 +134,0 @@ * ctr.print('Everything valid! 👍') |
{ | ||
"name": "rjweb-server", | ||
"version": "9.3.2", | ||
"version": "9.3.3", | ||
"description": "Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/index.js", |
@@ -103,3 +103,3 @@ import { Status } from "../../types/global"; | ||
* | ||
* if (!data) return ctr.status((s) => s.BAD_REQUEST).print(error.toString()) | ||
* if (!data) return ctr.status(ctr.$status.BAD_REQUEST).print(error.toString()) | ||
* | ||
@@ -106,0 +106,0 @@ * ctr.print('Everything valid! 👍') |
{ | ||
"name": "rjweb-server", | ||
"version": "9.3.2", | ||
"version": "9.3.3", | ||
"description": "Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/index.js", |
@@ -122,3 +122,3 @@ /// <reference types="node" /> | ||
* | ||
* if (!data) return ctr.status((s) => s.BAD_REQUEST).print(error.toString()) | ||
* if (!data) return ctr.status(ctr.$status.BAD_REQUEST).print(error.toString()) | ||
* | ||
@@ -125,0 +125,0 @@ * ctr.print('Everything valid! 👍') |
@@ -16,3 +16,3 @@ import { UsableMiddleware } from "../../classes/Middleware"; | ||
export type AnyClass = new (...args: any[]) => any; | ||
export type DataContext<Type extends keyof UsableMiddleware['classContexts'], HTTPMethod extends Method, Request extends object, Middlewares extends UsableMiddleware[]> = (Request extends HttpRequestContext ? HTTPMethod extends 'GET' ? Omit<Request, 'body' | 'rawBody' | 'rawBodyBytes' | 'bindBody'> : Request : Request) & UnionToIntersection<InstanceType<ReturnType<Middlewares[number]['classContexts'][Type]>>>; | ||
export type DataContext<Type extends keyof UsableMiddleware['classContexts'], HTTPMethod extends Method, Request extends object, Middlewares extends UsableMiddleware[]> = (Request extends HttpRequestContext ? HTTPMethod extends 'GET' ? Omit<Request, 'body' | 'rawBody' | 'rawBodyBytes' | 'bindBody'> : Request : Request) & Omit<UnionToIntersection<InstanceType<ReturnType<Middlewares[number]['classContexts'][Type]>>>, keyof InstanceType<ClassContexts[Type]>>; | ||
export type RateLimitConfig = { | ||
@@ -19,0 +19,0 @@ sortTo: number; |
{ | ||
"name": "rjweb-server", | ||
"version": "9.3.2", | ||
"version": "9.3.3", | ||
"description": "Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/index.js", |
564738