@vitrical/utils
Advanced tools
Comparing version 1.5.8 to 1.5.9
16
api.js
@@ -135,5 +135,7 @@ "use strict"; | ||
headers: { | ||
...(body && typeof body === 'string' | ||
? { 'Content-Type': 'text/plain' } | ||
: { 'Content-Type': 'application/json' }), | ||
...(body | ||
? typeof body === 'string' | ||
? { 'Content-Type': 'text/plain' } | ||
: { 'Content-Type': 'application/json' } | ||
: {}), | ||
...headers, | ||
@@ -181,5 +183,7 @@ }, | ||
headers: { | ||
...(body && typeof body === 'string' | ||
? { 'Content-Type': 'text/plain' } | ||
: { 'Content-Type': 'application/json' }), | ||
...(body | ||
? typeof body === 'string' | ||
? { 'Content-Type': 'text/plain' } | ||
: { 'Content-Type': 'application/json' } | ||
: {}), | ||
...headers, | ||
@@ -186,0 +190,0 @@ }, |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"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
49137
739