aotrautils-srv 0.0.635 → 0.0.637

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 (04/10/2023-22:42:32)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/10/2023-23:29:27)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4081,6 +4081,7 @@ window.areEquivalent=function(obj1Param,obj2Param,flattenBeforeCompute=false, UU
4081
4081
  let isArrayObj2=isArray(obj2Param);
4082
4082
  if(isArrayObj1!==isArrayObj2) return false;
4083
4083
 
4084
+ let obj1, obj2;
4084
4085
  if(flattenBeforeCompute){
4085
4086
  // NO : Because the UUIDs generation can alter the result !
4086
4087
  // obj1=getAsFlatStructure(obj1Param,true);
@@ -4088,6 +4089,9 @@ window.areEquivalent=function(obj1Param,obj2Param,flattenBeforeCompute=false, UU
4088
4089
  // YES :
4089
4090
  obj1=JSON.decycle(obj1Param);
4090
4091
  obj2=JSON.decycle(obj2Param);
4092
+ }else{
4093
+ obj1=obj1Param;
4094
+ obj2=obj2Param;
4091
4095
  }
4092
4096
 
4093
4097
  //We ignore uuid keys :
@@ -5108,7 +5112,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5108
5112
 
5109
5113
 
5110
5114
 
5111
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/10/2023-22:42:32)»*/
5115
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/10/2023-23:29:27)»*/
5112
5116
  /*-----------------------------------------------------------------------------*/
5113
5117
 
5114
5118
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.635",
3
+ "version": "0.0.637",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",