@nsshunt/stsfhirclient 2.0.42 → 2.0.43

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.
@@ -9702,25 +9702,24 @@ var FhirRESTClient = class {
9702
9702
  return `${this.#options.endpoint}:${this.#options.stsfhirport}${this.#options.stsfhirapiroot}`;
9703
9703
  }
9704
9704
  HandleError = (error) => {
9705
- this.#options.logger.error(chalk.red(`HandleError(): Error: [${error}]`));
9705
+ this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): Error: [${error}]`));
9706
9706
  if (axios.isAxiosError(error)) {
9707
9707
  const axiosError = error;
9708
9708
  if (axiosError.response) {
9709
- this.#options.logger.error(chalk.red(`AXIOS Error Response.Status = [${axiosError.response.status}]`));
9710
- if (axiosError.response.headers) this.#options.logger.error(chalk.red(` headers: [${JSON.stringify(axiosError.response.headers)}]`));
9711
- if (axiosError.response.data) this.#options.logger.error(chalk.red(` data: [${JSON.stringify(axiosError.response.data)}]`));
9709
+ this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): AXIOS Error Response.Status = [${axiosError.response.status}]`));
9710
+ if (axiosError.response.headers) this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): headers: [${JSON.stringify(axiosError.response.headers)}]`));
9711
+ if (axiosError.response.data) this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): data: [${JSON.stringify(axiosError.response.data)}]`));
9712
9712
  try {
9713
- if (axiosError.response.config) this.#options.logger.error(chalk.red(` config: [${JSON.stringify(axiosError.response.config)}]`));
9713
+ if (axiosError.response.config) this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): config: [${JSON.stringify(axiosError.response.config)}]`));
9714
9714
  } catch (innererror) {
9715
- this.#options.logger.error(chalk.red(` could not get response config, error: [${innererror}]`));
9715
+ this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): could not get response config, error: [${innererror}]`));
9716
9716
  }
9717
- } else this.#options.logger.error(chalk.red(`AXIOS Error = [${axiosError}]`));
9717
+ } else this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): AXIOS Error = [${axiosError}]`));
9718
9718
  }
9719
9719
  };
9720
9720
  LogError = (method, error) => {
9721
9721
  this.#options.logger.error(`FhirRESTClient:${method}(): Error: [${error}]`);
9722
9722
  this.#options.logger.error(error);
9723
- console.error(error);
9724
9723
  this.HandleError(error);
9725
9724
  };
9726
9725
  LogWarning = (method, message) => {