react-isomorphic-tools
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9
@@ -47,14 +47,25 @@ 'use strict'; | ||
query = ''; | ||
_context.t0 = type; | ||
_context.next = _context.t0 === 'form-data' ? 6 : _context.t0 === 'json' ? 9 : 13; | ||
break; | ||
case 6: | ||
if (!(type === 'form-data')) { | ||
_context.next = 8; | ||
break; | ||
} | ||
args.body = params; | ||
query = _this.stringifyQuery(queryParams); | ||
return _context.abrupt('break', 14); | ||
_context.next = 14; | ||
break; | ||
case 9: | ||
args.body = JSON.stringify(params); | ||
query = _this.stringifyQuery(queryParams); | ||
case 8: | ||
if (!(type === 'json')) { | ||
_context.next = 13; | ||
break; | ||
} | ||
if (method === 'GET') { | ||
query = _this.stringifyQuery(params); | ||
} else { | ||
args.body = JSON.stringify(params); | ||
query = _this.stringifyQuery(queryParams); | ||
} | ||
args.headers = new Headers({ | ||
@@ -65,3 +76,4 @@ Accept: 'application/json', | ||
}); | ||
return _context.abrupt('break', 14); | ||
_context.next = 14; | ||
break; | ||
@@ -109,3 +121,3 @@ case 13: | ||
_context.prev = 30; | ||
_context.t1 = _context['catch'](16); | ||
_context.t0 = _context['catch'](16); | ||
throw { | ||
@@ -119,3 +131,3 @@ type: 'notAvailableResource', | ||
}, | ||
e: _context.t1 | ||
e: _context.t0 | ||
}; | ||
@@ -122,0 +134,0 @@ |
{ | ||
"name": "react-isomorphic-tools", | ||
"version": "3.0.0-alpha.8", | ||
"version": "3.0.0-alpha.9", | ||
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
141243
1380