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

nodesi

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodesi - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

4

lib/middleware.js

@@ -37,5 +37,9 @@ 'use strict';

res.send = body => {
const ctype = res.get('Content-Type');
if(typeof body === 'string' && !req._esiProcessed) {
esi.process(body, req.esiOptions).then(oldSend);
}
else if(body instanceof Buffer && ctype && ctype.match(/(text\/)|(\/xml)/) && !req._esiProcessed) {
esi.process(body.toString(), req.esiOptions).then(oldSend);
}
else {

@@ -42,0 +46,0 @@ oldSend(body);

2

package.json
{
"name": "nodesi",
"version": "1.12.1",
"version": "1.13.0",
"description": "ESI: the good parts in node.js",

@@ -5,0 +5,0 @@ "main": "esi.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