aotrautils 0.0.799 → 0.0.800

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 COMMONS library associated with aotra version : «1_29072022-2359 (14/02/2024-23:31:18)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/02/2024-00:05:05)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5167,7 +5167,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5167
5167
 
5168
5168
 
5169
5169
 
5170
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/02/2024-23:31:18)»*/
5170
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/02/2024-00:05:05)»*/
5171
5171
  /*-----------------------------------------------------------------------------*/
5172
5172
  /* ## Utility global methods in a browser (htmljs) client environment.
5173
5173
  *
@@ -13380,7 +13380,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13380
13380
 
13381
13381
 
13382
13382
 
13383
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/02/2024-23:31:18)»*/
13383
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/02/2024-00:05:05)»*/
13384
13384
  /*-----------------------------------------------------------------------------*/
13385
13385
 
13386
13386
 
@@ -14619,7 +14619,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14619
14619
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14620
14620
 
14621
14621
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14622
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (14/02/2024-23:31:18)»*/
14622
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/02/2024-00:05:05)»*/
14623
14623
  /*-----------------------------------------------------------------------------*/
14624
14624
 
14625
14625
 
@@ -16303,7 +16303,7 @@ performHTTPRequestNode=function(completeURL,httpMethod="GET",headers={},postRequ
16303
16303
 
16304
16304
  if(!require){
16305
16305
  // TODO : FIXME : Support also a browser context!!
16306
- lognow("ERROR : 'require()' not found, this may need we are not running in a nodejs context. This is currently not supported. Aborting");
16306
+ lognow("ERROR : require() not found, this may need we are not running in a nodejs context. This is currently not supported. Aborting");
16307
16307
  throw new Error("Unsupported context non-nodejs for performHTTPRequestNode().");
16308
16308
  }
16309
16309
 
@@ -16325,7 +16325,7 @@ performHTTPRequestNode=function(completeURL,httpMethod="GET",headers={},postRequ
16325
16325
 
16326
16326
  options.headers=headers;
16327
16327
 
16328
- return new Promise((accept,resolve)=>{
16328
+ return new Promise((resolve,reject)=>{
16329
16329
 
16330
16330
  // Create the HTTP request
16331
16331
  const request = httpHandler.request(options, (response) => {
@@ -16333,18 +16333,18 @@ performHTTPRequestNode=function(completeURL,httpMethod="GET",headers={},postRequ
16333
16333
  let responseData = "";
16334
16334
 
16335
16335
  // A chunk of data has been received.
16336
- response.on('data', (chunk) => {
16336
+ response.on("data", (chunk) => {
16337
16337
  responseData += chunk;
16338
16338
  });
16339
16339
 
16340
16340
  // The whole response has been received.
16341
- response.on('end', () => {
16341
+ response.on("end", () => {
16342
16342
  resolve(responseData);
16343
16343
  });
16344
16344
  });
16345
16345
 
16346
16346
  // Handle errors
16347
- request.on('error', (error) => {
16347
+ request.on("error", (error) => {
16348
16348
  reject(error);
16349
16349
  });
16350
16350
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.799",
3
+ "version": "0.0.800",
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)",