Comparing version 1.0.12 to 1.0.13
@@ -245,3 +245,3 @@ "use strict"; | ||
use (rpath, fn, method, host) { | ||
use (rpath, fn, method, host = all) { | ||
let lpath = rpath, | ||
@@ -254,2 +254,3 @@ lfn = fn, | ||
if (typeof lpath !== "string") { | ||
lhost = lmethod || lhost; | ||
lmethod = lfn; | ||
@@ -261,3 +262,2 @@ lfn = lpath; | ||
lmethod = lmethod ? lmethod.toUpperCase() : "GET"; | ||
lhost = lhost || all; | ||
@@ -264,0 +264,0 @@ if (typeof lfn !== "function") { |
{ | ||
"name": "woodland", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Lightweight HTTP/HTTPS router with virtual hosts", | ||
@@ -5,0 +5,0 @@ "main": "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
15249