@appvise/domain
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -11,5 +11,2 @@ "use strict"; | ||
if (value !== undefined) { | ||
if (value < 1) { | ||
throw new exceptions_1.ArgumentOutOfRangeException('Amount to add must be positive'); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
@@ -16,0 +13,0 @@ // @ts-ignore |
import { ValueObject } from '../base-classes/value-object.base'; | ||
import { ArgumentInvalidException, ArgumentOutOfRangeException, } from '../exceptions'; | ||
import { ArgumentInvalidException } from '../exceptions'; | ||
export class Statistics extends ValueObject { | ||
@@ -8,5 +8,2 @@ update(props) { | ||
if (value !== undefined) { | ||
if (value < 1) { | ||
throw new ArgumentOutOfRangeException('Amount to add must be positive'); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
@@ -13,0 +10,0 @@ // @ts-ignore |
{ | ||
"name": "@appvise/domain", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Base package for building Domain-Driven Hexagon applications in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116751
3055