@nsshunt/stsfhirclient 2.0.26 → 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.
- package/dist/stsfhirclient.cjs +14 -4
- package/dist/stsfhirclient.cjs.map +1 -1
- package/dist/stsfhirclient.mjs +14 -4
- package/dist/stsfhirclient.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cv2/commonTypes.d.ts +1 -1
- package/types/cv2/commonTypes.d.ts.map +1 -1
- package/types/cv2/fhirRESTClient.d.ts +1 -1
- package/types/cv2/fhirRESTClient.d.ts.map +1 -1
- package/types/cv2/fhirSocketClient.d.ts +1 -1
- package/types/cv2/fhirSocketClient.d.ts.map +1 -1
- package/types/cv2/fhirSocketClientAllInOne.d.ts +1 -1
- package/types/cv2/fhirSocketClientAllInOne.d.ts.map +1 -1
- package/types/cv2/fhirSocketClientIndividual.d.ts +1 -1
- package/types/cv2/fhirSocketClientIndividual.d.ts.map +1 -1
package/dist/stsfhirclient.cjs
CHANGED
|
@@ -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,7 @@ 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);
|
|
9242
9243
|
};
|
|
9243
9244
|
LogWarning = (method, message) => {
|
|
9244
9245
|
this.#options.logger.warn(`FhirRESTClient:${method}(): Warn: [${message}]`);
|
|
@@ -9817,8 +9818,8 @@ Object.defineProperties(createChalk.prototype, styles);
|
|
|
9817
9818
|
var chalk = createChalk();
|
|
9818
9819
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
9819
9820
|
//#endregion
|
|
9820
|
-
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-
|
|
9821
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9821
|
+
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DcZ69ZvJ.js
|
|
9822
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9822
9823
|
var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9823
9824
|
function E() {}
|
|
9824
9825
|
E.prototype = {
|
|
@@ -13036,6 +13037,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13036
13037
|
#authToken;
|
|
13037
13038
|
#socket;
|
|
13038
13039
|
#reconnectTimeout = 2e3;
|
|
13040
|
+
#ackTimeout = 5e3;
|
|
13039
13041
|
constructor(name) {
|
|
13040
13042
|
super();
|
|
13041
13043
|
this.#name = name;
|
|
@@ -13076,6 +13078,13 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13076
13078
|
get socket() {
|
|
13077
13079
|
return this.#socket;
|
|
13078
13080
|
}
|
|
13081
|
+
get ackTimeout() {
|
|
13082
|
+
return this.#ackTimeout;
|
|
13083
|
+
}
|
|
13084
|
+
WithAckTimeout(ackTimeout) {
|
|
13085
|
+
this.#ackTimeout = ackTimeout;
|
|
13086
|
+
return this;
|
|
13087
|
+
}
|
|
13079
13088
|
WithAddress(address) {
|
|
13080
13089
|
this.#address = address;
|
|
13081
13090
|
return this;
|
|
@@ -13125,6 +13134,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13125
13134
|
socketOptions.agent = this.#agentManager.GetAgent(this.#address);
|
|
13126
13135
|
}
|
|
13127
13136
|
} else socketOptions = { transports: ["websocket"] };
|
|
13137
|
+
socketOptions.ackTimeout = this.#ackTimeout;
|
|
13128
13138
|
if (this.#authToken) socketOptions.auth = (cb) => {
|
|
13129
13139
|
cb({ token: this.#authToken });
|
|
13130
13140
|
};
|