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.11.6 to 0.11.7

6

CHANGELOG.md

@@ -8,2 +8,7 @@ # Nodecaf Changelog

## [v0.11.7] - 2021-05-03
### Fixed
- crash when client aborts request while sending body
## [v0.11.6] - 2021-05-03

@@ -496,1 +501,2 @@

[v0.11.6]: https://gitlab.com/GCSBOSS/nodecaf/-/tags/v0.11.6
[v0.11.7]: https://gitlab.com/GCSBOSS/nodecaf/-/tags/v0.11.7

10

lib/body.js

@@ -37,7 +37,11 @@

this.req.on('aborted', () =>
!this.complete && this.req.emit('error', new Error('Request was aborted')));
return new Promise((resolve, reject) => {
this.req.on('aborted', () => {
this.log.warn({ req: this.req, type: 'request' },
'Client aborted while sending request body');
!this.complete && reject(err);
this.complete = true;
});
this.req.on('end', () => {

@@ -44,0 +48,0 @@ !this.complete && resolve(Buffer.concat(buffer));

{
"name": "nodecaf",
"version": "0.11.6",
"version": "0.11.7",
"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