Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

woodland

Package Overview
Dependencies
Maintainers
1
Versions
352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

woodland - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js

@@ -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)

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