@highpoint/js-fetch
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -208,2 +208,3 @@ import _objectSpread2 from "@babel/runtime/helpers/objectSpread"; | ||
var response, | ||
responseBody, | ||
_args2 = arguments; | ||
@@ -219,5 +220,10 @@ return _regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
response = _context2.sent; | ||
_context2.next = 5; | ||
return checkResponse(response); | ||
case 5: | ||
responseBody = _context2.sent; | ||
if (response.headers.get('content-type').includes('application/json')) { | ||
_context2.next = 5; | ||
_context2.next = 8; | ||
break; | ||
@@ -228,6 +234,6 @@ } | ||
case 5: | ||
return _context2.abrupt("return", checkResponse(response)); | ||
case 8: | ||
return _context2.abrupt("return", responseBody); | ||
case 6: | ||
case 9: | ||
case "end": | ||
@@ -234,0 +240,0 @@ return _context2.stop(); |
{ | ||
"name": "@highpoint/js-fetch", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "HighPoint Fetch Library", | ||
@@ -5,0 +5,0 @@ "main": "dist/js-fetch.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
15379
284