Comparing version 1.0.13 to 1.0.14
@@ -9,3 +9,3 @@ "use strict"; | ||
function factory ({cacheSize = max, defaultHeaders = {}, defaultHost = "127.0.0.1", hosts = ["127.0.0.1"], seed = random} = {}) { | ||
function factory ({cacheSize = max, defaultHeaders = {}, defaultHost = "localhost", hosts = ["localhost"], seed = random} = {}) { | ||
let router = new Woodland(defaultHost, defaultHeaders, cacheSize, seed); | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "woodland", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Lightweight HTTP/HTTPS router with virtual hosts", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,3 +37,3 @@ <img src="https://avoidwork.github.io/woodland/logo.svg" width="108" /> | ||
##### woodland ({cacheSize: 1000, defaultHeaders: {}, defaultHost: "127.0.0.1", hosts: ["127.0.0.1"], seed: random}) | ||
##### woodland ({cacheSize: 1000, defaultHeaders: {}, defaultHost: "localhost", hosts: ["localhost"], seed: random}) | ||
Returns a woodland router. | ||
@@ -40,0 +40,0 @@ |