@gen3/core 0.12.14 → 0.12.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/features/dataLibrary/storage/APIStorageService.d.ts.map +1 -1
- package/dist/dts/features/filters/utils.d.ts.map +1 -1
- package/dist/dts/features/serviceStatus/hooks.d.ts +1 -0
- package/dist/dts/features/serviceStatus/hooks.d.ts.map +1 -0
- package/dist/dts/utils/fetch.d.ts.map +1 -1
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -914,7 +914,8 @@ const fetchFencePresignedURL = async ({ guid, method = 'GET', onAbort = ()=>null
|
|
|
914
914
|
} : {}
|
|
915
915
|
});
|
|
916
916
|
if (!response.ok) {
|
|
917
|
-
|
|
917
|
+
const errorBody = await response.json();
|
|
918
|
+
throw new HTTPError(response.status, response.statusText, errorBody);
|
|
918
919
|
}
|
|
919
920
|
if (response.status === 204) {
|
|
920
921
|
// no content so returns null
|
|
@@ -1753,7 +1754,10 @@ const filterSetToOperation = (fs)=>{
|
|
|
1753
1754
|
};
|
|
1754
1755
|
};
|
|
1755
1756
|
|
|
1756
|
-
const FieldNameOverrides = {
|
|
1757
|
+
const FieldNameOverrides = {
|
|
1758
|
+
gender: 'Sex',
|
|
1759
|
+
Gender: 'Sex'
|
|
1760
|
+
};
|
|
1757
1761
|
const COMMON_PREPOSITIONS = [
|
|
1758
1762
|
'a',
|
|
1759
1763
|
'an',
|
|
@@ -4624,7 +4628,7 @@ const fetchFromDataLibraryAPI = async (url, method = HttpMethod.GET, body = unde
|
|
|
4624
4628
|
return {
|
|
4625
4629
|
error: {
|
|
4626
4630
|
status: error.status,
|
|
4627
|
-
message:
|
|
4631
|
+
message: error.responseData?.message || error.responseData?.detail || HTTPErrorMessages[error.status] || 'No HTTP Error Message'
|
|
4628
4632
|
}
|
|
4629
4633
|
};
|
|
4630
4634
|
} else {
|