Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-isomorphic-tools

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-isomorphic-tools - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

8

lib/Fetcher/FetcherClass.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc