object-to-formdata
Advanced tools
Comparing version 4.2.1 to 4.2.2
{ | ||
"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; |
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
14113
355