Comparing version 1.0.3 to 1.0.4
@@ -9,3 +9,3 @@ "use strict"; | ||
function factory ({cacheSize = max, defaultHeaders = {}, defaultHost = "127.0.0.1", hosts = [], seed = random} = {}) { | ||
function factory ({cacheSize = max, defaultHeaders = {}, defaultHost = "127.0.0.1", hosts = ["127.0.0.1"], seed = random} = {}) { | ||
let router = new Woodland(defaultHost, defaultHeaders, cacheSize, seed); | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "woodland", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Lightweight HTTP/HTTPS router with virtual hosts", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/avoidwork/woodland#readme", | ||
"homepage": "http://avoidwork.github.io/woodland/", | ||
"dependencies": { | ||
@@ -32,0 +32,0 @@ "murmurhash3js": "~3.0.1", |
@@ -35,3 +35,3 @@ # woodland | ||
##### woodland ({cacheSize: 1000, defaultHeaders: {}, defaultHost: "127.0.0.1", hosts: [], seed: random}) | ||
##### woodland ({cacheSize: 1000, defaultHeaders: {}, defaultHost: "127.0.0.1", hosts: ["127.0.0.1"], seed: random}) | ||
Returns a woodland router. | ||
@@ -67,3 +67,3 @@ | ||
##### use (path, fn, method = "GET", host = "all") | ||
Registers middleware for a route. If `path` is a regular expression, and if not passed it defaults to `/.*`. | ||
Registers middleware for a route; `path` is a regular expression, and if not passed it defaults to `/.*`. | ||
@@ -70,0 +70,0 @@ ##### url (req) |
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
14798
51