Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6
@@ -6,2 +6,6 @@ # Change log | ||
## 2.0.0-alpha.6 - 2017-02-18 | ||
- Fix: handle client aborting request | ||
## 2.0.0-alpha.5 - 2017-02-14 | ||
@@ -8,0 +12,0 @@ |
var util = require('util') | ||
var errorMessages = new Map([ | ||
['CLIENT_ABORTED', 'Client aborted'], | ||
['LIMIT_PART_COUNT', 'Too many parts'], | ||
@@ -5,0 +6,0 @@ ['LIMIT_FILE_SIZE', 'File too large'], |
@@ -117,6 +117,10 @@ var path = require('path') | ||
var guard = new Promise(function (resolve, reject) { | ||
req.on('error', function (err) { reject(err) }) | ||
busboy.on('error', function (err) { reject(err) }) | ||
req.on('aborted', function () { reject(new MulterError('CLIENT_ABORTED')) }) | ||
busboy.on('partsLimit', function () { reject(new MulterError('LIMIT_PART_COUNT')) }) | ||
busboy.on('filesLimit', function () { reject(new MulterError('LIMIT_FILE_COUNT')) }) | ||
busboy.on('fieldsLimit', function () { reject(new MulterError('LIMIT_FIELD_COUNT')) }) | ||
busboy.on('finish', resolve) | ||
@@ -123,0 +127,0 @@ }) |
{ | ||
"name": "multer", | ||
"description": "Middleware for handling `multipart/form-data`.", | ||
"version": "2.0.0-alpha.5", | ||
"version": "2.0.0-alpha.6", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Hage Yaapa <captain@hacksparrow.com> (http://www.hacksparrow.com)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18821
260