aotrautils 0.0.1621 → 0.0.1622
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (14/05/2025-15:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (14/05/2025-15:42:59)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4943,7 +4943,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4943
4943
|
|
4944
4944
|
|
4945
4945
|
|
4946
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/05/2025-15:
|
4946
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/05/2025-15:42:59)»*/
|
4947
4947
|
/*-----------------------------------------------------------------------------*/
|
4948
4948
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4949
4949
|
*
|
@@ -5029,13 +5029,14 @@ function getURLParameter(nameParam){
|
|
5029
5029
|
}
|
5030
5030
|
|
5031
5031
|
|
5032
|
-
window.arePathsSimilar=function(path1, path2
|
5032
|
+
window.arePathsSimilar=function(path1, path2){
|
5033
5033
|
if(!path1 && !path2) return true;
|
5034
5034
|
if(!path1 && path2) return false;
|
5035
5035
|
if(path1 && !path2) return false;
|
5036
5036
|
|
5037
5037
|
const str1=getLastPathConcreteSegment(path1.trim().toLowerCase());
|
5038
5038
|
const str2=getLastPathConcreteSegment(path2.trim().toLowerCase());
|
5039
|
+
|
5039
5040
|
//const segments1=getPathConcreteSegments(path1.trim().toLowerCase());
|
5040
5041
|
//const segments2=getPathConcreteSegments(path2.trim().toLowerCase());
|
5041
5042
|
//return foreach(segments1, str1=>{
|
@@ -5043,7 +5044,8 @@ window.arePathsSimilar=function(path1, path2, minLength=3){
|
|
5043
5044
|
if(!str1 && !str2) return false;
|
5044
5045
|
if(!str1 && str2) return false;
|
5045
5046
|
if(str1 && !str2) return false;
|
5046
|
-
|
5047
|
+
|
5048
|
+
const minLength=Math.min(str1.length, str2.length);
|
5047
5049
|
for(let i=0; i<=str1.length-minLength; i++) {
|
5048
5050
|
for(let len=minLength; len<=str1.length-i; len++) {
|
5049
5051
|
const sub=str1.substring(i, i+len);
|
@@ -13550,7 +13552,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13550
13552
|
|
13551
13553
|
|
13552
13554
|
|
13553
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/05/2025-15:
|
13555
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/05/2025-15:42:59)»*/
|
13554
13556
|
/*-----------------------------------------------------------------------------*/
|
13555
13557
|
|
13556
13558
|
|
@@ -14789,7 +14791,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14789
14791
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14790
14792
|
|
14791
14793
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14792
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (14/05/2025-15:
|
14794
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (14/05/2025-15:42:59)»*/
|
14793
14795
|
/*-----------------------------------------------------------------------------*/
|
14794
14796
|
|
14795
14797
|
|
@@ -14935,7 +14937,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14935
14937
|
|
14936
14938
|
|
14937
14939
|
|
14938
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/05/2025-15:
|
14940
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/05/2025-15:42:59)»*/
|
14939
14941
|
/*-----------------------------------------------------------------------------*/
|
14940
14942
|
|
14941
14943
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1622",
|
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)",
|