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

shot

Package Overview
Dependencies
Maintainers
1
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 0.0.5 to 0.0.6

15

lib/shot.js

@@ -80,2 +80,17 @@ // Load modules

internals.Response.prototype.writeHead = function () {
var headers = ((arguments.length === 2 && typeof arguments[1] === 'object') ? arguments[1] : (arguments.length === 3 ? arguments[2] : {}));
var result = Http.ServerResponse.prototype.writeHead.apply(this, arguments);
this._headers = this._headers || {};
var keys = Object.keys(headers);
for (var i = 0, il = keys.length; i < il; ++i) {
this._headers[keys[i]] = headers[keys[i]];
}
return result;
};
internals.Response.prototype.write = function (chunk, encoding) {

@@ -82,0 +97,0 @@

2

package.json
{
"name": "shot",
"description": "Injects a fake HTTP request/response into a node HTTP server",
"version": "0.0.5",
"version": "0.0.6",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "contributors":[

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