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

ee-formdata-reader

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-formdata-reader - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

test/post4.mime

2

lib/FormdataReader.js

@@ -112,3 +112,3 @@

, getForm: function(){
return this.isSupportedType() ? this.form : null;
return this.isSupportedType() ? (this.form || {}) : null;
}

@@ -115,0 +115,0 @@

{
"name" : "ee-formdata-reader"
, "description" : "reads formdata from requests"
, "version" : "0.1.15"
, "version" : "0.1.16"
, "homepage" : "https://github.com/eventEmitter/ee-formdata-reader"

@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)"

@@ -48,2 +48,3 @@

Object.keys(message).forEach(function(key){// log(message[key]);

@@ -97,2 +98,13 @@ if (Array.isArray(message[key])){

});
it('Should be able to decode an empty multipart post', function(done){
var reader = new FormdataReader({
request: createRequest('post4.mime', 'multipart/form-data;')
});
reader.on('end', function(){
assert.equal(JSON.stringify({}), JSON.stringify(reader.getForm()), 'message hash is different!')
done();
});
});
});
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