@vitrical/utils
Advanced tools
Comparing version 1.5.9 to 1.6.0
10
api.js
@@ -125,3 +125,3 @@ "use strict"; | ||
method: lcaseMethod, | ||
body: formData | ||
body: formData !== undefined | ||
? formData | ||
@@ -180,3 +180,3 @@ : body && | ||
url, | ||
data: formData || body, | ||
data: formData !== undefined ? formData : body, | ||
params: query, | ||
@@ -188,3 +188,7 @@ headers: { | ||
: { 'Content-Type': 'application/json' } | ||
: {}), | ||
: formData | ||
? { | ||
'Content-Type': 'multipart/form-data', | ||
} | ||
: {}), | ||
...headers, | ||
@@ -191,0 +195,0 @@ }, |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.5.9", | ||
"version": "1.6.0", | ||
"description": "Collection of useful functions and typings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
49433
743