aotrautils-srv 0.0.644 → 0.0.645

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 (09/10/2023-21:35:47)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/10/2023-21:50:01)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5051,7 +5051,7 @@ class OpenAIAPIClient{
5051
5051
  ];
5052
5052
 
5053
5053
  async function getResult(){
5054
- const p=new Promise((accept,reject)=>{
5054
+ const p=new Promise((resolve,reject)=>{
5055
5055
 
5056
5056
  fetch(self.apiURL, {
5057
5057
  method: "POST",
@@ -5069,7 +5069,7 @@ class OpenAIAPIClient{
5069
5069
  // DBG
5070
5070
  // console.log("data :",data);
5071
5071
  const assistantReply = data.choices[0].message.content;
5072
- accept(assistantReply);
5072
+ resolve(assistantReply);
5073
5073
  })
5074
5074
  .catch(error => {
5075
5075
  // TRACE
@@ -5111,7 +5111,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5111
5111
 
5112
5112
 
5113
5113
 
5114
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (09/10/2023-21:35:47)»*/
5114
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (19/10/2023-21:50:01)»*/
5115
5115
  /*-----------------------------------------------------------------------------*/
5116
5116
 
5117
5117
 
@@ -5893,9 +5893,8 @@ WebsocketImplementation={
5893
5893
 
5894
5894
  send:(channelNameParam, data, clientsRoomsTag=null)=>{
5895
5895
 
5896
- // DBG
5897
- lognow("(CLIENT) (NODEJS) CLIENT TRIES TO SEND !");
5898
-
5896
+ // // DBG
5897
+ // lognow("(CLIENT) (NODEJS) CLIENT TRIES TO SEND !");
5899
5898
 
5900
5899
 
5901
5900
  const clientSocket=nodeClientInstance.clientSocket;
@@ -6146,8 +6145,8 @@ WebsocketImplementation={
6146
6145
 
6147
6146
  send:(channelNameParam, data, clientsRoomsTag=null)=>{
6148
6147
 
6149
- // DBG
6150
- lognow("(CLIENT) (BROWSER) CLIENT TRIES TO SEND !");
6148
+ // // DBG
6149
+ // lognow("(CLIENT) (BROWSER) CLIENT TRIES TO SEND !");
6151
6150
 
6152
6151
  const clientSocket=browserInstance.clientSocket;
6153
6152
 
@@ -6165,9 +6164,9 @@ WebsocketImplementation={
6165
6164
  let dataWrapped={channelName:channelNameParam, data:data};
6166
6165
 
6167
6166
 
6168
- // DBG
6169
- console.log("(BROWSER) SENDING... : dataWrapped :",dataWrapped);
6170
- console.log("(BROWSER) SENDING... : clientSocket :",clientSocket);
6167
+ // // DBG
6168
+ // console.log("(BROWSER) SENDING... : dataWrapped :",dataWrapped);
6169
+ // console.log("(BROWSER) SENDING... : clientSocket :",clientSocket);
6171
6170
 
6172
6171
 
6173
6172
  dataWrapped=stringifyObject(dataWrapped);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.644",
3
+ "version": "0.0.645",
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)",