archstone 1.4.2 → 1.4.3
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/dist/core/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AsyncEither, DomainEvent, DomainEvents, Either, EventHandler1 as EventHandler, Left, Maybe, Optional, Right, UniqueEntityId, ValueObject, WatchedList, attempt, from, just, left, maybe, nothing, right } from "../shared/chunk-
|
|
1
|
+
import { AsyncEither, DomainEvent, DomainEvents, Either, EventHandler1 as EventHandler, Left, Maybe, Optional, Right, UniqueEntityId, ValueObject, WatchedList, attempt, from, just, left, maybe, nothing, right } from "../shared/chunk-92bcnec4.js";
|
|
2
2
|
export { right, nothing, maybe, left, just, from, attempt, WatchedList, ValueObject, UniqueEntityId, Right, Optional, Maybe, Left, EventHandler, Either, DomainEvents, DomainEvent, AsyncEither };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Creatable, Deletable, Findable, Repository, Saveable, UseCase, UseCaseError } from "../../shared/chunk-
|
|
1
|
+
import { Creatable, Deletable, Findable, Repository, Saveable, UseCase, UseCaseError } from "../../shared/chunk-92bcnec4.js";
|
|
2
2
|
export { UseCaseError, UseCase, Saveable, Repository, Findable, Deletable, Creatable };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AggregateRoot, DomainEvent, DomainEvents, Entity, EventHandler } from "../../shared/chunk-
|
|
1
|
+
import { AggregateRoot, DomainEvent, DomainEvents, Entity, EventHandler } from "../../shared/chunk-92bcnec4.js";
|
|
2
2
|
export { EventHandler, Entity, DomainEvents, DomainEvent, AggregateRoot };
|
package/dist/domain/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AggregateRoot, Creatable, Deletable, DomainEvent, DomainEvents, Entity, EventHandler, Findable, Repository, Saveable, UseCase, UseCaseError } from "../shared/chunk-
|
|
1
|
+
import { AggregateRoot, Creatable, Deletable, DomainEvent, DomainEvents, Entity, EventHandler, Findable, Repository, Saveable, UseCase, UseCaseError } from "../shared/chunk-92bcnec4.js";
|
|
2
2
|
export { UseCaseError, UseCase, Saveable, Repository, Findable, EventHandler, Entity, DomainEvents, DomainEvent, Deletable, Creatable, AggregateRoot };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AggregateRoot, AsyncEither, Creatable, Deletable, DomainEvent, DomainEvents, Either, Entity, Findable, Left, Maybe, Optional, Repository, Right, Saveable, UniqueEntityId, UseCase, UseCaseError, ValueObject, WatchedList, attempt, from, just, left, maybe, nothing, right } from "./shared/chunk-
|
|
1
|
+
import { AggregateRoot, AsyncEither, Creatable, Deletable, DomainEvent, DomainEvents, Either, Entity, Findable, Left, Maybe, Optional, Repository, Right, Saveable, UniqueEntityId, UseCase, UseCaseError, ValueObject, WatchedList, attempt, from, just, left, maybe, nothing, right } from "./shared/chunk-92bcnec4.js";
|
|
2
2
|
export { right, nothing, maybe, left, just, from, attempt, WatchedList, ValueObject, UseCaseError, UseCase, UniqueEntityId, Saveable, Right, Repository, Optional, Maybe, Left, Findable, Entity, Either, DomainEvents, DomainEvent, Deletable, Creatable, AsyncEither, AggregateRoot };
|
|
@@ -549,9 +549,13 @@ interface UseCaseError {
|
|
|
549
549
|
}
|
|
550
550
|
/**
|
|
551
551
|
* Represents the expected output shape of any use case.
|
|
552
|
-
*
|
|
552
|
+
*
|
|
553
|
+
* Three valid shapes:
|
|
554
|
+
* - `Either<Error, T>`: returns a concrete value or fails with an error
|
|
555
|
+
* - `Maybe<T>`: returns an optional value when the error path is irrelevant
|
|
556
|
+
* - `Nothing`: void result; covered since `Nothing extends Maybe<never>`
|
|
553
557
|
*/
|
|
554
|
-
type UseCaseOutput = Either<UseCaseError | never, unknown |
|
|
558
|
+
type UseCaseOutput = Either<UseCaseError | never, unknown> | Maybe<unknown>;
|
|
555
559
|
/**
|
|
556
560
|
* Base contract for all application use cases.
|
|
557
561
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archstone",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "João Henrique Benatti Coimbra",
|
|
6
6
|
"url": "https://github.com/joao-coimbra"
|
|
@@ -91,6 +91,6 @@
|
|
|
91
91
|
"type": "module",
|
|
92
92
|
"types": "./dist/index.d.ts",
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"failcraft": "^1.3.
|
|
94
|
+
"failcraft": "^1.3.2"
|
|
95
95
|
}
|
|
96
96
|
}
|