@nsshunt/stsfhirclient 2.0.27 → 2.0.28

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 __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
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, {
@@ -6342,7 +6342,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
6342
6342
  constructor(opts = {}) {
6343
6343
  this.schemas = {};
6344
6344
  this.refs = {};
6345
- this.formats = {};
6345
+ this.formats = Object.create(null);
6346
6346
  this._compilations = /* @__PURE__ */ new Set();
6347
6347
  this._loading = {};
6348
6348
  this._cache = /* @__PURE__ */ new Map();
@@ -9231,6 +9231,7 @@ var FhirRESTClient = class {
9231
9231
  }
9232
9232
  LogError = (method, error) => {
9233
9233
  this.#options.logger.error(`FhirRESTClient:${method}(): Error: [${error}]`);
9234
+ this.#options.logger.error(error);
9234
9235
  };
9235
9236
  LogWarning = (method, message) => {
9236
9237
  this.#options.logger.warn(`FhirRESTClient:${method}(): Warn: [${message}]`);
@@ -9809,8 +9810,8 @@ Object.defineProperties(createChalk.prototype, styles);
9809
9810
  var chalk = createChalk();
9810
9811
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
9811
9812
  //#endregion
9812
- //#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DB59cw42.js
9813
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9813
+ //#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DcZ69ZvJ.js
9814
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
9814
9815
  var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9815
9816
  function E() {}
9816
9817
  E.prototype = {
@@ -13028,6 +13029,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13028
13029
  #authToken;
13029
13030
  #socket;
13030
13031
  #reconnectTimeout = 2e3;
13032
+ #ackTimeout = 5e3;
13031
13033
  constructor(name) {
13032
13034
  super();
13033
13035
  this.#name = name;
@@ -13068,6 +13070,13 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13068
13070
  get socket() {
13069
13071
  return this.#socket;
13070
13072
  }
13073
+ get ackTimeout() {
13074
+ return this.#ackTimeout;
13075
+ }
13076
+ WithAckTimeout(ackTimeout) {
13077
+ this.#ackTimeout = ackTimeout;
13078
+ return this;
13079
+ }
13071
13080
  WithAddress(address) {
13072
13081
  this.#address = address;
13073
13082
  return this;
@@ -13117,6 +13126,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13117
13126
  socketOptions.agent = this.#agentManager.GetAgent(this.#address);
13118
13127
  }
13119
13128
  } else socketOptions = { transports: ["websocket"] };
13129
+ socketOptions.ackTimeout = this.#ackTimeout;
13120
13130
  if (this.#authToken) socketOptions.auth = (cb) => {
13121
13131
  cb({ token: this.#authToken });
13122
13132
  };