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

web

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

README.md

2

package.json
{
"name": "web",
"version": "0.0.0",
"version": "0.0.1",
"description": "A small and fast web/http library for nodejs. (replaces the built-in http module)",

@@ -5,0 +5,0 @@ "main": "web.js",

@@ -81,11 +81,11 @@ var HTTPParser = process.binding("http_parser").HTTPParser;

var isStreaming = body && typeof body === "object" && typeof body.pipe === "function";
if (body && !isStreaming) head += body;
client.write(head);
if (!isStreaming) {
return done()
}
body.pipe(client);

@@ -109,9 +109,8 @@ body.on("end", done);

});
client.on("end", function () {
parser.finish();
});
function done() {
console.log(req);
if (req.shouldKeepAlive) {

@@ -118,0 +117,0 @@ parser.reinitialize(HTTPParser.REQUEST);

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