aotrautils 0.0.2011 → 0.0.2013
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 +15 -16
- 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 (05/10/2026-02:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (05/10/2026-02:35:14)»*/
|
|
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 (05/10/2026-02:
|
|
5488
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/10/2026-02:35:14)»*/
|
|
5489
5489
|
/*-----------------------------------------------------------------------------*/
|
|
5490
5490
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5491
5491
|
*
|
|
@@ -13000,7 +13000,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
|
|
|
13000
13000
|
|
|
13001
13001
|
|
|
13002
13002
|
|
|
13003
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/10/2026-02:
|
|
13003
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/10/2026-02:35:14)»*/
|
|
13004
13004
|
/*-----------------------------------------------------------------------------*/
|
|
13005
13005
|
|
|
13006
13006
|
|
|
@@ -14089,10 +14089,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14089
14089
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14090
14090
|
|
|
14091
14091
|
window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14092
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (05/10/2026-02:
|
|
14092
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (05/10/2026-02:35:14)»*/
|
|
14093
14093
|
/*-----------------------------------------------------------------------------*/
|
|
14094
14094
|
|
|
14095
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (05/10/2026-02:
|
|
14095
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (05/10/2026-02:35:14)»*/
|
|
14096
14096
|
/*-----------------------------------------------------------------------------*/
|
|
14097
14097
|
|
|
14098
14098
|
|
|
@@ -14356,7 +14356,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
14356
14356
|
|
|
14357
14357
|
|
|
14358
14358
|
|
|
14359
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/10/2026-02:
|
|
14359
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/10/2026-02:35:14)»*/
|
|
14360
14360
|
/*-----------------------------------------------------------------------------*/
|
|
14361
14361
|
|
|
14362
14362
|
|
|
@@ -16914,6 +16914,7 @@ window.WebsocketImplementation={
|
|
|
16914
16914
|
// To make the server aware of the clients connections states :
|
|
16915
16915
|
nodeServerInstance.serverSocket.on("close", function close() {
|
|
16916
16916
|
|
|
16917
|
+
let serverClients;
|
|
16917
16918
|
// if(!window.WebsocketImplementation.useSocketIOImplementation)
|
|
16918
16919
|
if(!window.WebsocketImplementation.implementationToUse){
|
|
16919
16920
|
serverClients=nodeServerInstance.serverSocket.clients;
|
|
@@ -18481,25 +18482,23 @@ window.NodeServerInstance=class NodeServerInstance{
|
|
|
18481
18482
|
|
|
18482
18483
|
// DEBUG FOR BUN COMPATIBILITY PROBLEMS :
|
|
18483
18484
|
//let rawData=((eventOrMessage && eventOrMessage.data) ? eventOrMessage.data : eventOrMessage);
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
}
|
|
18488
|
-
let message=rawData;
|
|
18489
|
-
if(message && isString(message)){
|
|
18485
|
+
if(eventOrMessage && eventOrMessage.data && typeof(eventOrMessage.data)!=="string"){
|
|
18486
|
+
// Case Buffer :
|
|
18487
|
+
eventOrMessage.data=eventOrMessage.data.toString();
|
|
18490
18488
|
try{
|
|
18491
|
-
|
|
18489
|
+
// Because bun transforms this into a buffer :
|
|
18490
|
+
eventOrMessage.data=JSON.parse(eventOrMessage.data);
|
|
18492
18491
|
}catch(error){
|
|
18493
|
-
lognow("ERROR : Could not parse JSON :
|
|
18492
|
+
lognow("ERROR : Could not parse JSON : eventOrMessage.data:"+eventOrMessage.data, error);
|
|
18494
18493
|
}
|
|
18495
18494
|
}
|
|
18496
18495
|
|
|
18497
18496
|
//DBG
|
|
18498
|
-
lognow("(DEBUG)(COMMONS)>>>>>>>>><
|
|
18497
|
+
lognow("(DEBUG)(COMMONS)>>>>>>>>><eventOrMessage:",eventOrMessage);
|
|
18499
18498
|
|
|
18500
18499
|
// We execute the events registration listeners entry points:
|
|
18501
18500
|
foreach(self.serverReceptionEntryPoints,(serverReceptionEntryPoint,i)=>{
|
|
18502
|
-
serverReceptionEntryPoint.execute(
|
|
18501
|
+
serverReceptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
18503
18502
|
});
|
|
18504
18503
|
};
|
|
18505
18504
|
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2013",
|
|
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.2013",
|
|
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.2013",
|
|
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)",
|