🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

multer

Package Overview
Dependencies
Maintainers
5
Versions
55
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.1
to
2.0.2
+10
-5
lib/make-middleware.js

@@ -104,2 +104,11 @@ var is = require('type-is')

busboy.on('file', function (fieldname, fileStream, { filename, encoding, mimeType }) {
var pendingWritesIncremented = false
fileStream.on('error', function (err) {
if (pendingWritesIncremented) {
pendingWrites.decrement()
}
abortWithError(err)
})
if (fieldname == null) return abortWithCode('MISSING_FIELD_NAME')

@@ -136,2 +145,3 @@

var aborting = false
pendingWritesIncremented = true
pendingWrites.increment()

@@ -145,7 +155,2 @@

fileStream.on('error', function (err) {
pendingWrites.decrement()
abortWithError(err)
})
fileStream.on('limit', function () {

@@ -152,0 +157,0 @@ aborting = true

{
"name": "multer",
"description": "Middleware for handling `multipart/form-data`.",
"version": "2.0.1",
"version": "2.0.2",
"contributors": [

@@ -6,0 +6,0 @@ "Hage Yaapa <captain@hacksparrow.com> (http://www.hacksparrow.com)",