Socket
Socket
Sign inDemoInstall

multer

Package Overview
Dependencies
Maintainers
1
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 0.0.1 to 0.0.2

lab/app.js

8

index.js

@@ -12,3 +12,6 @@ var os = require('os');

// specify the destination directory, else, the uploads will be moved to the temporary dir of the system
var dest = options.dest || os.tmpdir();
var dest;
// some users may ommit the trailing slash
if (options.dest) { dest = options.dest.slice(-1) == '/' ? options.dest : options.dest + '/'; }
else { dest = os.tmpdir(); }

@@ -47,4 +50,3 @@ // make sure the dest dir exists

fieldname: fieldname,
stream: fileStream,
originalName: filename,
originalname: filename,
name: newFilename,

@@ -51,0 +53,0 @@ encoding: encoding,

{
"name": "multer",
"version": "0.0.1",
"version": "0.0.2",
"description": "Connect middleware for handling multipart/form-data",

@@ -35,3 +35,4 @@ "main": "index.js",

"should": "*",
"supertest": "*"
"supertest": "*",
"express": "*"
},

@@ -38,0 +39,0 @@ "author": {

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