@nsshunt/stsfhirclient 2.0.41 → 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.
package/dist/stsfhirclient.mjs
CHANGED
|
@@ -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(`
|
|
9711
|
-
if (axiosError.response.data) this.#options.logger.error(chalk.red(`
|
|
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(`
|
|
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(`
|
|
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) => {
|
|
@@ -13316,7 +13315,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13316
13315
|
} else {
|
|
13317
13316
|
const errorMessage = "SocketIoClient:on(\"connect\"): Could not get socket object from socket.io, Address: [${socketDetail.address}]";
|
|
13318
13317
|
this.LogErrorMessage(errorMessage);
|
|
13319
|
-
this.SocketConnectError(new Error(errorMessage));
|
|
13318
|
+
this.SocketConnectError(/* @__PURE__ */ new Error(errorMessage));
|
|
13320
13319
|
}
|
|
13321
13320
|
});
|
|
13322
13321
|
this.#socket.on("disconnect", (reason) => {
|