aotrautils 0.0.2042 → 0.0.2043
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.
- aotrautils/aotrautils.build.js +33 -10
- aotrautils/package-lock.json +2 -2
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (17/10/2026-01:26:49)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5485,7 +5485,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5485
5485
|
|
|
5486
5486
|
|
|
5487
5487
|
|
|
5488
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
|
5488
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (17/10/2026-01:26:49)»*/
|
|
5489
5489
|
/*-----------------------------------------------------------------------------*/
|
|
5490
5490
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5491
5491
|
*
|
|
@@ -13053,7 +13053,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
|
|
|
13053
13053
|
|
|
13054
13054
|
|
|
13055
13055
|
|
|
13056
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
13056
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (17/10/2026-01:26:49)»*/
|
|
13057
13057
|
/*-----------------------------------------------------------------------------*/
|
|
13058
13058
|
|
|
13059
13059
|
|
|
@@ -14142,10 +14142,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14142
14142
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14143
14143
|
|
|
14144
14144
|
window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14145
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (
|
|
14145
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (17/10/2026-01:26:49)»*/
|
|
14146
14146
|
/*-----------------------------------------------------------------------------*/
|
|
14147
14147
|
|
|
14148
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
|
14148
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (17/10/2026-01:26:49)»*/
|
|
14149
14149
|
/*-----------------------------------------------------------------------------*/
|
|
14150
14150
|
|
|
14151
14151
|
|
|
@@ -14409,7 +14409,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
14409
14409
|
|
|
14410
14410
|
|
|
14411
14411
|
|
|
14412
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (
|
|
14412
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (17/10/2026-01:26:49)»*/
|
|
14413
14413
|
/*-----------------------------------------------------------------------------*/
|
|
14414
14414
|
|
|
14415
14415
|
|
|
@@ -18034,7 +18034,7 @@ if(typeof(window)==="undefined") window=global;
|
|
|
18034
18034
|
// clientSocket.isConnectionAlive=true;
|
|
18035
18035
|
//});
|
|
18036
18036
|
|
|
18037
|
-
|
|
18037
|
+
const ERRORS_CHANNEL_NAME="errors";
|
|
18038
18038
|
|
|
18039
18039
|
|
|
18040
18040
|
// ==================================================================================================================
|
|
@@ -18434,6 +18434,7 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
|
|
|
18434
18434
|
|
|
18435
18435
|
// Executed whenever any message is received on any channel :
|
|
18436
18436
|
executeAll(eventOrMessage, clientSocket=null){ // FOR REAL-TIME ONLY :
|
|
18437
|
+
const self=this;
|
|
18437
18438
|
|
|
18438
18439
|
const clientsRoomsTag=this.clientsRoomsTag;
|
|
18439
18440
|
if(!window.WebsocketImplementation.isInRoom(clientSocket, clientsRoomsTag)) return;
|
|
@@ -18461,7 +18462,7 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
|
|
|
18461
18462
|
// TRACE
|
|
18462
18463
|
lognow(errorMessage, treatmentsChannelError);
|
|
18463
18464
|
const errorDataWrapped={errorMessage:errorMessage, cause:treatmentsChannelError};
|
|
18464
|
-
self.sendError(errorDataWrapped, clientSocket);
|
|
18465
|
+
self.server.sendError(errorDataWrapped, clientSocket);
|
|
18465
18466
|
});
|
|
18466
18467
|
|
|
18467
18468
|
});
|
|
@@ -18471,7 +18472,7 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
|
|
|
18471
18472
|
// TRACE
|
|
18472
18473
|
lognow(errorMessage, error);
|
|
18473
18474
|
const errorDataWrapped={errorMessage:errorMessage, cause:error};
|
|
18474
|
-
self.sendError(errorDataWrapped, clientSocket);
|
|
18475
|
+
self.server.sendError(errorDataWrapped, clientSocket);
|
|
18475
18476
|
});
|
|
18476
18477
|
|
|
18477
18478
|
}
|
|
@@ -18762,7 +18763,29 @@ window.NodeServerInstance=class NodeServerInstance{
|
|
|
18762
18763
|
|
|
18763
18764
|
return dataWrapped;
|
|
18764
18765
|
}
|
|
18765
|
-
|
|
18766
|
+
|
|
18767
|
+
|
|
18768
|
+
/*private*/sendError(error, clientSocketParam=null){
|
|
18769
|
+
// CAUTION ! NEVER DO THIS : clientSocketParam.send(...) ! (because it directly calls a single socket implementation !)
|
|
18770
|
+
|
|
18771
|
+
let errorMessageToSend=error;
|
|
18772
|
+
if(contains(typeof(error),"Error")){
|
|
18773
|
+
errorMessageToSend={
|
|
18774
|
+
type: error.type,
|
|
18775
|
+
httpStatus:error.httpStatus,
|
|
18776
|
+
error:(isString(error) ?
|
|
18777
|
+
{errorMessage:error}
|
|
18778
|
+
: {errorMessage:error.errorMessage, cause:(error.cause?{message:error.cause.message}:null)})
|
|
18779
|
+
};
|
|
18780
|
+
}
|
|
18781
|
+
|
|
18782
|
+
if(clientSocketParam){
|
|
18783
|
+
return this.send(ERRORS_CHANNEL_NAME, errorMessageToSend, null, clientSocketParam);
|
|
18784
|
+
}
|
|
18785
|
+
return errorMessageToSend;
|
|
18786
|
+
}
|
|
18787
|
+
|
|
18788
|
+
|
|
18766
18789
|
|
|
18767
18790
|
onConnectionToClient(doOnConnection, doOnConnectionLost=null){
|
|
18768
18791
|
const self=this;
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2043",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "aotrautils",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.2043",
|
|
10
10
|
"license": "HGPL-1.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"atob": "^2.1.2",
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2043",
|
|
4
4
|
"main": "aotrautils.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|