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.14 to 1.0.15

25

lib/woodland.js

@@ -141,8 +141,7 @@ "use strict";

process.nextTick(() => {
let arity = 3,
iter = middleware.next();
let iter = middleware.next(),
arity = !iter.done ? utility.getArity(iter.value) : 0;
if (!res.finished && !iter.done) {
if (err) {
arity = utility.getArity(iter.value);
do {

@@ -154,13 +153,9 @@ arity = utility.getArity(iter.value);

if (!iter.done) {
if (err) {
if (arity === 4) {
try {
iter.value(err, req, res, next);
} catch (e) {
next(e);
}
} else {
last(err);
if (err && arity === 4) {
try {
iter.value(err, req, res, next);
} catch (e) {
next(e);
}
} else {
} else if (!err && arity === 2 || arity === 3) {
try {

@@ -171,5 +166,5 @@ iter.value(req, res, next);

}
} else {
last(err);
}
} else {
last(err);
}

@@ -176,0 +171,0 @@ } else if (!res.finished) {

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

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