aotrautils 0.0.607 → 0.0.609

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 (25/09/2023-01:10:57)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (25/09/2023-01:21:18)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5054,7 +5054,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5054
5054
 
5055
5055
 
5056
5056
 
5057
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/09/2023-01:10:57)»*/
5057
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/09/2023-01:21:18)»*/
5058
5058
  /*-----------------------------------------------------------------------------*/
5059
5059
  /* ## Utility global methods in a browser (htmljs) client environment.
5060
5060
  *
@@ -5089,7 +5089,7 @@ if(typeof(window)==="undefined") window=global;
5089
5089
  const APOSTROPHE="’";
5090
5090
  PERFORM_TESTS_ON_LIBRARY=false;
5091
5091
 
5092
- const isUserMediaAvailable=!!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia && navigator.mediaDevices.enumerateDevices);
5092
+ const isUserMediaAvailable=!!(navigator && navigator.mediaDevices && navigator.mediaDevices.getUserMedia && navigator.mediaDevices.enumerateDevices);
5093
5093
 
5094
5094
 
5095
5095
  // Dependances-optionalizing mechanisms :
@@ -5746,6 +5746,7 @@ function startAnimation(sourceValue, destinationValue, animationDurationMillis,
5746
5746
  // Compatibility management :
5747
5747
 
5748
5748
  function isIE(){
5749
+ if(!navigator) return false;
5749
5750
  if (typeof window.isIEVar === "undefined" || window.isIEVar === null){
5750
5751
  var myNav=navigator.userAgent.toLowerCase();
5751
5752
  window.isIEVar=(myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
@@ -5753,10 +5754,10 @@ function isIE(){
5753
5754
  return window.isIEVar;
5754
5755
  }
5755
5756
  function isChrome(){
5756
- return containsIgnoreCase(navigator.userAgent, "chrome");
5757
+ return navigator && containsIgnoreCase(navigator.userAgent, "chrome");
5757
5758
  }
5758
5759
  function isFirefox(){
5759
- return containsIgnoreCase(navigator.userAgent, "mozilla");
5760
+ return navigator && containsIgnoreCase(navigator.userAgent, "mozilla");
5760
5761
  }
5761
5762
 
5762
5763
  function isDeviceMobile(){
@@ -13283,7 +13284,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13283
13284
 
13284
13285
 
13285
13286
 
13286
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/09/2023-01:10:57)»*/
13287
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/09/2023-01:21:18)»*/
13287
13288
  /*-----------------------------------------------------------------------------*/
13288
13289
 
13289
13290
 
@@ -14522,7 +14523,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14522
14523
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14523
14524
 
14524
14525
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14525
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (25/09/2023-01:10:57)»*/
14526
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (25/09/2023-01:21:18)»*/
14526
14527
  /*-----------------------------------------------------------------------------*/
14527
14528
 
14528
14529
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.607",
3
+ "version": "0.0.609",
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)",