Socket
Socket
Sign inDemoInstall

busboy

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

busboy - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

7

lib/main.js

@@ -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 @@

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