@highpoint/js-fetch
Advanced tools
Comparing version 2.3.0 to 3.0.0
@@ -201,5 +201,14 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread"; | ||
response = _context2.sent; | ||
if (response.headers.get('content-type').includes('application/json')) { | ||
_context2.next = 5; | ||
break; | ||
} | ||
throw new Error('Response not in expected JSON format'); | ||
case 5: | ||
return _context2.abrupt("return", checkResponse(response)); | ||
case 4: | ||
case 6: | ||
case "end": | ||
@@ -206,0 +215,0 @@ return _context2.stop(); |
{ | ||
"name": "@highpoint/js-fetch", | ||
"version": "2.3.0", | ||
"version": "3.0.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
14262
266