Socket
Socket
Sign inDemoInstall

rjweb-server

Package Overview
Dependencies
Maintainers
1
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rjweb-server - npm Package Compare versions

Comparing version 9.0.3 to 9.0.4

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 9.0.4
- Apply `FileLoader` validators properly
## 9.0.3

@@ -2,0 +6,0 @@

@@ -145,2 +145,3 @@ "use strict";

for (const route of router['routesHttp']) {
route.validators.unshift(...this.validators);
if (options.fileBasedRouting) {

@@ -164,2 +165,3 @@ if (route.urlData.type === 'regexp') {

for (const route of router['routesWS']) {
route.validators.unshift(...this.validators);
if (options.fileBasedRouting) {

@@ -183,2 +185,3 @@ if (route.urlData.type === 'regexp') {

for (const route of router['routesStatic']) {
route.validators.unshift(...this.validators);
if (options.fileBasedRouting) {

@@ -185,0 +188,0 @@ if (route.urlData.type === 'regexp') {

2

lib/cjs/cli.js

@@ -158,3 +158,3 @@ #! /usr/bin/env node

server.http((ctr) => {
console.log(`${prefix} ${Logger_1.colors.fg.gray}${ctr.client.ip} ${Logger_1.colors.fg.green}HTTP ${ctr.url.method} ${Logger_1.colors.fg.cyan}${coloredPath(ctr.url.path)}`);
console.log(`${prefix} ${Logger_1.colors.fg.gray}${ctr.client.ip.usual()} ${Logger_1.colors.fg.green}HTTP ${ctr.url.method} ${Logger_1.colors.fg.cyan}${coloredPath(ctr.url.path)}`);
});

@@ -161,0 +161,0 @@ server.start()

{
"name": "rjweb-server",
"version": "9.0.3",
"version": "9.0.4",
"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",

@@ -140,2 +140,3 @@ import Route from "../Route";

for (const route of router['routesHttp']) {
route.validators.unshift(...this.validators);
if (options.fileBasedRouting) {

@@ -159,2 +160,3 @@ if (route.urlData.type === 'regexp') {

for (const route of router['routesWS']) {
route.validators.unshift(...this.validators);
if (options.fileBasedRouting) {

@@ -178,2 +180,3 @@ if (route.urlData.type === 'regexp') {

for (const route of router['routesStatic']) {
route.validators.unshift(...this.validators);
if (options.fileBasedRouting) {

@@ -180,0 +183,0 @@ if (route.urlData.type === 'regexp') {

@@ -130,3 +130,3 @@ #! /usr/bin/env node

server.http((ctr) => {
console.log(`${prefix} ${colors.fg.gray}${ctr.client.ip} ${colors.fg.green}HTTP ${ctr.url.method} ${colors.fg.cyan}${coloredPath(ctr.url.path)}`);
console.log(`${prefix} ${colors.fg.gray}${ctr.client.ip.usual()} ${colors.fg.green}HTTP ${ctr.url.method} ${colors.fg.cyan}${coloredPath(ctr.url.path)}`);
});

@@ -133,0 +133,0 @@ server.start()

{
"name": "rjweb-server",
"version": "9.0.3",
"version": "9.0.4",
"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",

{
"name": "rjweb-server",
"version": "9.0.3",
"version": "9.0.4",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc