Comparing version 1.0.0 to 1.0.1
@@ -109,4 +109,9 @@ var is = require('type-is') | ||
fileStream.on('error', abortWithError) | ||
fileStream.on('error', function (err) { | ||
pendingWrites.decrement() | ||
abortWithError(err) | ||
}) | ||
fileStream.on('limit', function () { | ||
pendingWrites.decrement() | ||
abortWithCode('LIMIT_FILE_SIZE', fieldname) | ||
@@ -116,3 +121,6 @@ }) | ||
storage._handleFile(req, file, function (err, info) { | ||
if (err) return abortWithError(err) | ||
if (err) { | ||
pendingWrites.decrement() | ||
return abortWithError(err) | ||
} | ||
@@ -119,0 +127,0 @@ var fileInfo = extend(file, info) |
{ | ||
"name": "multer", | ||
"description": "Middleware for handling `multipart/form-data`.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20396
321
0