@nsshunt/ststestrunner 1.0.29 → 1.0.30
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.
|
@@ -11798,14 +11798,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11798
11798
|
get sockets() {
|
|
11799
11799
|
return __privateGet2(this, _sockets$1);
|
|
11800
11800
|
}
|
|
11801
|
-
SetupClientSideSocket(name, address, onConnectCallBack, socketEventsCallBack, errorCallBack) {
|
|
11801
|
+
SetupClientSideSocket(name, address, socketIoCustomPath, onConnectCallBack, socketEventsCallBack, errorCallBack) {
|
|
11802
11802
|
this.sockets[name] = {
|
|
11803
11803
|
name,
|
|
11804
11804
|
address,
|
|
11805
11805
|
socket: null,
|
|
11806
11806
|
errorCallBack
|
|
11807
11807
|
};
|
|
11808
|
-
__privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack);
|
|
11808
|
+
__privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack);
|
|
11809
11809
|
return this.sockets[name].socket;
|
|
11810
11810
|
}
|
|
11811
11811
|
GetSocket(name) {
|
|
@@ -11824,7 +11824,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11824
11824
|
LogErrorMessage_fn$1 = function(message) {
|
|
11825
11825
|
if (__privateGet2(this, _options$1).logger) __privateGet2(this, _options$1).logger.error(message);
|
|
11826
11826
|
};
|
|
11827
|
-
EstablishSocketConnect_fn$1 = function(name, onConnectCallBack, socketEventsCallBack) {
|
|
11827
|
+
EstablishSocketConnect_fn$1 = function(name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack) {
|
|
11828
11828
|
const socketDetail = this.sockets[name];
|
|
11829
11829
|
if (socketDetail.socket !== null) {
|
|
11830
11830
|
if (socketDetail.socket.connected === true) {
|
|
@@ -11832,9 +11832,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11832
11832
|
}
|
|
11833
11833
|
socketDetail.socket = null;
|
|
11834
11834
|
if (isNode$2) {
|
|
11835
|
-
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
11835
|
+
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
11836
11836
|
} else {
|
|
11837
|
-
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
11837
|
+
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
11838
11838
|
}
|
|
11839
11839
|
return;
|
|
11840
11840
|
}
|
|
@@ -11851,6 +11851,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11851
11851
|
transports: ["websocket"]
|
|
11852
11852
|
};
|
|
11853
11853
|
}
|
|
11854
|
+
if (socketIoCustomPath && socketIoCustomPath.localeCompare("") !== 0) {
|
|
11855
|
+
socketOptions.path = socketIoCustomPath;
|
|
11856
|
+
}
|
|
11854
11857
|
socketDetail.socket = lookup$2(socketDetail.address, socketOptions);
|
|
11855
11858
|
socketDetail.socket.io.on("error", (err) => {
|
|
11856
11859
|
__privateMethod$1(this, _SocketIoClientHelper_instances$1, LogErrorMessage_fn$1).call(this, `SocketIoClientHelper(): socketDetail.socket.io.on('error'): [${err}]`);
|
|
@@ -11898,9 +11901,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11898
11901
|
if (__privateGet2(this, _options$1).agentManager) {
|
|
11899
11902
|
__privateGet2(this, _options$1).agentManager.ResetAgent();
|
|
11900
11903
|
}
|
|
11901
|
-
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
11904
|
+
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
11902
11905
|
} else {
|
|
11903
|
-
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
11906
|
+
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
11904
11907
|
}
|
|
11905
11908
|
}
|
|
11906
11909
|
break;
|
|
@@ -11923,9 +11926,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11923
11926
|
if (__privateGet2(this, _options$1).agentManager) {
|
|
11924
11927
|
(_a2 = __privateGet2(this, _options$1).agentManager) == null ? void 0 : _a2.ResetAgent();
|
|
11925
11928
|
}
|
|
11926
|
-
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
11929
|
+
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
11927
11930
|
} else {
|
|
11928
|
-
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
11931
|
+
setTimeout(() => __privateMethod$1(this, _SocketIoClientHelper_instances$1, EstablishSocketConnect_fn$1).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
11929
11932
|
}
|
|
11930
11933
|
}
|
|
11931
11934
|
break;
|
|
@@ -11948,6 +11951,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11948
11951
|
// 'ststestrunner',
|
|
11949
11952
|
cstr,
|
|
11950
11953
|
// `https://stscore.stsmda.org:3005/nsstsfhir/` this.#options.ststccendpoint, stsfhir as the namespace
|
|
11954
|
+
__privateGet$1(this, _options2).socketIoCustomPath,
|
|
11955
|
+
// '/stsfhirsocket/socket.io/',
|
|
11951
11956
|
// Connected Callback
|
|
11952
11957
|
(socket2) => __privateGet$1(this, _OnSocketConnected).call(this, socket2, clientName2, joinRooms),
|
|
11953
11958
|
// Events Registration
|
|
@@ -12892,8 +12897,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
12892
12897
|
},
|
|
12893
12898
|
useSocketClient: true,
|
|
12894
12899
|
socketClientOptions: {
|
|
12895
|
-
fhirServerEndpoint: `https://stscore.stsmda.org
|
|
12900
|
+
fhirServerEndpoint: `https://stscore.stsmda.org`,
|
|
12896
12901
|
// `https://stscore.stsmda.org:3005/nsstsfhir/`,
|
|
12902
|
+
socketIoCustomPath: "/stsfhirsocket/socket.io/",
|
|
12897
12903
|
socketClientName: "ststestrunner",
|
|
12898
12904
|
timeout: 5e3,
|
|
12899
12905
|
socketIoClientHelperOptions: {
|
|
@@ -21981,14 +21987,14 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
21981
21987
|
get sockets() {
|
|
21982
21988
|
return __privateGet3(this, _sockets);
|
|
21983
21989
|
}
|
|
21984
|
-
SetupClientSideSocket(name, address, onConnectCallBack, socketEventsCallBack, errorCallBack) {
|
|
21990
|
+
SetupClientSideSocket(name, address, socketIoCustomPath, onConnectCallBack, socketEventsCallBack, errorCallBack) {
|
|
21985
21991
|
this.sockets[name] = {
|
|
21986
21992
|
name,
|
|
21987
21993
|
address,
|
|
21988
21994
|
socket: null,
|
|
21989
21995
|
errorCallBack
|
|
21990
21996
|
};
|
|
21991
|
-
__privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack);
|
|
21997
|
+
__privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack);
|
|
21992
21998
|
return this.sockets[name].socket;
|
|
21993
21999
|
}
|
|
21994
22000
|
GetSocket(name) {
|
|
@@ -22007,7 +22013,7 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22007
22013
|
LogErrorMessage_fn = function(message) {
|
|
22008
22014
|
if (__privateGet3(this, _options).logger) __privateGet3(this, _options).logger.error(message);
|
|
22009
22015
|
};
|
|
22010
|
-
EstablishSocketConnect_fn = function(name, onConnectCallBack, socketEventsCallBack) {
|
|
22016
|
+
EstablishSocketConnect_fn = function(name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack) {
|
|
22011
22017
|
const socketDetail = this.sockets[name];
|
|
22012
22018
|
if (socketDetail.socket !== null) {
|
|
22013
22019
|
if (socketDetail.socket.connected === true) {
|
|
@@ -22015,9 +22021,9 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22015
22021
|
}
|
|
22016
22022
|
socketDetail.socket = null;
|
|
22017
22023
|
if (isNode) {
|
|
22018
|
-
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
22024
|
+
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
22019
22025
|
} else {
|
|
22020
|
-
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
22026
|
+
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
22021
22027
|
}
|
|
22022
22028
|
return;
|
|
22023
22029
|
}
|
|
@@ -22034,6 +22040,9 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22034
22040
|
transports: ["websocket"]
|
|
22035
22041
|
};
|
|
22036
22042
|
}
|
|
22043
|
+
if (socketIoCustomPath && socketIoCustomPath.localeCompare("") !== 0) {
|
|
22044
|
+
socketOptions.path = socketIoCustomPath;
|
|
22045
|
+
}
|
|
22037
22046
|
socketDetail.socket = lookup(socketDetail.address, socketOptions);
|
|
22038
22047
|
socketDetail.socket.io.on("error", (err) => {
|
|
22039
22048
|
__privateMethod2(this, _SocketIoClientHelper_instances, LogErrorMessage_fn).call(this, `SocketIoClientHelper(): socketDetail.socket.io.on('error'): [${err}]`);
|
|
@@ -22081,9 +22090,9 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22081
22090
|
if (__privateGet3(this, _options).agentManager) {
|
|
22082
22091
|
__privateGet3(this, _options).agentManager.ResetAgent();
|
|
22083
22092
|
}
|
|
22084
|
-
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
22093
|
+
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
22085
22094
|
} else {
|
|
22086
|
-
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
22095
|
+
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
22087
22096
|
}
|
|
22088
22097
|
}
|
|
22089
22098
|
break;
|
|
@@ -22106,9 +22115,9 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22106
22115
|
if (__privateGet3(this, _options).agentManager) {
|
|
22107
22116
|
(_a2 = __privateGet3(this, _options).agentManager) == null ? void 0 : _a2.ResetAgent();
|
|
22108
22117
|
}
|
|
22109
|
-
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
22118
|
+
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
22110
22119
|
} else {
|
|
22111
|
-
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
22120
|
+
setTimeout(() => __privateMethod2(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
22112
22121
|
}
|
|
22113
22122
|
}
|
|
22114
22123
|
break;
|
|
@@ -22792,6 +22801,7 @@ ${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
|
22792
22801
|
const socket = __privateGet(this, _socketUtils2).SetupClientSideSocket(
|
|
22793
22802
|
"ststccagent",
|
|
22794
22803
|
__privateGet(this, _options5).ststccendpoint,
|
|
22804
|
+
"",
|
|
22795
22805
|
// Connected Callback
|
|
22796
22806
|
(socket2) => __privateGet(this, _OnSocketConnected2).call(this, socket2, clientName, joinRooms),
|
|
22797
22807
|
// Events Registration
|