tshex-cli 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tshex-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "author": "https://github.com/virtualitems/",
5
5
  "description": "Typescript Hexagonal Architecture CLI",
6
6
  "type": "module",
@@ -21,7 +21,7 @@ export default abstract class Event
21
21
 
22
22
  public readonly timestamp: number;
23
23
 
24
- public readonly details?: Record<string, unknown>;
24
+ public readonly details: Record<string, unknown>;
25
25
 
26
26
  // protected ATTRIBUTES
27
27
 
@@ -38,7 +38,7 @@ export default abstract class Event
38
38
  public constructor(timestamp: number, details?: Record<string, unknown>)
39
39
  {
40
40
  this.timestamp = timestamp;
41
- this.details = details;
41
+ this.details = details ?? {};
42
42
  }
43
43
 
44
44
  // public METHODS
@@ -1,13 +1,11 @@
1
1
  // Libraries
2
2
 
3
- import React from 'react';
4
-
5
3
  // Components
6
4
 
7
- // Features
8
-
9
5
  // Hooks
10
6
 
7
+ // Features
8
+
11
9
  // Languages
12
10
 
13
11
  // Styles
@@ -22,7 +20,7 @@ type Props = React.HTMLProps<HTMLElement> & {};
22
20
  /**
23
21
  * @description
24
22
  */
25
- export default function __COMPONENT__(props: Props): React.ReactElement
23
+ export default function (props: Props): React.ReactElement
26
24
  {
27
25
 
28
26
  // MODEL -----------------------------
@@ -36,9 +34,9 @@ export default function __COMPONENT__(props: Props): React.ReactElement
36
34
  // VIEW ------------------------------
37
35
 
38
36
  return (
39
- <React.Fragment>
37
+ <>
40
38
  {props.children}
41
- </React.Fragment>
39
+ </>
42
40
  );
43
41
 
44
42
  } //:: ReactElement