aotrautils 0.0.59 → 0.0.63

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:27:50)»*/
3
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-01:44:12)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
  /* ## Utility global methods in a browser (htmljs) client environment.
6
6
  *
@@ -6512,7 +6512,6 @@ initClient=function(isNodeContext=true, useSocketIOImplementation=false, doOnSer
6512
6512
  // DBG
6513
6513
  lognow("INFO : Setting up Websocket implementation server :...");
6514
6514
 
6515
-
6516
6515
  let socketToServer=WebsocketImplementation.getStatic(isNodeContext, useSocketIOImplementation).connectToServer(url, port, isSecure, timeout);
6517
6516
  if(!socketToServer){
6518
6517
  // TRACE
@@ -6851,7 +6850,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
6851
6850
 
6852
6851
 
6853
6852
 
6854
- /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-01:27:50)»*/
6853
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-01:44:12)»*/
6855
6854
  /*-----------------------------------------------------------------------------*/
6856
6855
 
6857
6856
 
@@ -8057,7 +8056,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
8057
8056
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
8058
8057
 
8059
8058
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
8060
- /*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-01:27:50)»*/
8059
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-01:44:12)»*/
8061
8060
  /*-----------------------------------------------------------------------------*/
8062
8061
 
8063
8062
 
@@ -8281,17 +8280,17 @@ WebsocketImplementation={
8281
8280
  // https://stackoverflow.com/questions/6599470/node-js-socket-io-with-ssl
8282
8281
  // https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
8283
8282
 
8284
- // if(typeof(socketIO)==="undefined"){
8285
- // // TRACE
8286
- // console.log("«socket.io» SERVER library not called yet, calling it now.");
8287
- // socketIO=require("socket.io");
8288
- // return socketIO;
8289
- // }
8290
- // if(typeof(socketIO)==="undefined"){
8291
- // // TRACE
8292
- // console.log("ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.");
8293
- // return null;
8294
- // }
8283
+ if(typeof(socketIO)==="undefined"){
8284
+ // TRACE
8285
+ console.log("«socket.io» SERVER library not called yet, calling it now.");
8286
+ socketIO=require("socket.io");
8287
+ return socketIO;
8288
+ }
8289
+ if(typeof(socketIO)==="undefined"){
8290
+ // TRACE
8291
+ console.log("ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.");
8292
+ return null;
8293
+ }
8295
8294
 
8296
8295
  // *********************************************************************************
8297
8296
 
@@ -9358,7 +9357,7 @@ function getListManager(config){
9358
9357
 
9359
9358
 
9360
9359
 
9361
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-01:27:50)»*/
9360
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-01:44:12)»*/
9362
9361
  /*-----------------------------------------------------------------------------*/
9363
9362
 
9364
9363
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.59",
3
+ "version": "0.0.63",
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)",
@@ -12,7 +12,8 @@
12
12
  "javacript",
13
13
  "foreach",
14
14
  "decycle",
15
- "recycle"
15
+ "recycle",
16
+ "browser"
16
17
  ],
17
18
  "engines": {
18
19
  "node": "*",
@@ -22,6 +23,7 @@
22
23
  "atob": "^2.1.2",
23
24
  "fs": "^0.0.1-security",
24
25
  "sjcl": "^1.0.8",
26
+ "socket.io": "^4.5.1",
25
27
  "ws": "^8.1.0"
26
28
  }
27
29
  }