Socket
Socket
Sign inDemoInstall

circle

Package Overview
Dependencies
8
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.0.9

30

lib/response.js

@@ -10,2 +10,12 @@ var parseURL = require('url').parse;

function newResponse (match, format, req, res, callback) {
var buffer;
reply.on = on;
reply.once = on;
reply.write = write;
reply.end = end;
reply.emit = emit;
reply.removeEventListener = removeEventListener;
reply.writable = true;
if (req.method != 'POST') {

@@ -45,2 +55,19 @@ return callback(undefined, reply);

}
function emit (event, source) {
if (event != 'pipe') return;
source.on('error', reply);
}
function write (chunk) {
if (!buffer) {
buffer = '';
}
buffer += chunk;
}
function end () {
reply(undefined, buffer);
}
}

@@ -58,1 +85,4 @@

}
function on () {}
function removeEventListener () {}

2

package.json
{
"name": "circle",
"version": "0.0.8",
"version": "0.0.9",
"description": "Minimalistic JSON API Server",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc