formidable
Advanced tools
Comparing version 1.0.15 to 1.0.16
if (global.GENTLY) require = GENTLY.hijack(require); | ||
var crypto = require('crypto'); | ||
var fs = require('fs'); | ||
@@ -531,5 +532,6 @@ var util = require('util'), | ||
IncomingForm.prototype._uploadPath = function(filename) { | ||
var name = ''; | ||
for (var i = 0; i < 32; i++) { | ||
name += Math.floor(Math.random() * 16).toString(16); | ||
var name = 'upload_'; | ||
var buf = crypto.randomBytes(16); | ||
for (var i = 0; i < buf.length; ++i) { | ||
name += ('0' + buf[i].toString(16)).slice(-2); | ||
} | ||
@@ -536,0 +538,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/felixge/node-formidable", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"devDependencies": { | ||
@@ -8,0 +8,0 @@ "gently": "0.8.0", |
@@ -105,3 +105,3 @@ # Formidable | ||
``` | ||
Limits the amount of memory a field (not file) can allocate in bytes. | ||
Limits the amount of memory all fields together (except files) can allocate in bytes. | ||
If this value is exceeded, an `'error'` event is emitted. The default | ||
@@ -253,3 +253,3 @@ size is 2MB. | ||
Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core). | ||
Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. After this event is emitted, an `error` event will follow. In the future there will be a separate 'timeout' event (needs a change in the node core). | ||
```javascript | ||
@@ -256,0 +256,0 @@ form.on('aborted', function() { |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40838
884
0