aotrautils 0.0.84 → 0.0.87
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 +48 -36
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-11:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-11:29:34)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
4830
|
|
|
4831
|
-
/*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-11:
|
|
4831
|
+
/*utils CLIENT library associated with aotra version : «1.0.0.000 (13/07/2022-11:29:34)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4834
4834
|
*
|
|
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
11678
11678
|
|
|
11679
11679
|
|
|
11680
11680
|
|
|
11681
|
-
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-11:
|
|
11681
|
+
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (13/07/2022-11:29:34)»*/
|
|
11682
11682
|
/*-----------------------------------------------------------------------------*/
|
|
11683
11683
|
|
|
11684
11684
|
|
|
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
12884
12884
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
12885
12885
|
|
|
12886
12886
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
12887
|
-
/*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-11:
|
|
12887
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-11:29:34)»*/
|
|
12888
12888
|
/*-----------------------------------------------------------------------------*/
|
|
12889
12889
|
|
|
12890
12890
|
|
|
@@ -12920,41 +12920,46 @@ if(typeof(window)==="undefined") window=global;
|
|
|
12920
12920
|
// https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
|
12921
12921
|
|
|
12922
12922
|
|
|
12923
|
+
// DBG
|
|
12924
|
+
socketIO=require("socket.io");
|
|
12925
|
+
WebSocket=require("ws");
|
|
12923
12926
|
|
|
12924
|
-
let socketIO;
|
|
12925
|
-
let WebSocket;
|
|
12926
|
-
|
|
12927
|
-
if(typeof(socketIO)==="undefined"){
|
|
12928
|
-
// TRACE
|
|
12929
|
-
lognow("«socket.io» SERVER library not called yet, calling it now.");
|
|
12930
|
-
|
|
12931
|
-
socketIO=require("socket.io");
|
|
12932
|
-
// import { socketIO } from "socket.io";
|
|
12933
|
-
|
|
12934
|
-
// TRACE
|
|
12935
|
-
lognow("«socket.io» SERVER library called:",socketIO);
|
|
12936
12927
|
|
|
12937
|
-
}
|
|
12938
|
-
if(typeof(socketIO)==="undefined"){
|
|
12939
|
-
// Exception
|
|
12940
|
-
lognow("ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
12941
|
-
}
|
|
12942
12928
|
|
|
12943
|
-
//
|
|
12944
|
-
//
|
|
12945
|
-
//
|
|
12946
|
-
//
|
|
12947
|
-
//
|
|
12948
|
-
//
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12929
|
+
//let socketIO;
|
|
12930
|
+
//let WebSocket;
|
|
12931
|
+
//
|
|
12932
|
+
//if(typeof(socketIO)==="undefined"){
|
|
12933
|
+
// // TRACE
|
|
12934
|
+
// lognow("«socket.io» SERVER library not called yet, calling it now.");
|
|
12935
|
+
//
|
|
12936
|
+
// socketIO=require("socket.io");
|
|
12937
|
+
//// import { socketIO } from "socket.io";
|
|
12938
|
+
//
|
|
12939
|
+
// // TRACE
|
|
12940
|
+
// lognow("«socket.io» SERVER library called:",socketIO);
|
|
12941
|
+
//
|
|
12942
|
+
//}
|
|
12943
|
+
//if(typeof(socketIO)==="undefined"){
|
|
12944
|
+
// // Exception
|
|
12945
|
+
// lognow("ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
12946
|
+
//}
|
|
12947
|
+
//
|
|
12948
|
+
//// NEW : ws :
|
|
12949
|
+
//// https://github.com/websockets/ws#installing
|
|
12950
|
+
//// https://github.com/websockets/ws/blob/master/doc/ws.md#event-message
|
|
12951
|
+
//// ON BROWSER SIDE : Native Websockets :
|
|
12952
|
+
//// https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
|
|
12953
|
+
//// https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
|
|
12954
|
+
//if(typeof(WebSocket)==="undefined"){
|
|
12955
|
+
// WebSocket=require("ws");
|
|
12956
|
+
// // TRACE
|
|
12957
|
+
// lognow("«ws» SERVER library not called yet, calling it now.");
|
|
12958
|
+
//}
|
|
12959
|
+
//if(typeof(WebSocket)==="undefined"){
|
|
12960
|
+
// // TRACE
|
|
12961
|
+
// lognow("ERROR : «ws» SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
12962
|
+
//}
|
|
12958
12963
|
|
|
12959
12964
|
|
|
12960
12965
|
|
|
@@ -13178,6 +13183,13 @@ WebsocketImplementation={
|
|
|
13178
13183
|
throw new Error("ERROR : SERVER : Server launch is not supported in a non-nodejs context for any implementation.");
|
|
13179
13184
|
}
|
|
13180
13185
|
|
|
13186
|
+
// DBG
|
|
13187
|
+
socketIO=require("socket.io");
|
|
13188
|
+
WebSocket=require("ws");
|
|
13189
|
+
|
|
13190
|
+
|
|
13191
|
+
|
|
13192
|
+
|
|
13181
13193
|
// TODO : FIXME : Use one single interface !
|
|
13182
13194
|
// NODE SERVER MODE ONLY :
|
|
13183
13195
|
let serverSocket;
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87",
|
|
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)",
|