@equinor/fusion
Advanced tools
Comparing version 2.4.21 to 2.4.22
@@ -168,5 +168,3 @@ import uuid from 'uuid/v1'; | ||
// Add more info | ||
const errorResponse = (await response.text()).length | ||
? this.parseResponseJSONAsync(response) | ||
: null; | ||
const errorResponse = await this.parseResponseJSONAsync(response); | ||
throw new HttpClientRequestFailedError(url, response.status, errorResponse); | ||
@@ -216,3 +214,3 @@ } | ||
const text = await response.text(); | ||
const json = JSON.parse(text); | ||
const json = text ? JSON.parse(text) : null; | ||
return json; | ||
@@ -230,2 +228,3 @@ } | ||
// TODO: Update cache status? | ||
// TODO: response should hint of null or throw empty response error, too big for current fix scope | ||
return this.createHttpResponse(request, response, data); | ||
@@ -232,0 +231,0 @@ } |
@@ -1,2 +0,2 @@ | ||
declare const _default: "2.4.21"; | ||
declare const _default: "2.4.22"; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export default '2.4.21'; | ||
export default '2.4.22'; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "2.4.21", | ||
"version": "2.4.22", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
347403
8180