react-isomorphic-tools
Advanced tools
Comparing version 3.0.0-alpha.30 to 3.0.0-alpha.31
@@ -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", |
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
137834
32
1363