aotrautils 0.0.309 → 0.0.310
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 +11 -8
- 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_29072022-2359 (03/12/2022-16:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/12/2022-16:08:42)»*/
|
|
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 : «1_29072022-2359 (03/12/2022-16:
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (03/12/2022-16:08:42)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4833
4833
|
*
|
|
@@ -12948,7 +12948,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12948
12948
|
};
|
|
12949
12949
|
|
|
12950
12950
|
|
|
12951
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/12/2022-16:
|
|
12951
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/12/2022-16:08:42)»*/
|
|
12952
12952
|
/*-----------------------------------------------------------------------------*/
|
|
12953
12953
|
|
|
12954
12954
|
|
|
@@ -14176,7 +14176,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14176
14176
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14177
14177
|
|
|
14178
14178
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14179
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (03/12/2022-16:
|
|
14179
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (03/12/2022-16:08:42)»*/
|
|
14180
14180
|
/*-----------------------------------------------------------------------------*/
|
|
14181
14181
|
|
|
14182
14182
|
|
|
@@ -15215,9 +15215,6 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
15215
15215
|
}
|
|
15216
15216
|
|
|
15217
15217
|
|
|
15218
|
-
// To remove the CORS error message (cf. https://medium.com/@dtkatz/3-ways-to-fix-the-cors-error-and-how-access-control-allow-origin-works-d97d55946d9)
|
|
15219
|
-
if(ADD_CORS_HEADER) response.header('Access-Control-Allow-Origin', '*');
|
|
15220
|
-
|
|
15221
15218
|
|
|
15222
15219
|
const urlFile="." + url;
|
|
15223
15220
|
|
|
@@ -15253,7 +15250,13 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
15253
15250
|
// TRACE
|
|
15254
15251
|
console.log("INFO 200 OK :"+filePath);
|
|
15255
15252
|
|
|
15256
|
-
|
|
15253
|
+
const headers={ "Content-Type": contentType };
|
|
15254
|
+
|
|
15255
|
+
// To remove the CORS error message (cf. https://medium.com/@dtkatz/3-ways-to-fix-the-cors-error-and-how-access-control-allow-origin-works-d97d55946d9)
|
|
15256
|
+
if(ADD_CORS_HEADER) headers["Access-Control-Allow-Origin"]="*";
|
|
15257
|
+
|
|
15258
|
+
|
|
15259
|
+
response.writeHead(200, headers);
|
|
15257
15260
|
response.end(fileContent, "utf-8");
|
|
15258
15261
|
|
|
15259
15262
|
// res.writeHead(200);
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.310",
|
|
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)",
|