aotrautils 0.0.66 → 0.0.69

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 CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-01:47:35)»*/
3
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-02:14:34)»*/
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:47:35)»*/
6853
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-02:14:34)»*/
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:47:35)»*/
8059
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-02:14:34)»*/
8060
8060
  /*-----------------------------------------------------------------------------*/
8061
8061
 
8062
8062
 
@@ -8287,14 +8287,15 @@ WebsocketImplementation={
8287
8287
 
8288
8288
  if(typeof(socketIO)==="undefined"){
8289
8289
  // TRACE
8290
- console.log("«socket.io» SERVER library not called yet, calling it now.");
8290
+ lognow("«socket.io» SERVER library not called yet, calling it now.");
8291
8291
  socketIO=require("socket.io");
8292
- return socketIO;
8292
+ // TRACE
8293
+ lognow("«socket.io» SERVER library called.");
8294
+
8293
8295
  }
8294
8296
  if(typeof(socketIO)==="undefined"){
8295
- // TRACE
8296
- console.log("ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.");
8297
- return null;
8297
+ // Exception
8298
+ throw "ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.";
8298
8299
  }
8299
8300
  }else{
8300
8301
  // TRACE
@@ -8339,6 +8340,11 @@ WebsocketImplementation={
8339
8340
  if(!WebsocketImplementation.useSocketIOImplementation){
8340
8341
  serverSocket=new WebSocket.Server({ "server":listenableServer });
8341
8342
  }else{
8343
+
8344
+
8345
+ // DBG
8346
+ console.log(">>>>>>>socketIO:",JSON.stringify(socketIO));
8347
+
8342
8348
  // NOW : socket.io :
8343
8349
  // Loading socket.io
8344
8350
  serverSocket=socketIO.listen(listenableServer);
@@ -9367,7 +9373,7 @@ function getListManager(config){
9367
9373
 
9368
9374
 
9369
9375
 
9370
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-01:47:35)»*/
9376
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-02:14:34)»*/
9371
9377
  /*-----------------------------------------------------------------------------*/
9372
9378
 
9373
9379
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.66",
3
+ "version": "0.0.69",
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)",