Socket
Socket
Sign inDemoInstall

rjweb-server

Package Overview
Dependencies
75
Maintainers
1
Versions
368
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.3.2 to 9.3.3

4

CHANGELOG.md
# Changelog
## 9.3.3
- Fix issues when merging middleware classes with outdated properties
## 9.3.2

@@ -4,0 +8,0 @@

2

lib/cjs/classes/request/HttpRequestContext.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc