aotrautils-srv 0.0.2020 → 0.0.2022

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 (12/10/2026-21:59:22)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (12/10/2026-22:05:17)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5485,7 +5485,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5485
5485
 
5486
5486
 
5487
5487
 
5488
- /*utils AI library associated with aotra version : «1_29072022-2359 (12/10/2026-21:59:22)»*/
5488
+ /*utils AI library associated with aotra version : «1_29072022-2359 (12/10/2026-22:05:17)»*/
5489
5489
  /*-----------------------------------------------------------------------------*/
5490
5490
 
5491
5491
 
@@ -5749,7 +5749,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
5749
5749
 
5750
5750
 
5751
5751
 
5752
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (12/10/2026-21:59:22)»*/
5752
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (12/10/2026-22:05:17)»*/
5753
5753
  /*-----------------------------------------------------------------------------*/
5754
5754
 
5755
5755
 
@@ -9745,7 +9745,7 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
9745
9745
  this.clientsRoomsTag=clientsRoomsTag;
9746
9746
 
9747
9747
  this.serverReceptionEntryPoints=[];
9748
- this.prerequisiteMethods=[];
9748
+ this.asyncPrerequisiteMethods=[];
9749
9749
  }
9750
9750
 
9751
9751
  // Executed whenever any message is received on any channel :
@@ -9789,8 +9789,12 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
9789
9789
 
9790
9790
  }
9791
9791
 
9792
- addReceiveListenerPrerequisite(prerequisiteMethod){
9793
- this.prerequisiteMethods.push(prerequisiteMethod);
9792
+ addReceiveListenerPrerequisite(asyncPrerequisiteMethod){
9793
+ this.asyncPrerequisiteMethods.push(asyncPrerequisiteMethod);
9794
+
9795
+ // TRACE
9796
+ lognow("INFO : Added prerequisite:asyncPrerequisiteMethods:",asyncPrerequisiteMethod);
9797
+
9794
9798
  return this;
9795
9799
  }
9796
9800
 
@@ -9798,8 +9802,8 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
9798
9802
  let prequisiteResult=eventOrMessage;
9799
9803
  let i=1;
9800
9804
  try {
9801
- for(const prerequisiteMethod of this.prerequisiteMethods) {
9802
- prequisiteResult=await prerequisiteMethod(prequisiteResult, clientSocket);
9805
+ for(const asyncPrerequisiteMethod of this.asyncPrerequisiteMethods) {
9806
+ prequisiteResult=await asyncPrerequisiteMethod(prequisiteResult, clientSocket);
9803
9807
  i++;
9804
9808
  }
9805
9809
  }catch(error){
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.2020",
3
+ "version": "0.0.2022",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils-srv",
9
- "version": "0.0.2020",
9
+ "version": "0.0.2022",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.2020",
3
+ "version": "0.0.2022",
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)",