aotrautils 0.0.618 → 0.0.620
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 +13 -10
- 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 (25/09/2023-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (25/09/2023-02:02:34)»*/
|
|
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-
|
|
5057
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/09/2023-02:02:34)»*/
|
|
5058
5058
|
/*-----------------------------------------------------------------------------*/
|
|
5059
5059
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5060
5060
|
*
|
|
@@ -5089,9 +5089,12 @@ if(typeof(window)==="undefined") window=global;
|
|
|
5089
5089
|
const APOSTROPHE="’";
|
|
5090
5090
|
PERFORM_TESTS_ON_LIBRARY=false;
|
|
5091
5091
|
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5092
|
+
|
|
5093
|
+
function isUserMediaAvailable(){
|
|
5094
|
+
if(typeof(navigator)===undefined)
|
|
5095
|
+
return false;
|
|
5096
|
+
return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia && navigator.mediaDevices.enumerateDevices);
|
|
5097
|
+
}
|
|
5095
5098
|
|
|
5096
5099
|
|
|
5097
5100
|
// Dependances-optionalizing mechanisms :
|
|
@@ -7961,7 +7964,7 @@ function filterPoints(allPoints ,ctx/*DBG*/){
|
|
|
7961
7964
|
/*OPTIONAL*/doFinallyWhenMultipleDevices=null
|
|
7962
7965
|
){
|
|
7963
7966
|
|
|
7964
|
-
if(!isUserMediaAvailable
|
|
7967
|
+
if(!isUserMediaAvailable()){
|
|
7965
7968
|
// TRACE
|
|
7966
7969
|
log("ERROR : User medias is not supported in your browser (or are you running in a non-https context ?). Aborting");
|
|
7967
7970
|
return null;
|
|
@@ -8058,7 +8061,7 @@ function filterPoints(allPoints ,ctx/*DBG*/){
|
|
|
8058
8061
|
}
|
|
8059
8062
|
|
|
8060
8063
|
|
|
8061
|
-
if(!isUserMediaAvailable){
|
|
8064
|
+
if(!isUserMediaAvailable()){
|
|
8062
8065
|
// TRACE
|
|
8063
8066
|
log("ERROR : User medias is not supported in your browser (or are you running in a non-https context ?). Aborting");
|
|
8064
8067
|
return null;
|
|
@@ -13287,7 +13290,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13287
13290
|
|
|
13288
13291
|
|
|
13289
13292
|
|
|
13290
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/09/2023-
|
|
13293
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/09/2023-02:02:34)»*/
|
|
13291
13294
|
/*-----------------------------------------------------------------------------*/
|
|
13292
13295
|
|
|
13293
13296
|
|
|
@@ -14526,7 +14529,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14526
14529
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14527
14530
|
|
|
14528
14531
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14529
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (25/09/2023-
|
|
14532
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (25/09/2023-02:02:34)»*/
|
|
14530
14533
|
/*-----------------------------------------------------------------------------*/
|
|
14531
14534
|
|
|
14532
14535
|
|
|
@@ -14843,7 +14846,7 @@ WebsocketImplementation={
|
|
|
14843
14846
|
let dataResult=eventOrMessage;
|
|
14844
14847
|
|
|
14845
14848
|
try{
|
|
14846
|
-
dataResult=(WebsocketImplementation.useFlatStrings || isString(eventOrMessage)?
|
|
14849
|
+
dataResult=(WebsocketImplementation.useFlatStrings || isString(eventOrMessage)?parseJSON(eventOrMessage):eventOrMessage);
|
|
14847
14850
|
}catch(error1){
|
|
14848
14851
|
// TRACE
|
|
14849
14852
|
lognow(`ERROR : Failed to parse JSON for string «${dataResult}»`,error1);
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.620",
|
|
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)",
|