@lion/ajax
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@lion/ajax", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Thin wrapper around fetch with support for interceptors.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -196,3 +196,3 @@ /* eslint-disable consistent-return */ | ||
let body = responseText; | ||
if (response.headers.get('content-type')?.includes('application/json')) { | ||
if (response.headers.get('content-type')?.includes('json')) { | ||
try { | ||
@@ -199,0 +199,0 @@ body = JSON.parse(responseText); |
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
175081