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.12 to 0.0.13

8

lib/index.js

@@ -197,5 +197,9 @@ // Load modules

var decode = function (value, encoding) {
return new Buffer(value, encoding).toString();
};
if (self.output.length === 1) {
// Single string output
return self.output[0].slice(self.output[0].indexOf('\r\n\r\n') + 4);
return decode(self.output[0].slice(self.output[0].indexOf('\r\n\r\n') + 4), self.outputEncodings[0]);
}

@@ -211,3 +215,3 @@

// String
output += self.output[i];
output += decode(self.output[i], self.outputEncodings[i]);
}

@@ -214,0 +218,0 @@ }

{
"name": "shot",
"description": "Injects a fake HTTP request/response into a node HTTP server",
"version": "0.0.12",
"version": "0.0.13",
"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