tshex-cli 1.0.31 → 1.0.32

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.31",
3
+ "version": "1.0.32",
4
4
  "author": "https://github.com/virtualitems/",
5
5
  "license": "MIT",
6
6
  "description": "Typescript Hexagonal Architecture CLI",
@@ -7,7 +7,7 @@ export abstract class Entity {
7
7
 
8
8
  public abstract equals(other: Entity): boolean
9
9
 
10
- public toJSON(): Record<string, unknown> {
10
+ public toJSON(): this {
11
11
  return this
12
12
  }
13
13
 
@@ -99,7 +99,7 @@ export class Email extends ValueObject<string> {
99
99
  if (super.isValid(value) === false) return false
100
100
 
101
101
  return (
102
- 'string' === typeof value && VALID_EMAIL_REGEX.test(value as string)
102
+ 'string' === typeof value && VALID_EMAIL_REGEX.test(value)
103
103
  )
104
104
  }
105
105