Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 1.0.0 to 1.0.1

12

lib/make-middleware.js

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

2

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

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