@aleodoni-fullstack/core-libs
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -124,2 +124,6 @@ import { EventEmitter } from 'events'; | ||
declare class UniqueEntityCUID extends Identifier<string | number> { | ||
constructor(id?: string | number); | ||
} | ||
interface ValueObjectProps { | ||
@@ -184,2 +188,2 @@ [index: string]: any; | ||
export { AggregateRoot, AppError, Changes, DomainEmitter, DomainEvents, DomainService, Either, Entity, Guard, GuardArgumentCollection, IDomainEvent, IGuardArgument, IGuardResult, IHandle, Identifier, Left, Mapper, Result, Right, StaticGenerationService, UniqueEntityID, UseCase, UseCaseError, ValueObject, WatchedList, WithChanges, delay, left, right }; | ||
export { AggregateRoot, AppError, Changes, DomainEmitter, DomainEvents, DomainService, Either, Entity, Guard, GuardArgumentCollection, IDomainEvent, IGuardArgument, IGuardResult, IHandle, Identifier, Left, Mapper, Result, Right, StaticGenerationService, UniqueEntityCUID, UniqueEntityID, UseCase, UseCaseError, ValueObject, WatchedList, WithChanges, delay, left, right }; |
@@ -33,2 +33,3 @@ var __defProp = Object.defineProperty; | ||
Right: () => Right, | ||
UniqueEntityCUID: () => UniqueEntityCUID, | ||
UniqueEntityID: () => UniqueEntityID, | ||
@@ -293,3 +294,3 @@ UseCaseError: () => UseCaseError, | ||
// src/domain/UniqueEntityID.ts | ||
var import_uuid = require("uuid"); | ||
var import_cuid2 = require("@paralleldrive/cuid2"); | ||
@@ -322,3 +323,3 @@ // src/domain/Identifier.ts | ||
constructor(id) { | ||
super(id || (0, import_uuid.v4)()); | ||
super(id || (0, import_cuid2.createId)()); | ||
} | ||
@@ -440,2 +441,10 @@ }; | ||
// src/domain/UniqueEntityCUID.ts | ||
var import_cuid22 = require("@paralleldrive/cuid2"); | ||
var UniqueEntityCUID = class extends Identifier { | ||
constructor(id) { | ||
super(id || (0, import_cuid22.createId)()); | ||
} | ||
}; | ||
// src/domain/ValueObject.ts | ||
@@ -562,2 +571,3 @@ var ValueObject = class { | ||
Right, | ||
UniqueEntityCUID, | ||
UniqueEntityID, | ||
@@ -564,0 +574,0 @@ UseCaseError, |
{ | ||
"name": "@aleodoni-fullstack/core-libs", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1206208
17150