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

then-busboy

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

then-busboy - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

9

lib/then-busboy.js

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

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