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

object-to-formdata

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-to-formdata - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

2

package.json
{
"name": "object-to-formdata",
"version": "4.2.1",
"version": "4.2.2",
"keywords": [

@@ -5,0 +5,0 @@ "form",

@@ -43,3 +43,3 @@ function isUndefined(value) {

function initCfgValue(value) {
function initCfg(value) {
return isUndefined(value) ? false : value;

@@ -52,8 +52,8 @@ }

Object.keys(cfg).forEach((opt) => {
const value = cfg[opt];
cfg.indices = initCfg(cfg.indices);
cfg.nullsAsUndefineds = initCfg(cfg.nullsAsUndefineds);
cfg.booleansAsIntegers = initCfg(cfg.booleansAsIntegers);
cfg.allowEmptyArrays = initCfg(cfg.allowEmptyArrays);
cfg.noFilesWithArrayNotation = initCfg(cfg.noFilesWithArrayNotation);
cfg[opt] = isUndefined(value) ? false : value;
});
if (isUndefined(obj)) {

@@ -60,0 +60,0 @@ return fd;

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