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 3.0.0-alpha.30 to 3.0.0-alpha.31

16

dist/Data/Fetcher.js

@@ -48,3 +48,4 @@ 'use strict';

credentials: 'same-origin',
method: method.toUpperCase()
method: method.toUpperCase(),
headers: new Headers()
};

@@ -54,3 +55,3 @@

if (type === 'form-data') {
args.body = params;
args.body = body;
search = _this.stringifyQuery(queryParams || query);

@@ -71,7 +72,6 @@ } else if (type === 'json') {

}
args.headers = new Headers({
Accept: 'application/json',
'Content-Type': 'application/json',
cookie: _this.getCookiesData()
});
args.headers.set('Accept', 'application/json');
args.headers.set('Content-Type', 'application/json');
args.headers.set('cookie', _this.getCookiesData());
} else {

@@ -82,3 +82,3 @@ throw new Error('Type \'' + type + '\' - is not supported in the Fetcher');

if ((0, _settings.isAuthenticated)()) {
args.headers.set('Authorization', (0, _settings.getTokenPrefix)() + (0, _settings.getToken)());
args.headers.set('Authorization', '' + (0, _settings.getTokenPrefix)() + (0, _settings.getToken)());
}

@@ -85,0 +85,0 @@

{
"name": "react-isomorphic-tools",
"version": "3.0.0-alpha.30",
"version": "3.0.0-alpha.31",
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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