@nsshunt/stsfhirclient 2.0.27 → 2.0.29

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.
@@ -7,7 +7,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
10
- var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
+ var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
11
  var __exportAll = (all, no_symbols) => {
12
12
  let target = {};
13
13
  for (var name in all) __defProp(target, name, {
@@ -6350,7 +6350,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
6350
6350
  constructor(opts = {}) {
6351
6351
  this.schemas = {};
6352
6352
  this.refs = {};
6353
- this.formats = {};
6353
+ this.formats = Object.create(null);
6354
6354
  this._compilations = /* @__PURE__ */ new Set();
6355
6355
  this._loading = {};
6356
6356
  this._cache = /* @__PURE__ */ new Map();
@@ -9239,6 +9239,9 @@ var FhirRESTClient = class {
9239
9239
  }
9240
9240
  LogError = (method, error) => {
9241
9241
  this.#options.logger.error(`FhirRESTClient:${method}(): Error: [${error}]`);
9242
+ this.#options.logger.error(error);
9243
+ console.error(error);
9244
+ process.exit(0);
9242
9245
  };
9243
9246
  LogWarning = (method, message) => {
9244
9247
  this.#options.logger.warn(`FhirRESTClient:${method}(): Warn: [${message}]`);
@@ -9817,8 +9820,8 @@ Object.defineProperties(createChalk.prototype, styles);
9817
9820
  var chalk = createChalk();
9818
9821
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
9819
9822
  //#endregion
9820
- //#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DB59cw42.js
9821
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9823
+ //#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DcZ69ZvJ.js
9824
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
9822
9825
  var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9823
9826
  function E() {}
9824
9827
  E.prototype = {
@@ -13036,6 +13039,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13036
13039
  #authToken;
13037
13040
  #socket;
13038
13041
  #reconnectTimeout = 2e3;
13042
+ #ackTimeout = 5e3;
13039
13043
  constructor(name) {
13040
13044
  super();
13041
13045
  this.#name = name;
@@ -13076,6 +13080,13 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13076
13080
  get socket() {
13077
13081
  return this.#socket;
13078
13082
  }
13083
+ get ackTimeout() {
13084
+ return this.#ackTimeout;
13085
+ }
13086
+ WithAckTimeout(ackTimeout) {
13087
+ this.#ackTimeout = ackTimeout;
13088
+ return this;
13089
+ }
13079
13090
  WithAddress(address) {
13080
13091
  this.#address = address;
13081
13092
  return this;
@@ -13125,6 +13136,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13125
13136
  socketOptions.agent = this.#agentManager.GetAgent(this.#address);
13126
13137
  }
13127
13138
  } else socketOptions = { transports: ["websocket"] };
13139
+ socketOptions.ackTimeout = this.#ackTimeout;
13128
13140
  if (this.#authToken) socketOptions.auth = (cb) => {
13129
13141
  cb({ token: this.#authToken });
13130
13142
  };