aotrautils 0.0.148 → 0.0.149
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 -5
- 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.0.0.000 (17/07/2022-03:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-03:50:48)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
4830
|
|
|
4831
|
-
/*utils CLIENT library associated with aotra version : «1.0.0.000 (17/07/2022-03:
|
|
4831
|
+
/*utils CLIENT library associated with aotra version : «1.0.0.000 (17/07/2022-03:50:48)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4834
4834
|
*
|
|
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
11678
11678
|
|
|
11679
11679
|
|
|
11680
11680
|
|
|
11681
|
-
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (17/07/2022-03:
|
|
11681
|
+
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (17/07/2022-03:50:48)»*/
|
|
11682
11682
|
/*-----------------------------------------------------------------------------*/
|
|
11683
11683
|
|
|
11684
11684
|
|
|
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
12884
12884
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
12885
12885
|
|
|
12886
12886
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
12887
|
-
/*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-03:
|
|
12887
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-03:50:48)»*/
|
|
12888
12888
|
/*-----------------------------------------------------------------------------*/
|
|
12889
12889
|
|
|
12890
12890
|
|
|
@@ -13233,7 +13233,15 @@ WebsocketImplementation={
|
|
|
13233
13233
|
|
|
13234
13234
|
// dataWrapped=JSON.parse(dataWrapped);
|
|
13235
13235
|
// dataWrapped=getAt(dataWrapped,0);// We get the root element
|
|
13236
|
-
|
|
13236
|
+
|
|
13237
|
+
let dataWrapped=message;
|
|
13238
|
+
try{
|
|
13239
|
+
dataWrapped=(WebsocketImplementation.useFlatStrings || isString(message)?JSON.parse(message):message);
|
|
13240
|
+
}catch(error1){
|
|
13241
|
+
// TRACE
|
|
13242
|
+
lognow(`ERROR : Failed to parse JSON for string «${dataWrapped}»`,error1);
|
|
13243
|
+
dataWrapped=(isString(message)?message:JSON.stringify(message));
|
|
13244
|
+
}
|
|
13237
13245
|
|
|
13238
13246
|
|
|
13239
13247
|
// DBG
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.149",
|
|
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)",
|