aotrautils-srv 0.0.1881 → 0.0.1883
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 (19/06/2026-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/06/2026-21:47:44)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5470,7 +5470,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5470
5470
|
|
|
5471
5471
|
|
|
5472
5472
|
|
|
5473
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (19/06/2026-
|
|
5473
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (19/06/2026-21:47:44)»*/
|
|
5474
5474
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5475
|
|
|
5476
5476
|
|
|
@@ -5730,7 +5730,7 @@ getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProviderName=DE
|
|
|
5730
5730
|
|
|
5731
5731
|
|
|
5732
5732
|
|
|
5733
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (19/06/2026-
|
|
5733
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (19/06/2026-21:47:44)»*/
|
|
5734
5734
|
/*-----------------------------------------------------------------------------*/
|
|
5735
5735
|
|
|
5736
5736
|
|
|
@@ -8093,17 +8093,18 @@ WebsocketImplementation={
|
|
|
8093
8093
|
let serverSocket;
|
|
8094
8094
|
if(!WebsocketImplementation.useSocketIOImplementation){
|
|
8095
8095
|
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
serverSocket=new window.WebSocketServer.WebSocketServer({ "server":listenableServer });
|
|
8096
|
+
// if(typeof(WebSocketServer)==="undefined")
|
|
8097
|
+
// window.WebSocketServer=require("ws");
|
|
8098
|
+
// if(typeof(WebSocketServer)==="undefined")
|
|
8099
|
+
// // TRACE
|
|
8100
|
+
// lognow("ERROR : «ws» CONSOLE SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
8101
|
+
// serverSocket=new window.WebSocketServer.WebSocketServer({
|
|
8102
|
+
|
|
8104
8103
|
// DOES NOT WORK ANYMORE :
|
|
8105
|
-
|
|
8106
|
-
|
|
8104
|
+
serverSocket=new window.WebSocket.Server({
|
|
8105
|
+
server:listenableServer,
|
|
8106
|
+
perMessageDeflate: false,
|
|
8107
|
+
});
|
|
8107
8108
|
|
|
8108
8109
|
}else{
|
|
8109
8110
|
|
|
@@ -8190,7 +8191,8 @@ WebsocketImplementation={
|
|
|
8190
8191
|
clientSocket=new WebSocket(serverURL+":"+port,/*WORKAROUND:*/{
|
|
8191
8192
|
// CAUTION : SECURITY BREACH :
|
|
8192
8193
|
// BUT ALSO NECESSARY TO ALLOW SELF-SIGNED CERTIFICATES USAGE WITH THE YESBOT SYSTEM ON DEV ENVIRONMENTS !
|
|
8193
|
-
|
|
8194
|
+
// (ONLY FOR DEV ENVIRONMENTS :)
|
|
8195
|
+
rejectUnauthorized:contains(serverURL, "localhost"), // (THIS IS A KNOWN SECURITY BREACH)
|
|
8194
8196
|
secure: isSecure
|
|
8195
8197
|
});
|
|
8196
8198
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1883",
|
|
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)",
|