aotrautils 0.0.71 → 0.0.72

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-02:22:17)»*/
3
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-02:25:54)»*/
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-02:22:17)»*/
6853
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-02:25:54)»*/
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-02:22:17)»*/
8059
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-02:25:54)»*/
8060
8060
  /*-----------------------------------------------------------------------------*/
8061
8061
 
8062
8062
 
@@ -8342,13 +8342,14 @@ WebsocketImplementation={
8342
8342
  serverSocket=new WebSocket.Server({ "server":listenableServer });
8343
8343
  }else{
8344
8344
 
8345
-
8345
+ const globalContext=(WebsocketImplementation.isNodeContext?global:window);
8346
+
8346
8347
  // DBG
8347
- console.log(">>>>>>>socketIO:",JSON.stringify(socketIO));
8348
+ console.log(">>>>>>>socketIO:",JSON.stringify(globalContext.socketIO));
8348
8349
 
8349
8350
  // NOW : socket.io :
8350
8351
  // Loading socket.io
8351
- serverSocket=socketIO.listen(listenableServer);
8352
+ serverSocket=globalContext.socketIO.listen(listenableServer);
8352
8353
 
8353
8354
  // Setting up the disctonnect event :
8354
8355
  serverSocket.on("endConnection",()=>{
@@ -8650,12 +8651,15 @@ WebsocketImplementation={
8650
8651
  }else{
8651
8652
  // NOW : socket.io :
8652
8653
  //client on server-side:
8653
- if(WebsocketImplementation.isNodeContext && typeof(socketIO)!=="undefined"){
8654
+
8655
+ const globalContext=(WebsocketImplementation.isNodeContext?global:window);
8656
+
8657
+ if(WebsocketImplementation.isNodeContext && typeof(globalContext.socketIO)!=="undefined"){
8654
8658
  // // Node client :
8655
8659
  // connectToServer=function (serverURL, port, isSecure, timeout=10000){
8656
8660
  // return socketIO.connect(serverURL + ":" + port,{timeout: timeout});
8657
8661
  // }
8658
- clientSocket=socketIO.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
8662
+ clientSocket=globalContext.socketIO.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
8659
8663
  }
8660
8664
  }
8661
8665
 
@@ -9374,7 +9378,7 @@ function getListManager(config){
9374
9378
 
9375
9379
 
9376
9380
 
9377
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-02:22:17)»*/
9381
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-02:25:54)»*/
9378
9382
  /*-----------------------------------------------------------------------------*/
9379
9383
 
9380
9384
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
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)",