aotrautils 0.0.1837 → 0.0.1838
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 +10 -12
- 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/04/2026-01:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4116,8 +4116,9 @@ window.instanciate=function(className=null){
|
|
|
4116
4116
|
// If class name is a simple array, a simple «[]» is enough :
|
|
4117
4117
|
if(className==="Array") return [];
|
|
4118
4118
|
|
|
4119
|
-
|
|
4120
|
-
|
|
4119
|
+
const classInWindow=window[className];
|
|
4120
|
+
|
|
4121
|
+
if(!classInWindow){
|
|
4121
4122
|
// TRACE
|
|
4122
4123
|
lognow(`WARN : CAUTION : «${className}» class does not seem to be registered in the global window object. This can lead to problems instanciating it in a pure nodejs context.`);
|
|
4123
4124
|
}
|
|
@@ -4125,7 +4126,7 @@ window.instanciate=function(className=null){
|
|
|
4125
4126
|
|
|
4126
4127
|
try{
|
|
4127
4128
|
try{
|
|
4128
|
-
newObj=Reflect.construct(
|
|
4129
|
+
newObj=Reflect.construct(classInWindow);
|
|
4129
4130
|
}catch(e1){
|
|
4130
4131
|
|
|
4131
4132
|
// // TRACE
|
|
@@ -4140,9 +4141,6 @@ window.instanciate=function(className=null){
|
|
|
4140
4141
|
// // TRACE
|
|
4141
4142
|
// console.log("ERROR : Could not instanciate class «"+className+"» with eval. (Maybe class is undefined or default constructor doesn't exist !)");
|
|
4142
4143
|
|
|
4143
|
-
|
|
4144
|
-
const classInWindow=window[className];
|
|
4145
|
-
|
|
4146
4144
|
try{
|
|
4147
4145
|
|
|
4148
4146
|
// // TODO : FIXME : I don't like that at all, to use eval(...), but on today I know of no other solution... :
|
|
@@ -5147,7 +5145,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5147
5145
|
|
|
5148
5146
|
|
|
5149
5147
|
|
|
5150
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/04/2026-01:
|
|
5148
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
5151
5149
|
/*-----------------------------------------------------------------------------*/
|
|
5152
5150
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5153
5151
|
*
|
|
@@ -13227,7 +13225,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13227
13225
|
|
|
13228
13226
|
|
|
13229
13227
|
|
|
13230
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/04/2026-01:
|
|
13228
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
13231
13229
|
/*-----------------------------------------------------------------------------*/
|
|
13232
13230
|
|
|
13233
13231
|
|
|
@@ -14556,10 +14554,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14556
14554
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14557
14555
|
|
|
14558
14556
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14559
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (05/04/2026-01:
|
|
14557
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
14560
14558
|
/*-----------------------------------------------------------------------------*/
|
|
14561
14559
|
|
|
14562
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (05/04/2026-01:
|
|
14560
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
14563
14561
|
/*-----------------------------------------------------------------------------*/
|
|
14564
14562
|
|
|
14565
14563
|
|
|
@@ -14705,7 +14703,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
|
14705
14703
|
|
|
14706
14704
|
|
|
14707
14705
|
|
|
14708
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/04/2026-01:
|
|
14706
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
14709
14707
|
/*-----------------------------------------------------------------------------*/
|
|
14710
14708
|
|
|
14711
14709
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1838",
|
|
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)",
|