aotrautils 0.0.224 → 0.0.227
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 +24 -8
- aotrautils/package.json +2 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/07/2022-00:15:13)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4827
4827
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
|
-
/*utils CLIENT library associated with aotra version : «
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/07/2022-00:15:13)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4833
4833
|
*
|
|
@@ -11676,7 +11676,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
11676
11676
|
|
|
11677
11677
|
|
|
11678
11678
|
|
|
11679
|
-
/*utils GEOMETRY library associated with aotra version : «
|
|
11679
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/07/2022-00:15:13)»*/
|
|
11680
11680
|
/*-----------------------------------------------------------------------------*/
|
|
11681
11681
|
|
|
11682
11682
|
|
|
@@ -12881,7 +12881,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
12881
12881
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
12882
12882
|
|
|
12883
12883
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
12884
|
-
/*utils SERVER library associated with aotra version : «
|
|
12884
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-00:15:13)»*/
|
|
12885
12885
|
/*-----------------------------------------------------------------------------*/
|
|
12886
12886
|
|
|
12887
12887
|
|
|
@@ -13123,17 +13123,33 @@ WebsocketImplementation={
|
|
|
13123
13123
|
lognow("INFO : (SERVER/CLIENT) Using socket.io websocket implementation.");
|
|
13124
13124
|
|
|
13125
13125
|
if(isNodeContext){
|
|
13126
|
+
|
|
13127
|
+
// NODE SERVER :
|
|
13126
13128
|
if(typeof(Socket)==="undefined"){
|
|
13127
13129
|
// TRACE
|
|
13128
|
-
console.log("«socket.io» SERVER library not called yet, calling it now.");
|
|
13130
|
+
console.log("«socket.io» NODE SERVER library not called yet, calling it now.");
|
|
13129
13131
|
Socket=require("socket.io");
|
|
13130
13132
|
return WebsocketImplementation;
|
|
13131
13133
|
}
|
|
13132
13134
|
if(typeof(Socket)==="undefined"){
|
|
13133
13135
|
// TRACE
|
|
13134
|
-
console.log("ERROR : «socket.io»
|
|
13136
|
+
console.log("ERROR : «socket.io» NODE CLIENT/SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
13135
13137
|
return WebsocketImplementation;
|
|
13136
13138
|
}
|
|
13139
|
+
|
|
13140
|
+
// NODE CLIENT :
|
|
13141
|
+
if(typeof(io)==="undefined"){
|
|
13142
|
+
// TRACE
|
|
13143
|
+
console.log("«socket.io-client» NODE CLIENT library not called yet, calling it now.");
|
|
13144
|
+
io=require("socket.io-client");
|
|
13145
|
+
}
|
|
13146
|
+
if(typeof(io)==="undefined"){
|
|
13147
|
+
// TRACE
|
|
13148
|
+
console.log("ERROR : «socket-client.io» NODE CLIENT library not found. Cannot launch nodejs server. Aborting.");
|
|
13149
|
+
return WebsocketImplementation;
|
|
13150
|
+
}
|
|
13151
|
+
|
|
13152
|
+
|
|
13137
13153
|
}
|
|
13138
13154
|
|
|
13139
13155
|
}else{
|
|
@@ -13530,14 +13546,14 @@ WebsocketImplementation={
|
|
|
13530
13546
|
// NOW : socket.io :
|
|
13531
13547
|
//client on server-side:
|
|
13532
13548
|
|
|
13533
|
-
if(WebsocketImplementation.isNodeContext && typeof(
|
|
13549
|
+
if(WebsocketImplementation.isNodeContext && typeof(io)!=="undefined"){
|
|
13534
13550
|
// // Node client :
|
|
13535
13551
|
// connectToServer=function (serverURL, port, isSecure, timeout=10000){
|
|
13536
13552
|
// return Socket.connect(serverURL + ":" + port,{timeout: timeout});
|
|
13537
13553
|
// }
|
|
13538
13554
|
|
|
13539
13555
|
// OLD SYNTAX: clientSocket=Socket.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
13540
|
-
// clientSocket=new Socket.Client
|
|
13556
|
+
// NO : clientSocket=new Socket.Client(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
13541
13557
|
clientSocket=io(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
13542
13558
|
|
|
13543
13559
|
}
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.227",
|
|
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)",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"fs": "^0.0.1-security",
|
|
25
25
|
"sjcl": "^1.0.8",
|
|
26
26
|
"socket.io": "^4.5.1",
|
|
27
|
+
"socket.io-client": "^4.5.1",
|
|
27
28
|
"ws": "^8.1.0"
|
|
28
29
|
}
|
|
29
30
|
}
|