aotrautils-srv 0.0.1487 → 0.0.1489
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.
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (28/04/2025-02:53:13)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4894,7 +4894,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4894
4894
|
|
4895
4895
|
|
4896
4896
|
|
4897
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
4897
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (28/04/2025-02:53:13)»*/
|
4898
4898
|
/*-----------------------------------------------------------------------------*/
|
4899
4899
|
|
4900
4900
|
|
@@ -5040,7 +5040,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5040
5040
|
|
5041
5041
|
|
5042
5042
|
|
5043
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
5043
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (28/04/2025-02:53:13)»*/
|
5044
5044
|
/*-----------------------------------------------------------------------------*/
|
5045
5045
|
|
5046
5046
|
|
@@ -7469,7 +7469,7 @@ class ClientReceptionEntryPoint{
|
|
7469
7469
|
remove(this, clientReceptionEntryPoints);
|
7470
7470
|
|
7471
7471
|
if(this.doOnIncomingMessage)
|
7472
|
-
this.doOnIncomingMessage(dataWrapped.data, clientSocket);
|
7472
|
+
this.doOnIncomingMessage(dataWrapped.data, clientSocket, this.listenerConfig.messageId);
|
7473
7473
|
|
7474
7474
|
}
|
7475
7475
|
|
@@ -7506,7 +7506,7 @@ class ClientInstance{
|
|
7506
7506
|
if(WebsocketImplementation.useSocketIOImplementation){
|
7507
7507
|
// FOR THE SOCKETIO IMPLEMENTATION :
|
7508
7508
|
clientSocket.on(channelNameParam, (eventOrMessage)=>{
|
7509
|
-
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, this.clientReceptionEntryPoints
|
7509
|
+
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, this.clientReceptionEntryPoints);
|
7510
7510
|
});
|
7511
7511
|
}
|
7512
7512
|
|
@@ -7531,7 +7531,7 @@ class ClientInstance{
|
|
7531
7531
|
const listenerId=nonull(listenerConfig.messageType,"");
|
7532
7532
|
|
7533
7533
|
//
|
7534
|
-
self.receive(channelNameForResponse, (dataLocal, clientSocket,
|
7534
|
+
self.receive(channelNameForResponse, (dataLocal, clientSocket, messageIdParam)=>{
|
7535
7535
|
|
7536
7536
|
// We check if the message matches the condition :
|
7537
7537
|
if(listenerConfig.condition && !listenerConfig.condition(dataLocal, clientSocket)) return ;
|
@@ -7612,7 +7612,7 @@ class ClientInstance{
|
|
7612
7612
|
// FOR THE WEBSOCKET IMPLEMENTATION :
|
7613
7613
|
clientSocket.addEventListener("message", (eventOrMessage)=>{
|
7614
7614
|
foreach(self.clientReceptionEntryPoints,(clientReceptionEntryPoint)=>{
|
7615
|
-
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, self.clientReceptionEntryPoints
|
7615
|
+
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, self.clientReceptionEntryPoints);
|
7616
7616
|
});
|
7617
7617
|
});
|
7618
7618
|
}
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1489",
|
4
4
|
"main": "aotrautils-srv.build.js",
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|