@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 __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,9 @@ 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);
9235
+ console.error(error);
9236
+ process.exit(0);
9234
9237
  };
9235
9238
  LogWarning = (method, message) => {
9236
9239
  this.#options.logger.warn(`FhirRESTClient:${method}(): Warn: [${message}]`);
@@ -9809,8 +9812,8 @@ Object.defineProperties(createChalk.prototype, styles);
9809
9812
  var chalk = createChalk();
9810
9813
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
9811
9814
  //#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);
9815
+ //#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DcZ69ZvJ.js
9816
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
9814
9817
  var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9815
9818
  function E() {}
9816
9819
  E.prototype = {
@@ -13028,6 +13031,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13028
13031
  #authToken;
13029
13032
  #socket;
13030
13033
  #reconnectTimeout = 2e3;
13034
+ #ackTimeout = 5e3;
13031
13035
  constructor(name) {
13032
13036
  super();
13033
13037
  this.#name = name;
@@ -13068,6 +13072,13 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13068
13072
  get socket() {
13069
13073
  return this.#socket;
13070
13074
  }
13075
+ get ackTimeout() {
13076
+ return this.#ackTimeout;
13077
+ }
13078
+ WithAckTimeout(ackTimeout) {
13079
+ this.#ackTimeout = ackTimeout;
13080
+ return this;
13081
+ }
13071
13082
  WithAddress(address) {
13072
13083
  this.#address = address;
13073
13084
  return this;
@@ -13117,6 +13128,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13117
13128
  socketOptions.agent = this.#agentManager.GetAgent(this.#address);
13118
13129
  }
13119
13130
  } else socketOptions = { transports: ["websocket"] };
13131
+ socketOptions.ackTimeout = this.#ackTimeout;
13120
13132
  if (this.#authToken) socketOptions.auth = (cb) => {
13121
13133
  cb({ token: this.#authToken });
13122
13134
  };