formidable
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -10,3 +10,4 @@ if (global.GENTLY) require = GENTLY.hijack(require); | ||
StringDecoder = require('string_decoder').StringDecoder, | ||
EventEmitter = require('events').EventEmitter; | ||
EventEmitter = require('events').EventEmitter, | ||
Stream = require('stream').Stream; | ||
@@ -271,3 +272,4 @@ function IncomingForm() { | ||
parser.onPartBegin = function() { | ||
part = new EventEmitter(); | ||
part = new Stream(); | ||
part.readable = true; | ||
part.headers = {}; | ||
@@ -274,0 +276,0 @@ part.name = null; |
{ | ||
"name": "formidable", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"dependencies": {}, | ||
@@ -21,3 +21,4 @@ "devDependencies": { | ||
"node": "*" | ||
} | ||
} | ||
}, | ||
"optionalDependencies": {} | ||
} |
@@ -5,2 +5,3 @@ var common = require('../common'); | ||
EventEmitterStub = GENTLY.stub('events', 'EventEmitter'), | ||
StreamStub = GENTLY.stub('stream', 'Stream'), | ||
FileStub = GENTLY.stub('./file'); | ||
@@ -418,3 +419,3 @@ | ||
var PART; | ||
gently.expect(EventEmitterStub, 'new', function() { | ||
gently.expect(StreamStub, 'new', function() { | ||
PART = this; | ||
@@ -461,3 +462,3 @@ }); | ||
var PART; | ||
gently.expect(EventEmitterStub, 'new', function() { | ||
gently.expect(StreamStub, 'new', function() { | ||
PART = this; | ||
@@ -464,0 +465,0 @@ }); |
@@ -7,3 +7,3 @@ var common = require('../common'); | ||
var from; | ||
var form; | ||
test('IncomingForm', { | ||
@@ -10,0 +10,0 @@ before: function() { |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 10 instances in 1 package
1977
6
72442
34