aotrautils 0.0.744 → 0.0.745

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/11/2023-00:35:26)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/11/2023-00:42:51)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4086,9 +4086,15 @@ window.areEquivalentFlatMaps=function(o1,o2,UUID_ATTR_NAME=DEFAULT_UUID_ATTR_NAM
4086
4086
  return areEquivalent;
4087
4087
  }
4088
4088
 
4089
+ window.areEquivalentSimple=function(obj1Param,obj2Param, caseSensitive=true){
4090
+ const str1=stringify(obj1Param);
4091
+ const str2=stringify(obj2Param);
4092
+ if(!caseSensitive)
4093
+ return (str1.toLowerCase()==str2.toLowerCase());
4094
+ return (str1==str2);
4095
+ }
4089
4096
 
4090
-
4091
-
4097
+ // TODO : FIXME SEEMS TO NOT WORK ON SIMPLE OBJECTS !!!
4092
4098
  window.areEquivalent=function(obj1Param,obj2Param,flattenBeforeCompute=false, UUID_ATTR_NAME=DEFAULT_UUID_ATTR_NAME,POINTER_TO_ATTR_NAME=DEFAULT_POINTER_TO_ATTR_NAME){
4093
4099
 
4094
4100
  if((obj1Param!=null)!==(obj2Param!=null) || typeof(obj1Param)!==typeof(obj2Param)) return false;
@@ -5161,7 +5167,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5161
5167
 
5162
5168
 
5163
5169
 
5164
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (10/11/2023-00:35:26)»*/
5170
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (10/11/2023-00:42:51)»*/
5165
5171
  /*-----------------------------------------------------------------------------*/
5166
5172
  /* ## Utility global methods in a browser (htmljs) client environment.
5167
5173
  *
@@ -13403,7 +13409,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13403
13409
 
13404
13410
 
13405
13411
 
13406
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (10/11/2023-00:35:26)»*/
13412
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (10/11/2023-00:42:51)»*/
13407
13413
  /*-----------------------------------------------------------------------------*/
13408
13414
 
13409
13415
 
@@ -14642,7 +14648,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14642
14648
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14643
14649
 
14644
14650
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14645
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (10/11/2023-00:35:26)»*/
14651
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (10/11/2023-00:42:51)»*/
14646
14652
  /*-----------------------------------------------------------------------------*/
14647
14653
 
14648
14654
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.744",
3
+ "version": "0.0.745",
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)",