aotrautils 0.0.1030 → 0.0.1031

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 (25/06/2024-00:40:57)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (25/06/2024-01:50:46)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -459,7 +459,7 @@ window.aotestMethods.getScenariiInTest=function(test){
459
459
 
460
460
  /*private*/window.aotestMethods.doForAllTestsByType=function(allTestsByType, doOnIteration, filter=null, mustTerminate=null){
461
461
 
462
- const loopResultI=foreach(allTestsByType,(testsByFunction,functionName)=>{
462
+ const loopResultI=foreach(allTestsByType,(testsByFunction,methodName)=>{
463
463
  const loopResultJ=foreach(testsByFunction,(test,executionCoupleName)=>{ // (execution couple IS test)
464
464
 
465
465
  const scenarii=aotestMethods.getScenariiInTest(test);
@@ -556,7 +556,7 @@ window.aotestMethods.isScenarioName=function(scenarioName){
556
556
  // (a little utility function for the unitary tests framework aotest :)
557
557
  window.aotestMethods.aotratestKeyInPredefinedParameters=function(key){
558
558
  return contains(
559
- ["activateAsserts","currentRunningScenario","name","dummies","prerequisite","clean","functionName",
559
+ ["activateAsserts","currentRunningScenario","name","dummies","prerequisite","clean","methodName",
560
560
  "mainInstance","nature","isEmpty"],
561
561
  key);
562
562
  };
@@ -652,24 +652,24 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
652
652
 
653
653
  // Parameters :
654
654
  // Tested function/method name :
655
- const functionNameParam=parameters.functionName;
655
+ const methodNameParam=parameters.methodName;
656
656
 
657
657
 
658
658
  if(!functionDefinition){
659
659
  let mainInstance=parameters.mainInstance;
660
- if(!mainInstance) functionDefinition=window[functionNameParam];
660
+ if(!mainInstance) functionDefinition=window[methodNameParam];
661
661
  else{
662
662
 
663
663
  // // DBG
664
664
  // console.log("parameters:",parameters);
665
665
 
666
- functionDefinition=mainInstance[functionNameParam];
666
+ functionDefinition=mainInstance[methodNameParam];
667
667
 
668
668
  if(!functionDefinition && mainInstance[CLASSNAME_ATTR_NAME]){
669
669
  let instanceTypeName=mainInstance[CLASSNAME_ATTR_NAME];
670
670
 
671
671
  // DBG
672
- console.log("ERROR : Could not find method «"+functionNameParam+"» on instance of the following 'alleged type' : «"+instanceTypeName+"». Test registration will be skipped.");
672
+ console.log("ERROR : Could not find method «"+methodNameParam+"» on instance of the following 'alleged type' : «"+instanceTypeName+"». Test registration will be skipped.");
673
673
 
674
674
  // // DBG
675
675
  // console.log("+++instanceTypeName:",instanceTypeName);
@@ -685,16 +685,16 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
685
685
  }
686
686
  if(!functionDefinition){
687
687
  // TRACE
688
- console.log("ERROR : No function definition found for function named «"+nonull(functionNameParam, "<unknown name function>")+"», aborting test registration.");
688
+ console.log("ERROR : No function definition found for function named «"+nonull(methodNameParam, "<unknown name function>")+"», aborting test registration.");
689
689
  return null;
690
690
  }
691
- let functionName=getFunctionName(functionDefinition);
691
+ let methodName=getFunctionName(functionDefinition);
692
692
 
693
693
  // Current method context initialization :
694
694
  // Test parameters population :
695
695
  var currentTest=new Object();
696
696
 
697
- var nameParam=parameters["name"] ? parameters["name"] : (functionName ? functionName : ("noNameTest_" + getUniqueIdWithDate()));
697
+ var nameParam=parameters["name"] ? parameters["name"] : (methodName ? methodName : ("noNameTest_" + getUniqueIdWithDate()));
698
698
 
699
699
  // TRACE
700
700
  // if(DEBUG_TRACE) log("DEBUG : Registering test «"+nameParam+"»");
@@ -702,9 +702,9 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
702
702
  currentTest.name=nameParam;
703
703
 
704
704
  // (optional) Func (ie. function name) :
705
- let func=parameters["functionName"];
705
+ let func=parameters["methodName"];
706
706
  if(!!func /*(forced to boolean)*/){
707
- currentTest["functionName"]=func;
707
+ currentTest["methodName"]=func;
708
708
  }
709
709
 
710
710
  // We add to the global context :
@@ -5359,7 +5359,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5359
5359
 
5360
5360
 
5361
5361
 
5362
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/06/2024-00:40:57)»*/
5362
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/06/2024-01:50:46)»*/
5363
5363
  /*-----------------------------------------------------------------------------*/
5364
5364
  /* ## Utility global methods in a browser (htmljs) client environment.
5365
5365
  *
@@ -13574,7 +13574,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13574
13574
 
13575
13575
 
13576
13576
 
13577
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/06/2024-00:40:57)»*/
13577
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/06/2024-01:50:46)»*/
13578
13578
  /*-----------------------------------------------------------------------------*/
13579
13579
 
13580
13580
 
@@ -14813,7 +14813,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14813
14813
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14814
14814
 
14815
14815
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14816
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (25/06/2024-00:40:57)»*/
14816
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (25/06/2024-01:50:46)»*/
14817
14817
  /*-----------------------------------------------------------------------------*/
14818
14818
 
14819
14819
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1030",
3
+ "version": "0.0.1031",
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)",