@reldens/utils 0.10.0 → 0.11.0

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.
package/README.md CHANGED
@@ -6,9 +6,9 @@
6
6
 
7
7
  - Interaction area calculation helper.
8
8
  - Shortcuts.
9
- - Logger
10
- - Error Manager
11
- - Events Manager
9
+ - Logger.
10
+ - Error Manager.
11
+ - Events Manager.
12
12
 
13
13
  Need something specific?
14
14
 
@@ -18,7 +18,7 @@ Need something specific?
18
18
 
19
19
  ## Documentation
20
20
 
21
- [https://www.reldens.com/documentation/skills](https://www.reldens.com/documentation/skills)
21
+ [https://www.reldens.com/documentation/utils/](https://www.reldens.com/documentation/utils/)
22
22
 
23
23
 
24
24
  ---
@@ -2,7 +2,7 @@
2
2
  *
3
3
  * Reldens - InteractionArea
4
4
  *
5
- * This class is used to validate the area for an specific object or action, for example if player A targets player B
5
+ * This class is used to validate the area for a specific object or action, for example if player A target player B
6
6
  * by clicking on it and then run an action (by pressing space bar or using the action button), the action will
7
7
  * be only valid and executed if player A is inside the interactive area of player B.
8
8
  *
package/lib/logger.js CHANGED
@@ -10,14 +10,14 @@ class Logger
10
10
  {
11
11
  logLevels = {
12
12
  none: 0,
13
- debug: 8, // debug-level messages
14
- info: 7, // informational messages
15
- notice: 6, // normal but significant condition
16
- warning: 5, // warning conditions
17
- error: 4, // error conditions
18
- critical: 3, // critical conditions
19
- alert: 2, // action must be taken immediately
20
13
  emergency: 1, // system is unusable
14
+ alert: 2, // action must be taken immediately
15
+ critical: 3, // critical conditions
16
+ error: 4, // error conditions
17
+ warning: 5, // warning conditions
18
+ notice: 6, // normal but significant condition
19
+ info: 7, // informational messages
20
+ debug: 8 // debug-level messages
21
21
  };
22
22
 
23
23
  constructor()
package/lib/shortcuts.js CHANGED
@@ -33,7 +33,7 @@ class Shortcuts
33
33
  return Array.isArray(obj);
34
34
  }
35
35
 
36
- convertArrayToObjectByKeys(dataArray, keyProperty)
36
+ convertObjectsArrayToObjectByKeys(dataArray, keyProperty)
37
37
  {
38
38
  let objectByKeys = {};
39
39
  for(let arrayItem of dataArray){
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/utils",
3
3
  "scope": "@reldens",
4
- "version": "0.10.0",
4
+ "version": "0.11.0",
5
5
  "description": "Reldens - Utils",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",