@vitrical/utils
Advanced tools
Comparing version 1.5.7 to 1.5.8
@@ -145,3 +145,3 @@ "use strict"; | ||
const contentType = res.headers.get('content-type'); | ||
if (contentType?.includes('application/json')) { | ||
if (!contentType?.includes('text/plain')) { | ||
body = await res.json(); | ||
@@ -178,3 +178,3 @@ } | ||
url, | ||
data: body, | ||
data: formData || body, | ||
params: query, | ||
@@ -181,0 +181,0 @@ headers: { |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"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
48977