then-busboy
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -7,4 +7,2 @@ "use strict"; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _http = require("http"); | ||
@@ -93,9 +91,8 @@ | ||
options = (0, _lodash2.default)({}, defaults, options); | ||
const headers = request.headers; | ||
const busboy = new _busboy2.default(request, _extends({}, options, { headers | ||
})); | ||
options = (0, _lodash2.default)({}, defaults, options, { headers }); | ||
const busboy = new _busboy2.default(request, options); | ||
const entries = []; | ||
@@ -102,0 +99,0 @@ |
@@ -13,2 +13,5 @@ "use strict"; | ||
const getPrototype = Object.getPrototypeOf; | ||
const objectCtorString = Object.toString(); | ||
// Based ob lodash/isPlainObject | ||
@@ -20,3 +23,3 @@ function isPlainObject(val) { | ||
const pp = Object.getPrototypeOf(val); | ||
const pp = getPrototype(val); | ||
@@ -29,5 +32,5 @@ if (pp === null || pp === void 0) { | ||
return Ctor === Object.toString(); | ||
return Ctor === objectCtorString; | ||
} | ||
exports.default = isPlainObject; |
{ | ||
"name": "then-busboy", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Promise-based wrapper around Busboy. Process multipart/form-data content and returns it as a single object.", | ||
@@ -5,0 +5,0 @@ "repository": "octet-stream/then-busboy", |
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
27066