Socket
Socket
Sign inDemoInstall

multiparty

Package Overview
Dependencies
11
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.0 to 4.2.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

### 4.2.1
* Douglas Christopher Wilson:
- Use uid-safe module to for temp file names
- Update to fd-slicer 1.1.0
- Update to http-errors 1.7.0
### 4.2.0

@@ -2,0 +9,0 @@

13

index.js

@@ -12,3 +12,3 @@ /*!

var createError = require('http-errors')
var randomBytes = require('random-bytes')
var uid = require('uid-safe')
var stream = require('stream');

@@ -49,5 +49,2 @@ var util = require('util');

// replace base64 characters with safe-for-filename characters
var b64Safe = {'/': '_', '+': '-'};
exports.Form = Form;

@@ -772,12 +769,6 @@

var ext = path.extname(filename).replace(FILE_EXT_RE, '$1');
var name = randoString(18) + ext;
var name = uid.sync(18) + ext
return path.join(baseDir, name);
}
function randoString(size) {
return randomBytes.sync(size).toString('base64').replace(/[\/\+]/g, function(x) {
return b64Safe[x];
});
}
function parseFilename(headerValue) {

@@ -784,0 +775,0 @@ var m = headerValue.match(/\bfilename="(.*?)"($|; )/i);

{
"name": "multiparty",
"description": "multipart/form-data parser which supports streaming",
"version": "4.2.0",
"version": "4.2.1",
"author": "Andrew Kelley <superjoe30@gmail.com>",

@@ -20,13 +20,14 @@ "contributors": [

"dependencies": {
"fd-slicer": "~1.0.1",
"http-errors": "~1.6.3",
"random-bytes": "~1.0.0",
"safe-buffer": "5.1.2"
"fd-slicer": "1.1.0",
"http-errors": "~1.7.0",
"safe-buffer": "5.1.2",
"uid-safe": "2.1.5"
},
"devDependencies": {
"eslint": "2.13.1",
"findit2": "2.2.3",
"istanbul": "0.4.5",
"mkdirp": "0.5.1",
"mocha": "3.5.3",
"pend": "1.2.0",
"require-all": "3.0.0",
"rimraf": "2.5.4",

@@ -46,6 +47,6 @@ "superagent": "1.8.5"

"lint": "eslint .",
"test": "node test/test.js",
"test-cov": "istanbul cover test/test.js",
"test-travis": "istanbul cover test/test.js --report lcovonly"
"test": "mocha --reporter spec --bail --check-leaks --no-exit test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks --no-exit test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks --no-exit test/"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc