Comparing version 0.0.1 to 0.0.2
@@ -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": { |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
769061
17
126
5
2
1