rjweb-server
Advanced tools
Comparing version 9.0.3 to 9.0.4
@@ -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') { |
@@ -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", |
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
524147
12882