aotrautils 0.0.1836 → 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 +15 -10
- 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-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4116,9 +4116,17 @@ 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
|
+
const classInWindow=window[className];
|
|
4120
|
+
|
|
4121
|
+
if(!classInWindow){
|
|
4122
|
+
// TRACE
|
|
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.`);
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
|
|
4119
4127
|
try{
|
|
4120
4128
|
try{
|
|
4121
|
-
newObj=Reflect.construct(
|
|
4129
|
+
newObj=Reflect.construct(classInWindow);
|
|
4122
4130
|
}catch(e1){
|
|
4123
4131
|
|
|
4124
4132
|
// // TRACE
|
|
@@ -4133,9 +4141,6 @@ window.instanciate=function(className=null){
|
|
|
4133
4141
|
// // TRACE
|
|
4134
4142
|
// console.log("ERROR : Could not instanciate class «"+className+"» with eval. (Maybe class is undefined or default constructor doesn't exist !)");
|
|
4135
4143
|
|
|
4136
|
-
|
|
4137
|
-
const classInWindow=window[className];
|
|
4138
|
-
|
|
4139
4144
|
try{
|
|
4140
4145
|
|
|
4141
4146
|
// // TODO : FIXME : I don't like that at all, to use eval(...), but on today I know of no other solution... :
|
|
@@ -5140,7 +5145,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5140
5145
|
|
|
5141
5146
|
|
|
5142
5147
|
|
|
5143
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/04/2026-
|
|
5148
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
5144
5149
|
/*-----------------------------------------------------------------------------*/
|
|
5145
5150
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5146
5151
|
*
|
|
@@ -13220,7 +13225,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13220
13225
|
|
|
13221
13226
|
|
|
13222
13227
|
|
|
13223
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/04/2026-
|
|
13228
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
13224
13229
|
/*-----------------------------------------------------------------------------*/
|
|
13225
13230
|
|
|
13226
13231
|
|
|
@@ -14549,10 +14554,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14549
14554
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14550
14555
|
|
|
14551
14556
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14552
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (05/04/2026-
|
|
14557
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
14553
14558
|
/*-----------------------------------------------------------------------------*/
|
|
14554
14559
|
|
|
14555
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (05/04/2026-
|
|
14560
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
14556
14561
|
/*-----------------------------------------------------------------------------*/
|
|
14557
14562
|
|
|
14558
14563
|
|
|
@@ -14698,7 +14703,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
|
14698
14703
|
|
|
14699
14704
|
|
|
14700
14705
|
|
|
14701
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/04/2026-
|
|
14706
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/04/2026-01:20:06)»*/
|
|
14702
14707
|
/*-----------------------------------------------------------------------------*/
|
|
14703
14708
|
|
|
14704
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)",
|