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

express-hijackresponse

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-hijackresponse - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

10

lib/index.js

@@ -14,12 +14,6 @@ var Stream = require('stream').Stream;

originalResponse.on('drain', function () {
process.nextTick(function () {
hijackedResponse.emit('drain');
});
});
hijackedResponse.readable = hijackedResponse.writable = true;
hijackedResponse.write = function (chunk, encoding) {
return write.call(originalResponse, chunk, encoding);
write.call(originalResponse, chunk, encoding);
};

@@ -88,3 +82,3 @@

} else {
return write.call(this, chunk, encoding);
write.call(this, chunk, encoding);
}

@@ -91,0 +85,0 @@ };

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Rewrite HTTP responses on their way out.",
"version": "0.1.1",
"version": "0.1.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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