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.1.1 to 1.1.2

20

lib/woodland.js

@@ -19,3 +19,2 @@ "use strict";

head = /^(HEAD|OPTIONS)$/,
space = /\s+/,
methods = ["DELETE", "GET", "POST", "PUT", "PATCH"];

@@ -78,3 +77,3 @@

decorate (req, res) {
let parsed = parse(this.url(req)),
let parsed = parse(req),
remotes = req.headers["x-forwarded-for"] ? req.headers["x-forwarded-for"].split(/\s*,\s*/g) : [req.connection.remoteAddress];

@@ -329,21 +328,4 @@

}
url (req) {
let header = req.headers.authorization || "",
auth = "",
token;
if (!utility.isEmpty(header)) {
token = header.split(space).pop() || "";
auth = new Buffer(token, "base64").toString();
if (!utility.isEmpty(auth)) {
auth += "@";
}
}
return "http://" + auth + req.headers.host + req.url;
}
}
module.exports = Woodland;

4

package.json
{
"name": "woodland",
"version": "1.1.1",
"version": "1.1.2",
"description": "Lightweight HTTP/HTTPS router with virtual hosts",

@@ -34,3 +34,3 @@ "main": "index.js",

"tiny-lru": "~1.1.0",
"tiny-parse": "^1.0.1"
"tiny-parse": "~1.0.2"
},

@@ -37,0 +37,0 @@ "devDependencies": {

@@ -75,7 +75,4 @@ <img src="https://avoidwork.github.io/woodland/logo.svg" width="108" />

##### url (req)
Constructs a full URL from `req`.
## License
Copyright (c) 2016 Jason Mulligan
Licensed under the BSD-3 license.
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