@nsshunt/stsfhirclient 2.0.19 → 2.0.21
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 +30 -49
- package/dist/stsfhirclient.cjs.map +1 -1
- package/dist/stsfhirclient.mjs +27 -46
- package/dist/stsfhirclient.mjs.map +1 -1
- package/package.json +4 -8
package/dist/stsfhirclient.cjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var __create
|
|
4
|
-
var __defProp
|
|
5
|
-
var __getOwnPropDesc
|
|
6
|
-
var __getOwnPropNames
|
|
7
|
-
var __getProtoOf
|
|
8
|
-
var __hasOwnProp
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
10
10
|
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
11
|
var __exportAll = (all, no_symbols) => {
|
|
12
12
|
let target = {};
|
|
13
|
-
for (var name in all) __defProp
|
|
13
|
+
for (var name in all) __defProp(target, name, {
|
|
14
14
|
get: all[name],
|
|
15
15
|
enumerable: true
|
|
16
16
|
});
|
|
17
|
-
if (!no_symbols) __defProp
|
|
17
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
18
|
return target;
|
|
19
19
|
};
|
|
20
|
-
var __copyProps
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
22
|
key = keys[i];
|
|
23
|
-
if (!__hasOwnProp
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
24
24
|
get: ((k) => from[k]).bind(null, key),
|
|
25
|
-
enumerable: !(desc = __getOwnPropDesc
|
|
25
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
return to;
|
|
29
29
|
};
|
|
30
|
-
var __toESM
|
|
30
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
31
|
value: mod,
|
|
32
32
|
enumerable: true
|
|
33
33
|
}) : target, mod));
|
|
34
|
-
var __toCommonJS = (mod) => __hasOwnProp
|
|
34
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
//#endregion
|
|
36
36
|
let axios = require("axios");
|
|
37
|
-
axios = __toESM
|
|
37
|
+
axios = __toESM(axios);
|
|
38
38
|
let _nsshunt_stsutils = require("@nsshunt/stsutils");
|
|
39
39
|
let _socket_io_component_emitter = require("@socket.io/component-emitter");
|
|
40
40
|
//#region src/fhir-searchTypes/fhirSearchTypes.ts
|
|
@@ -9820,28 +9820,8 @@ Object.defineProperties(createChalk.prototype, styles);
|
|
|
9820
9820
|
var chalk = createChalk();
|
|
9821
9821
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
9822
9822
|
//#endregion
|
|
9823
|
-
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-
|
|
9824
|
-
var __create = Object.create;
|
|
9825
|
-
var __defProp = Object.defineProperty;
|
|
9826
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9827
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9828
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9829
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9823
|
+
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DB59cw42.js
|
|
9830
9824
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9831
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9832
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
9833
|
-
key = keys[i];
|
|
9834
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
9835
|
-
get: ((k) => from[k]).bind(null, key),
|
|
9836
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
9837
|
-
});
|
|
9838
|
-
}
|
|
9839
|
-
return to;
|
|
9840
|
-
};
|
|
9841
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
9842
|
-
value: mod,
|
|
9843
|
-
enumerable: true
|
|
9844
|
-
}) : target, mod));
|
|
9845
9825
|
var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9846
9826
|
function E() {}
|
|
9847
9827
|
E.prototype = {
|
|
@@ -11670,12 +11650,13 @@ var Encoder = class {
|
|
|
11670
11650
|
var Decoder = class Decoder extends _socket_io_component_emitter.Emitter {
|
|
11671
11651
|
/**
|
|
11672
11652
|
* Decoder constructor
|
|
11673
|
-
*
|
|
11674
|
-
* @param {function} reviver - custom reviver to pass down to JSON.stringify
|
|
11675
11653
|
*/
|
|
11676
|
-
constructor(
|
|
11654
|
+
constructor(opts) {
|
|
11677
11655
|
super();
|
|
11678
|
-
this.
|
|
11656
|
+
this.opts = Object.assign({
|
|
11657
|
+
reviver: void 0,
|
|
11658
|
+
maxAttachments: 10
|
|
11659
|
+
}, typeof opts === "function" ? { reviver: opts } : opts);
|
|
11679
11660
|
}
|
|
11680
11661
|
/**
|
|
11681
11662
|
* Decodes an encoded packet string into packet JSON.
|
|
@@ -11718,7 +11699,10 @@ var Decoder = class Decoder extends _socket_io_component_emitter.Emitter {
|
|
|
11718
11699
|
while (str.charAt(++i) !== "-" && i != str.length);
|
|
11719
11700
|
const buf = str.substring(start, i);
|
|
11720
11701
|
if (buf != Number(buf) || str.charAt(i) !== "-") throw new Error("Illegal attachments");
|
|
11721
|
-
|
|
11702
|
+
const n = Number(buf);
|
|
11703
|
+
if (!isInteger(n) || n < 0) throw new Error("Illegal attachments");
|
|
11704
|
+
else if (n > this.opts.maxAttachments) throw new Error("too many attachments");
|
|
11705
|
+
p.attachments = n;
|
|
11722
11706
|
}
|
|
11723
11707
|
if ("/" === str.charAt(i + 1)) {
|
|
11724
11708
|
const start = i + 1;
|
|
@@ -11750,7 +11734,7 @@ var Decoder = class Decoder extends _socket_io_component_emitter.Emitter {
|
|
|
11750
11734
|
}
|
|
11751
11735
|
tryParse(str) {
|
|
11752
11736
|
try {
|
|
11753
|
-
return JSON.parse(str, this.reviver);
|
|
11737
|
+
return JSON.parse(str, this.opts.reviver);
|
|
11754
11738
|
} catch (e) {
|
|
11755
11739
|
return false;
|
|
11756
11740
|
}
|
|
@@ -13045,9 +13029,6 @@ Object.assign(lookup, {
|
|
|
13045
13029
|
});
|
|
13046
13030
|
//#endregion
|
|
13047
13031
|
//#region node_modules/@nsshunt/stssocketioutils/dist/index.mjs
|
|
13048
|
-
var import_browser = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13049
|
-
module.exports = false;
|
|
13050
|
-
})))(), 1);
|
|
13051
13032
|
var import_tiny_emitter = require_tiny_emitter();
|
|
13052
13033
|
var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
13053
13034
|
#agentManager;
|
|
@@ -13135,12 +13116,12 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13135
13116
|
if (this.#socket !== void 0) {
|
|
13136
13117
|
if (this.#socket.connected === true) this.#socket.disconnect();
|
|
13137
13118
|
this.#socket = void 0;
|
|
13138
|
-
if (
|
|
13119
|
+
if (_nsshunt_stsutils.isNode) setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
|
|
13139
13120
|
else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
|
|
13140
13121
|
return;
|
|
13141
13122
|
}
|
|
13142
13123
|
let socketOptions;
|
|
13143
|
-
if (
|
|
13124
|
+
if (_nsshunt_stsutils.isNode) {
|
|
13144
13125
|
socketOptions = { transports: ["websocket"] };
|
|
13145
13126
|
if (this.#agentManager) {
|
|
13146
13127
|
if (!this.#address) throw new Error(`SocketIoClient:SetupSocket(): Error: [address not provided when using agentManager]`);
|
|
@@ -13189,7 +13170,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13189
13170
|
this.LogDebugMessage("The server disconnected using disconnectSockets, i.e. normal safe shutdown from explicit disconnection by the server.");
|
|
13190
13171
|
this.LogDebugMessage("The connection will be re-established when the server becomes available.");
|
|
13191
13172
|
this.#socket = void 0;
|
|
13192
|
-
if (
|
|
13173
|
+
if (_nsshunt_stsutils.isNode) {
|
|
13193
13174
|
if (this.#agentManager) this.#agentManager.ResetAgent();
|
|
13194
13175
|
setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
|
|
13195
13176
|
} else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
|
|
@@ -13205,7 +13186,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13205
13186
|
this.LogDebugMessage("The connection will be re-established when the server becomes available.");
|
|
13206
13187
|
if (this.#socket) this.#socket.disconnect();
|
|
13207
13188
|
this.#socket = void 0;
|
|
13208
|
-
if (
|
|
13189
|
+
if (_nsshunt_stsutils.isNode) {
|
|
13209
13190
|
if (this.#agentManager) this.#agentManager?.ResetAgent();
|
|
13210
13191
|
setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
|
|
13211
13192
|
} else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
|