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

shot

Package Overview
Dependencies
Maintainers
5
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shot - npm Package Compare versions

Comparing version 3.4.1 to 3.4.2

12

lib/response.js

@@ -51,5 +51,5 @@ 'use strict';

write(data, encoding) {
write(data, encoding, callback) {
super.write(data, encoding);
super.write(data, encoding, callback);
this._shot.payloadChunks.push(new Buffer(data, encoding));

@@ -59,5 +59,9 @@ return true; // Write always returns false when disconnected

end(data, encoding) {
end(data, encoding, callback) {
super.end(data, encoding);
if (data) {
this.write(data, encoding);
}
super.end(callback);
this.emit('finish');

@@ -64,0 +68,0 @@ }

{
"name": "shot",
"description": "Injects a fake HTTP request/response into a node HTTP server",
"version": "3.4.1",
"version": "3.4.2",
"repository": "git://github.com/hapijs/shot",

@@ -6,0 +6,0 @@ "main": "lib/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