tshex-cli 1.0.5 → 1.0.6

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.6",
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