@nsshunt/stsfhirclient 2.0.46 → 2.0.48

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.
@@ -10182,8 +10182,14 @@ var FhirRESTClient = class {
10182
10182
  };
10183
10183
  else throw new Error(`FhirRESTClient:GetResource(): No response from #InvokeResourceAPI`);
10184
10184
  } catch (error) {
10185
- this.LogError("GetResource", error);
10186
- throw error;
10185
+ if (axios.isAxiosError(error)) {
10186
+ const axiosError = error;
10187
+ return {
10188
+ status: axiosError.response.status,
10189
+ body: axiosError.response.data,
10190
+ headers: { ETag: axiosError.response.headers["etag"] }
10191
+ };
10192
+ } else throw error;
10187
10193
  }
10188
10194
  };
10189
10195
  PutResource = async (resourceType, domainResource, versionIdETag) => {
@@ -10238,8 +10244,14 @@ var FhirRESTClient = class {
10238
10244
  };
10239
10245
  else throw new Error(`FhirRESTClient:GetHistoryInstanceFhirResource(): No response from #InvokeResourceAPI`);
10240
10246
  } catch (error) {
10241
- this.LogError("GetHistoryInstanceFhirResource", error);
10242
- throw error;
10247
+ if (axios.isAxiosError(error)) {
10248
+ const axiosError = error;
10249
+ return {
10250
+ status: axiosError.response.status,
10251
+ body: axiosError.response.data,
10252
+ headers: { ETag: axiosError.response.headers["etag"] }
10253
+ };
10254
+ } else throw error;
10243
10255
  }
10244
10256
  };
10245
10257
  ExtractNumber(str) {