@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 CHANGED
@@ -914,7 +914,8 @@ const fetchFencePresignedURL = async ({ guid, method = 'GET', onAbort = ()=>null
914
914
  } : {}
915
915
  });
916
916
  if (!response.ok) {
917
- throw new HTTPError(response.status, response.statusText);
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: HTTPErrorMessages[error.status] || error.responseData?.message || 'No HTTP Error Message'
4631
+ message: error.responseData?.message || error.responseData?.detail || HTTPErrorMessages[error.status] || 'No HTTP Error Message'
4628
4632
  }
4629
4633
  };
4630
4634
  } else {