New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 16.0.2 to 16.0.3

6

lib/woodland.js

@@ -218,4 +218,3 @@ "use strict";

if (res.headersSent === false) {
const headers = {"content-type": "text/plain; charset=utf-8"},
numeric = isNaN(err.message) === false,
const numeric = isNaN(err.message) === false,
status = isNaN(res.statusCode) === false && res.statusCode >= 400 ? res.statusCode : numeric ? Number(err.message) : 500,

@@ -234,3 +233,4 @@ output = numeric ? http.STATUS_CODES[status] : err.message;

res.send(output, status, headers);
res.header("content-type", "text/plain; charset=utf-8");
res.send(output, status);
}

@@ -237,0 +237,0 @@

{
"name": "woodland",
"version": "16.0.2",
"version": "16.0.3",
"description": "Lightweight HTTP router with automatic headers",

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

Sorry, the diff of this file is too big to display

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