Skip to content

Commit 539c029

Browse files
Merge pull request #204 from 4lessandrodev/fix/export-fail-ok
Fix/export fail ok
2 parents 36f2f8a + 6c9428e commit 539c029

6 files changed

Lines changed: 31 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
66

77
---
88

9+
### 3.3.3 - 2022-11-17
10+
11+
### Changed
12+
13+
- Ok and Fail: ensure export from lib
14+
15+
---
16+
917
### 3.3.2 - 2022-11-07
1018

1119
### Changed

lib/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ export * from './hex-color.value-object';
2626
export * from './color-generator.util';
2727
export * from './color-converter.util';
2828
export * from './order-status.value-object';
29+
export * from 'rich-domain/utils';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "types-ddd",
3-
"version": "3.3.2",
3+
"version": "3.3.3",
44
"description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -73,7 +73,7 @@
7373
"rimraf": "^3.0.2",
7474
"ts-jest": "^27.1.4",
7575
"ts-node": "^10.7.0",
76-
"typescript": "^4.8.4"
76+
"typescript": "^4.9.3"
7777
},
7878
"files": [
7979
"dist/*",

tests/utils/fail.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Fail } from '../../lib';
2+
3+
describe('fail', () => {
4+
it('should fail to be defined', () => {
5+
const result = Fail();
6+
expect(result.isFail()).toBeTruthy();
7+
});
8+
});

tests/utils/ok.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Ok } from '../../lib';
2+
3+
describe('Ok', () => {
4+
it('should Ok to be defined', () => {
5+
const result = Ok();
6+
expect(result.isOk()).toBeTruthy();
7+
});
8+
});

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3864,10 +3864,10 @@ typescript@^3.9.10, typescript@^3.9.5, typescript@^3.9.7:
38643864
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"
38653865
integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==
38663866

3867-
typescript@^4.8.4:
3868-
version "4.8.4"
3869-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
3870-
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
3867+
typescript@^4.9.3:
3868+
version "4.9.3"
3869+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db"
3870+
integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==
38713871

38723872
uniq@^1.0.1:
38733873
version "1.0.1"

0 commit comments

Comments
 (0)