aotrautils 0.0.736 → 0.0.737
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 +14 -9
- 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 (07/11/2023-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (07/11/2023-23:27:49)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -2179,12 +2179,17 @@ window.compareDates=function(date1=null,date2=null){
|
|
|
2179
2179
|
if(date1==null && date2==null) return 0;
|
|
2180
2180
|
if(date1==null && date2!=null) return 1;
|
|
2181
2181
|
if(date1!=null && date2==null) return -1;
|
|
2182
|
-
if(typeof(date1)
|
|
2183
|
-
|
|
2182
|
+
if(typeof(date1)=="Date" && typeof(date2)=="Date"){
|
|
2183
|
+
if(date1.getTime()==date2.getTime()) return 0;
|
|
2184
|
+
if(date1.getTime()<date2.getTime()) return 1;
|
|
2185
|
+
return -1;
|
|
2184
2186
|
}
|
|
2185
|
-
if(date1
|
|
2186
|
-
|
|
2187
|
-
|
|
2187
|
+
if(typeof(date1)=="number" && typeof(date2)=="number"){
|
|
2188
|
+
if(date1==date2) return 0;
|
|
2189
|
+
if(date1<date2) return 1;
|
|
2190
|
+
return -1;
|
|
2191
|
+
}
|
|
2192
|
+
throw new Error(`Cannot compare dates with types : ${typeof(date1)} ; ${typeof(date2)}`);
|
|
2188
2193
|
}
|
|
2189
2194
|
|
|
2190
2195
|
|
|
@@ -5156,7 +5161,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5156
5161
|
|
|
5157
5162
|
|
|
5158
5163
|
|
|
5159
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (07/11/2023-
|
|
5164
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (07/11/2023-23:27:49)»*/
|
|
5160
5165
|
/*-----------------------------------------------------------------------------*/
|
|
5161
5166
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5162
5167
|
*
|
|
@@ -13398,7 +13403,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13398
13403
|
|
|
13399
13404
|
|
|
13400
13405
|
|
|
13401
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (07/11/2023-
|
|
13406
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (07/11/2023-23:27:49)»*/
|
|
13402
13407
|
/*-----------------------------------------------------------------------------*/
|
|
13403
13408
|
|
|
13404
13409
|
|
|
@@ -14637,7 +14642,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14637
14642
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14638
14643
|
|
|
14639
14644
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14640
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (07/11/2023-
|
|
14645
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (07/11/2023-23:27:49)»*/
|
|
14641
14646
|
/*-----------------------------------------------------------------------------*/
|
|
14642
14647
|
|
|
14643
14648
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.737",
|
|
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)",
|