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

express-fileupload

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-fileupload - npm Package Compare versions

Comparing version 1.1.6-alpha.2 to 1.1.6-alpha.3

10

lib/utilities.js

@@ -157,4 +157,10 @@ 'use strict';

const moveFile = (src, dst, callback) => {
// Copy file to dst and delete src whether success.
copyFile(src, dst, err => err ? callback(err) : deleteFile(src, callback));
fs.rename(src, dst, err => {
if (err) {
// Copy file to dst and delete src whether success.
copyFile(src, dst, err => err ? callback(err) : deleteFile(src, callback));
return;
}
callback();
});
};

@@ -161,0 +167,0 @@

2

package.json
{
"name": "express-fileupload",
"version": "1.1.6-alpha.2",
"version": "1.1.6-alpha.3",
"author": "Richard Girges <richardgirges@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Simple express file upload middleware that wraps around Busboy",

@@ -21,3 +21,4 @@ 'use strict';

saveBufferToFile,
parseFileName
parseFileName,
uriDecodeFileName
} = require('../lib/utilities');

@@ -24,0 +25,0 @@

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