@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.cjs
CHANGED
|
@@ -9710,25 +9710,24 @@ var FhirRESTClient = class {
|
|
|
9710
9710
|
return `${this.#options.endpoint}:${this.#options.stsfhirport}${this.#options.stsfhirapiroot}`;
|
|
9711
9711
|
}
|
|
9712
9712
|
HandleError = (error) => {
|
|
9713
|
-
this.#options.logger.error(chalk.red(`HandleError(): Error: [${error}]`));
|
|
9713
|
+
this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): Error: [${error}]`));
|
|
9714
9714
|
if (axios.default.isAxiosError(error)) {
|
|
9715
9715
|
const axiosError = error;
|
|
9716
9716
|
if (axiosError.response) {
|
|
9717
|
-
this.#options.logger.error(chalk.red(`AXIOS Error Response.Status = [${axiosError.response.status}]`));
|
|
9718
|
-
if (axiosError.response.headers) this.#options.logger.error(chalk.red(`
|
|
9719
|
-
if (axiosError.response.data) this.#options.logger.error(chalk.red(`
|
|
9717
|
+
this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): AXIOS Error Response.Status = [${axiosError.response.status}]`));
|
|
9718
|
+
if (axiosError.response.headers) this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): headers: [${JSON.stringify(axiosError.response.headers)}]`));
|
|
9719
|
+
if (axiosError.response.data) this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): data: [${JSON.stringify(axiosError.response.data)}]`));
|
|
9720
9720
|
try {
|
|
9721
|
-
if (axiosError.response.config) this.#options.logger.error(chalk.red(`
|
|
9721
|
+
if (axiosError.response.config) this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): config: [${JSON.stringify(axiosError.response.config)}]`));
|
|
9722
9722
|
} catch (innererror) {
|
|
9723
|
-
this.#options.logger.error(chalk.red(`
|
|
9723
|
+
this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): could not get response config, error: [${innererror}]`));
|
|
9724
9724
|
}
|
|
9725
|
-
} else this.#options.logger.error(chalk.red(`AXIOS Error = [${axiosError}]`));
|
|
9725
|
+
} else this.#options.logger.error(chalk.red(`FhirRESTClient:HandleError(): AXIOS Error = [${axiosError}]`));
|
|
9726
9726
|
}
|
|
9727
9727
|
};
|
|
9728
9728
|
LogError = (method, error) => {
|
|
9729
9729
|
this.#options.logger.error(`FhirRESTClient:${method}(): Error: [${error}]`);
|
|
9730
9730
|
this.#options.logger.error(error);
|
|
9731
|
-
console.error(error);
|
|
9732
9731
|
this.HandleError(error);
|
|
9733
9732
|
};
|
|
9734
9733
|
LogWarning = (method, message) => {
|
|
@@ -13324,7 +13323,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13324
13323
|
} else {
|
|
13325
13324
|
const errorMessage = "SocketIoClient:on(\"connect\"): Could not get socket object from socket.io, Address: [${socketDetail.address}]";
|
|
13326
13325
|
this.LogErrorMessage(errorMessage);
|
|
13327
|
-
this.SocketConnectError(new Error(errorMessage));
|
|
13326
|
+
this.SocketConnectError(/* @__PURE__ */ new Error(errorMessage));
|
|
13328
13327
|
}
|
|
13329
13328
|
});
|
|
13330
13329
|
this.#socket.on("disconnect", (reason) => {
|