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

express-mung

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-mung - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

15

index.js

@@ -82,10 +82,9 @@ 'use strict';

res.end = original;
if (res.headersSent)
return;
fn(req, res);
if (res.headersSent) {
console.error('sending response while in mung.headers is undefined behaviour');
return;
if (!res.headersSent) {
fn(req, res);
if (res.headersSent) {
console.error('sending response while in mung.headers is undefined behaviour');
return;
}
}
return original.apply(this, arguments);

@@ -103,2 +102,4 @@ }

function hook () {
if (res.headersSent)
return original.apply(this, args);
let args = arguments;

@@ -105,0 +106,0 @@ res.end = () => null;

{
"name": "express-mung",
"version": "0.3.0",
"version": "0.3.1",
"description": "Transform an express response (or make until no good)",

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