@nsshunt/stsfhirclient 2.0.20 → 2.0.22
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 +48 -70
- package/dist/stsfhirclient.cjs.map +1 -1
- package/dist/stsfhirclient.mjs +45 -67
- package/dist/stsfhirclient.mjs.map +1 -1
- package/package.json +10 -9
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
|
|
@@ -5930,31 +5930,28 @@ var require_schemes = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
5930
5930
|
parse: wsParse,
|
|
5931
5931
|
serialize: wsSerialize
|
|
5932
5932
|
};
|
|
5933
|
-
var wss = {
|
|
5934
|
-
scheme: "wss",
|
|
5935
|
-
domainHost: ws.domainHost,
|
|
5936
|
-
parse: ws.parse,
|
|
5937
|
-
serialize: ws.serialize
|
|
5938
|
-
};
|
|
5939
|
-
var urn = {
|
|
5940
|
-
scheme: "urn",
|
|
5941
|
-
parse: urnParse,
|
|
5942
|
-
serialize: urnSerialize,
|
|
5943
|
-
skipNormalize: true
|
|
5944
|
-
};
|
|
5945
|
-
var urnuuid = {
|
|
5946
|
-
scheme: "urn:uuid",
|
|
5947
|
-
parse: urnuuidParse,
|
|
5948
|
-
serialize: urnuuidSerialize,
|
|
5949
|
-
skipNormalize: true
|
|
5950
|
-
};
|
|
5951
5933
|
var SCHEMES = {
|
|
5952
5934
|
http,
|
|
5953
5935
|
https,
|
|
5954
5936
|
ws,
|
|
5955
|
-
wss
|
|
5956
|
-
|
|
5957
|
-
|
|
5937
|
+
wss: {
|
|
5938
|
+
scheme: "wss",
|
|
5939
|
+
domainHost: ws.domainHost,
|
|
5940
|
+
parse: ws.parse,
|
|
5941
|
+
serialize: ws.serialize
|
|
5942
|
+
},
|
|
5943
|
+
urn: {
|
|
5944
|
+
scheme: "urn",
|
|
5945
|
+
parse: urnParse,
|
|
5946
|
+
serialize: urnSerialize,
|
|
5947
|
+
skipNormalize: true
|
|
5948
|
+
},
|
|
5949
|
+
"urn:uuid": {
|
|
5950
|
+
scheme: "urn:uuid",
|
|
5951
|
+
parse: urnuuidParse,
|
|
5952
|
+
serialize: urnuuidSerialize,
|
|
5953
|
+
skipNormalize: true
|
|
5954
|
+
}
|
|
5958
5955
|
};
|
|
5959
5956
|
Object.setPrototypeOf(SCHEMES, null);
|
|
5960
5957
|
/**
|
|
@@ -9820,28 +9817,8 @@ Object.defineProperties(createChalk.prototype, styles);
|
|
|
9820
9817
|
var chalk = createChalk();
|
|
9821
9818
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
9822
9819
|
//#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;
|
|
9820
|
+
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-DB59cw42.js
|
|
9830
9821
|
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
9822
|
var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9846
9823
|
function E() {}
|
|
9847
9824
|
E.prototype = {
|
|
@@ -11670,12 +11647,13 @@ var Encoder = class {
|
|
|
11670
11647
|
var Decoder = class Decoder extends _socket_io_component_emitter.Emitter {
|
|
11671
11648
|
/**
|
|
11672
11649
|
* Decoder constructor
|
|
11673
|
-
*
|
|
11674
|
-
* @param {function} reviver - custom reviver to pass down to JSON.stringify
|
|
11675
11650
|
*/
|
|
11676
|
-
constructor(
|
|
11651
|
+
constructor(opts) {
|
|
11677
11652
|
super();
|
|
11678
|
-
this.
|
|
11653
|
+
this.opts = Object.assign({
|
|
11654
|
+
reviver: void 0,
|
|
11655
|
+
maxAttachments: 10
|
|
11656
|
+
}, typeof opts === "function" ? { reviver: opts } : opts);
|
|
11679
11657
|
}
|
|
11680
11658
|
/**
|
|
11681
11659
|
* Decodes an encoded packet string into packet JSON.
|
|
@@ -11718,7 +11696,10 @@ var Decoder = class Decoder extends _socket_io_component_emitter.Emitter {
|
|
|
11718
11696
|
while (str.charAt(++i) !== "-" && i != str.length);
|
|
11719
11697
|
const buf = str.substring(start, i);
|
|
11720
11698
|
if (buf != Number(buf) || str.charAt(i) !== "-") throw new Error("Illegal attachments");
|
|
11721
|
-
|
|
11699
|
+
const n = Number(buf);
|
|
11700
|
+
if (!isInteger(n) || n < 0) throw new Error("Illegal attachments");
|
|
11701
|
+
else if (n > this.opts.maxAttachments) throw new Error("too many attachments");
|
|
11702
|
+
p.attachments = n;
|
|
11722
11703
|
}
|
|
11723
11704
|
if ("/" === str.charAt(i + 1)) {
|
|
11724
11705
|
const start = i + 1;
|
|
@@ -11750,7 +11731,7 @@ var Decoder = class Decoder extends _socket_io_component_emitter.Emitter {
|
|
|
11750
11731
|
}
|
|
11751
11732
|
tryParse(str) {
|
|
11752
11733
|
try {
|
|
11753
|
-
return JSON.parse(str, this.reviver);
|
|
11734
|
+
return JSON.parse(str, this.opts.reviver);
|
|
11754
11735
|
} catch (e) {
|
|
11755
11736
|
return false;
|
|
11756
11737
|
}
|
|
@@ -13045,9 +13026,6 @@ Object.assign(lookup, {
|
|
|
13045
13026
|
});
|
|
13046
13027
|
//#endregion
|
|
13047
13028
|
//#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
13029
|
var import_tiny_emitter = require_tiny_emitter();
|
|
13052
13030
|
var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
13053
13031
|
#agentManager;
|
|
@@ -13135,12 +13113,12 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13135
13113
|
if (this.#socket !== void 0) {
|
|
13136
13114
|
if (this.#socket.connected === true) this.#socket.disconnect();
|
|
13137
13115
|
this.#socket = void 0;
|
|
13138
|
-
if (
|
|
13116
|
+
if (_nsshunt_stsutils.isNode) setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
|
|
13139
13117
|
else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
|
|
13140
13118
|
return;
|
|
13141
13119
|
}
|
|
13142
13120
|
let socketOptions;
|
|
13143
|
-
if (
|
|
13121
|
+
if (_nsshunt_stsutils.isNode) {
|
|
13144
13122
|
socketOptions = { transports: ["websocket"] };
|
|
13145
13123
|
if (this.#agentManager) {
|
|
13146
13124
|
if (!this.#address) throw new Error(`SocketIoClient:SetupSocket(): Error: [address not provided when using agentManager]`);
|
|
@@ -13189,7 +13167,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13189
13167
|
this.LogDebugMessage("The server disconnected using disconnectSockets, i.e. normal safe shutdown from explicit disconnection by the server.");
|
|
13190
13168
|
this.LogDebugMessage("The connection will be re-established when the server becomes available.");
|
|
13191
13169
|
this.#socket = void 0;
|
|
13192
|
-
if (
|
|
13170
|
+
if (_nsshunt_stsutils.isNode) {
|
|
13193
13171
|
if (this.#agentManager) this.#agentManager.ResetAgent();
|
|
13194
13172
|
setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
|
|
13195
13173
|
} else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
|
|
@@ -13205,7 +13183,7 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13205
13183
|
this.LogDebugMessage("The connection will be re-established when the server becomes available.");
|
|
13206
13184
|
if (this.#socket) this.#socket.disconnect();
|
|
13207
13185
|
this.#socket = void 0;
|
|
13208
|
-
if (
|
|
13186
|
+
if (_nsshunt_stsutils.isNode) {
|
|
13209
13187
|
if (this.#agentManager) this.#agentManager?.ResetAgent();
|
|
13210
13188
|
setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
|
|
13211
13189
|
} else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
|