Comparing version 0.2.1 to 0.2.2
@@ -50,3 +50,6 @@ var fs = require('fs'), | ||
headers: headers, | ||
parsedConType: parsed | ||
parsedConType: parsed, | ||
highWaterMark: undefined, | ||
fileHwm: undefined, | ||
defCharset: undefined | ||
}; | ||
@@ -58,3 +61,3 @@ if (this.opts.highWaterMark) | ||
cfg.defCharset = this.opts.defCharset; | ||
this._parser = new type(this, cfg); | ||
this._parser = type(this, cfg); | ||
return; | ||
@@ -61,0 +64,0 @@ } |
@@ -24,3 +24,8 @@ // TODO: | ||
function Multipart(boy, cfg) { | ||
var boundary, i, len, self = this, | ||
if (!(this instanceof Multipart)) | ||
return new Multipart(boy, cfg); | ||
var i, | ||
len, | ||
self = this, | ||
boundary, | ||
limits = cfg.limits, | ||
@@ -35,3 +40,4 @@ headers = cfg.headers, | ||
for (i = 0, len = parsedConType.length; i < len; ++i) { | ||
if (RE_BOUNDARY.test(parsedConType[i][0])) { | ||
if (Array.isArray(parsedConType[i]) | ||
&& RE_BOUNDARY.test(parsedConType[i][0])) { | ||
boundary = parsedConType[i][1]; | ||
@@ -52,3 +58,3 @@ break; | ||
if (!boundary) | ||
if (typeof boundary !== 'string') | ||
throw new Error('Multipart: Boundary not found'); | ||
@@ -55,0 +61,0 @@ |
@@ -8,2 +8,4 @@ var Decoder = require('../utils').Decoder, | ||
function UrlEncoded(boy, cfg) { | ||
if (!(this instanceof UrlEncoded)) | ||
return new UrlEncoded(boy, cfg); | ||
var limits = cfg.limits, | ||
@@ -26,3 +28,4 @@ headers = cfg.headers, | ||
for (var i = 0, len = parsedConType.length; i < len; ++i) { | ||
if (RE_CHARSET.test(parsedConType[i][0])) { | ||
if (Array.isArray(parsedConType[i]) | ||
&& RE_CHARSET.test(parsedConType[i][0])) { | ||
charset = parsedConType[i][1].toLowerCase(); | ||
@@ -29,0 +32,0 @@ break; |
{ "name": "busboy", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Brian White <mscdex@mscdex.net>", | ||
@@ -7,3 +7,3 @@ "description": "A streaming parser for HTML form data for node.js", | ||
"dependencies": { | ||
"dicer": "0.2.2", | ||
"dicer": "0.2.3", | ||
"readable-stream": "1.1.x" | ||
@@ -10,0 +10,0 @@ }, |
@@ -79,2 +79,3 @@ Description | ||
var http = require('http'), | ||
path = require('path'), | ||
os = require('os'); | ||
@@ -81,0 +82,0 @@ |
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
668082
5364
212
+ Addeddicer@0.2.3(transitive)
- Removeddicer@0.2.2(transitive)
Updateddicer@0.2.3