react-isomorphic-tools
Advanced tools
Comparing version 2.3.4 to 2.3.5
@@ -177,5 +177,3 @@ 'use strict'; | ||
if (!(data.headers.get('content-type').indexOf(function (item) { | ||
return item == 'application/json'; | ||
}) != -1)) { | ||
if (!(data.headers.get('content-type').indexOf('application/json') != -1)) { | ||
_context.next = 32; | ||
@@ -324,5 +322,3 @@ break; | ||
if (!(contentType && contentType.indexOf(function (item) { | ||
return item == 'application/json'; | ||
}) != -1)) { | ||
if (!(contentType && contentType.indexOf('application/json') != -1)) { | ||
_context.next = 87; | ||
@@ -329,0 +325,0 @@ break; |
{ | ||
"name": "react-isomorphic-tools", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -57,3 +57,3 @@ import 'isomorphic-fetch' | ||
if (data.status >= 400) { | ||
if (data.headers.get('content-type').indexOf((item)=>item == 'application/json') != -1) { | ||
if (data.headers.get('content-type').indexOf('application/json') != -1) { | ||
error = await data.json() | ||
@@ -124,3 +124,3 @@ } else { | ||
if (contentType && contentType.indexOf((item)=>item == 'application/json') != -1) { | ||
if (contentType && contentType.indexOf('application/json') != -1) { | ||
return await data.json() | ||
@@ -127,0 +127,0 @@ } |
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
242363
2803