aotrautils 0.0.63 → 0.0.66
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 +28 -18
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-01:
|
|
3
|
+
/*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-01:47:35)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
6
6
|
*
|
|
@@ -6850,7 +6850,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
6850
6850
|
|
|
6851
6851
|
|
|
6852
6852
|
|
|
6853
|
-
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-01:
|
|
6853
|
+
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-01:47:35)»*/
|
|
6854
6854
|
/*-----------------------------------------------------------------------------*/
|
|
6855
6855
|
|
|
6856
6856
|
|
|
@@ -8056,7 +8056,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
8056
8056
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
8057
8057
|
|
|
8058
8058
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
8059
|
-
/*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-01:
|
|
8059
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-01:47:35)»*/
|
|
8060
8060
|
/*-----------------------------------------------------------------------------*/
|
|
8061
8061
|
|
|
8062
8062
|
|
|
@@ -8266,7 +8266,7 @@ WebsocketImplementation={
|
|
|
8266
8266
|
|
|
8267
8267
|
|
|
8268
8268
|
//
|
|
8269
|
-
// NODE SERVER
|
|
8269
|
+
// NODE SERVER/CLIENT
|
|
8270
8270
|
//
|
|
8271
8271
|
getStatic:(isNodeContext=true, useSocketIOImplementation=false)=>{
|
|
8272
8272
|
|
|
@@ -8275,21 +8275,31 @@ WebsocketImplementation={
|
|
|
8275
8275
|
// cf. https://socket.io/docs/v4/client-socket-instance/
|
|
8276
8276
|
WebsocketImplementation.useSocketIOImplementation=useSocketIOImplementation;
|
|
8277
8277
|
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
// https://stackoverflow.com/questions/6599470/node-js-socket-io-with-ssl
|
|
8281
|
-
// https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
|
8282
|
-
|
|
8283
|
-
if(typeof(socketIO)==="undefined"){
|
|
8278
|
+
if(WebsocketImplementation.useSocketIOImplementation){
|
|
8279
|
+
|
|
8284
8280
|
// TRACE
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8281
|
+
lognow("INFO : (SERVER/CLIENT) Using socket.io websocket implementation.");
|
|
8282
|
+
|
|
8283
|
+
// OLD : socket.io :
|
|
8284
|
+
// https://stackoverflow.com/questions/31156884/how-to-use-https-on-node-js-using-express-socket-io
|
|
8285
|
+
// https://stackoverflow.com/questions/6599470/node-js-socket-io-with-ssl
|
|
8286
|
+
// https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
|
8287
|
+
|
|
8288
|
+
if(typeof(socketIO)==="undefined"){
|
|
8289
|
+
// TRACE
|
|
8290
|
+
console.log("«socket.io» SERVER library not called yet, calling it now.");
|
|
8291
|
+
socketIO=require("socket.io");
|
|
8292
|
+
return socketIO;
|
|
8293
|
+
}
|
|
8294
|
+
if(typeof(socketIO)==="undefined"){
|
|
8295
|
+
// TRACE
|
|
8296
|
+
console.log("ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
8297
|
+
return null;
|
|
8298
|
+
}
|
|
8299
|
+
}else{
|
|
8290
8300
|
// TRACE
|
|
8291
|
-
|
|
8292
|
-
|
|
8301
|
+
lognow("INFO : (SERVER/CLIENT) Using native websocket implementation.");
|
|
8302
|
+
|
|
8293
8303
|
}
|
|
8294
8304
|
|
|
8295
8305
|
// *********************************************************************************
|
|
@@ -9357,7 +9367,7 @@ function getListManager(config){
|
|
|
9357
9367
|
|
|
9358
9368
|
|
|
9359
9369
|
|
|
9360
|
-
/*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-01:
|
|
9370
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-01:47:35)»*/
|
|
9361
9371
|
/*-----------------------------------------------------------------------------*/
|
|
9362
9372
|
|
|
9363
9373
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
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)",
|