Socket
Socket
Sign inDemoInstall

multer

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multer - npm Package Compare versions

Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6

4

CHANGELOG.md

@@ -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 @@ })

2

package.json
{
"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)",

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