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

formidable

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formidable - npm Package Compare versions

Comparing version 0.9.11 to 1.0.0

npm-debug.log

4

lib/formidable/incoming_form.js

@@ -207,4 +207,4 @@ if (global.GENTLY) require = GENTLY.hijack(require);

var m;
if (m = this.headers['content-type'].match(/boundary=([^;]+)/i)) {
this._initMultipart(m[1]);
if (m = this.headers['content-type'].match(/boundary=(?:"([^"]+)"|([^;]+))/i)) {
this._initMultipart(m[1] || m[2]);
} else {

@@ -211,0 +211,0 @@ this._error(new Error('bad content-type header, no multipart boundary'));

@@ -1,6 +0,14 @@

{ "name" : "formidable",
"version": "0.9.11",
"dependencies": {"gently": ">=0.7.0"},
"directories" : { "lib" : "./lib/formidable" },
"main" : "./lib/formidable/index"
}
{
"name": "formidable",
"version": "1.0.0",
"dependencies": {
"gently": ">=0.7.0"
},
"directories": {
"lib": "./lib/formidable"
},
"main": "./lib/formidable/index",
"engines": {
"node": "*"
}
}

@@ -324,2 +324,11 @@ require('../common');

(function testQuotedBoundary() {
form.headers = {'content-type': 'multipart/form-data; boundary="' + BOUNDARY + '"'};
gently.expect(form, '_initMultipart', function(boundary) {
assert.equal(boundary, BOUNDARY);
});
form._parseContentType();
})();
(function testNoBoundary() {

@@ -326,0 +335,0 @@ form.headers = {'content-type': 'multipart/form-data'};

Sorry, the diff of this file is not supported yet

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