aotrautils-srv 0.0.1489 → 0.0.1491

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:53:13)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (28/04/2025-02:59:33)»*/
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:53:13)»*/
4897
+ /*utils AI library associated with aotra version : «1_29072022-2359 (28/04/2025-02:59:33)»*/
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:53:13)»*/
5043
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (28/04/2025-02:59:33)»*/
5044
5044
  /*-----------------------------------------------------------------------------*/
5045
5045
 
5046
5046
 
@@ -7525,8 +7525,8 @@ class ClientInstance{
7525
7525
 
7526
7526
  // 1) We prepare the reception :
7527
7527
  const resultPromise={
7528
- clientsRoomsTag:clientsRoomsTag,
7529
- thenWhenReceiveMessageType:(channelNameForResponse, listenerConfig={messageType:"",messageId:messageId,condition:()=>true}, doOnIncomingMessageForResponse)=>{
7528
+ // CAUTION : CANNOT STORE ANYTHING IN THE resultPromise, FOR ASYNC CALLS MAKES ITS DATA INCONSISTENT IN TIME !
7529
+ thenWhenReceiveMessageType:(channelNameForResponse, listenerConfig={messageType:"",condition:()=>true}, doOnIncomingMessageForResponse)=>{
7530
7530
  listenerConfig=nonull(listenerConfig,{messageType:"",condition:()=>true});
7531
7531
  const listenerId=nonull(listenerConfig.messageType,"");
7532
7532
 
@@ -7545,7 +7545,7 @@ class ClientInstance{
7545
7545
 
7546
7546
  doOnIncomingMessageForResponse(dataLocal, clientSocket);
7547
7547
 
7548
- }, resultPromise.clientsRoomsTag, listenerId, {destroyListenerAfterReceiving:true});
7548
+ }, clientsRoomsTag, listenerId, {messageId:messageId, destroyListenerAfterReceiving:true});
7549
7549
  //
7550
7550
 
7551
7551
  return resultPromise;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1489",
3
+ "version": "0.0.1491",
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)",