@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.
@@ -10190,8 +10190,14 @@ var FhirRESTClient = class {
10190
10190
  };
10191
10191
  else throw new Error(`FhirRESTClient:GetResource(): No response from #InvokeResourceAPI`);
10192
10192
  } catch (error) {
10193
- this.LogError("GetResource", error);
10194
- throw error;
10193
+ if (axios.default.isAxiosError(error)) {
10194
+ const axiosError = error;
10195
+ return {
10196
+ status: axiosError.response.status,
10197
+ body: axiosError.response.data,
10198
+ headers: { ETag: axiosError.response.headers["etag"] }
10199
+ };
10200
+ } else throw error;
10195
10201
  }
10196
10202
  };
10197
10203
  PutResource = async (resourceType, domainResource, versionIdETag) => {
@@ -10246,8 +10252,14 @@ var FhirRESTClient = class {
10246
10252
  };
10247
10253
  else throw new Error(`FhirRESTClient:GetHistoryInstanceFhirResource(): No response from #InvokeResourceAPI`);
10248
10254
  } catch (error) {
10249
- this.LogError("GetHistoryInstanceFhirResource", error);
10250
- throw error;
10255
+ if (axios.default.isAxiosError(error)) {
10256
+ const axiosError = error;
10257
+ return {
10258
+ status: axiosError.response.status,
10259
+ body: axiosError.response.data,
10260
+ headers: { ETag: axiosError.response.headers["etag"] }
10261
+ };
10262
+ } else throw error;
10251
10263
  }
10252
10264
  };
10253
10265
  ExtractNumber(str) {