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

nodecaf

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodecaf - npm Package Compare versions

Comparing version 0.12.2 to 0.12.3

2

lib/api.js

@@ -32,3 +32,3 @@ const assert = require('assert');

r.regexp = new RegExp(regexp);
r.regexp = new RegExp('^' + regexp + '$');
return r;

@@ -35,0 +35,0 @@ }

@@ -42,8 +42,13 @@ const { sign } = require('cookie-signature');

this.res && this.res.write(chunk);
this.body ? this.body.concat(chunk) : this.body = chunk;
if(!this.body)
this.body = chunk;
else if(this.body instanceof Buffer)
this.body = Buffer.concat([ this.body, chunk ]);
else
this.body += String(chunk);
}
end(body){
this.body ? this.body.concat(body) : this.body = body;
this.res && this.res.end(body);
body && this.write(body);
this.res && this.res.end();

@@ -50,0 +55,0 @@ this.log.debug({

{
"name": "nodecaf",
"version": "0.12.2",
"version": "0.12.3",
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.",

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