Skip to content

Commit 3749b09

Browse files
committed
style(ddd-framework): automatic import sorts | linting | some faker deprecations replaced
1 parent 896f06d commit 3749b09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1015
-964
lines changed

lib/core/src/__experimental__/decorators/Decorator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'reflect-metadata';
2+
23
import { ObjectLiteral } from '../../types';
34

45
interface MetadataOptions {

lib/core/src/__experimental__/decorators/EntityId.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import assert from 'assert';
2+
23
import { ObjectLiteral } from '../../types';
34
import { ENTITY_ID_METADATA, ENTITY_ID_WATERMARK } from './constants';
45
import Decorator from './Decorator';

lib/core/src/__experimental__/decorators/aggregate/member/AggregateMember.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import assert from 'assert';
2+
23
import { ObjectLiteral } from '../../../../types';
34
import {
45
AGGREGATE_MEMBER_METADATA,
@@ -8,11 +9,11 @@ import Decorator from '../../Decorator';
89
import { isEntity } from '../../helpers/isEntity';
910
import { isEntityCollection } from '../../helpers/isEntityCollection';
1011
import { isList } from '../../helpers/isList';
12+
import { getAggregateRootRefOf, hasAggregateRootRef } from '../root';
13+
import { setupAggregateRootReferences } from './';
1114
import { AggregateMemberMetadata } from './AggregateMemberMetadata';
1215
import { getAggregateMemberMetadataOf } from './getAggregateMemberMetadataOf';
1316
import { hasAggregateMembers } from './hasAggregateMembers';
14-
import { setupAggregateRootReferences } from '.';
15-
import { getAggregateRootRefOf, hasAggregateRootRef } from '../root';
1617

1718
export function AggregateMember(): PropertyDecorator {
1819
/**

lib/core/src/__experimental__/decorators/aggregate/member/getAggregateMemberMetadataOf.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import assert from 'assert';
2+
23
import { ObjectLiteral } from '../../../../types';
34
import { AGGREGATE_MEMBER_METADATA } from '../../constants';
45
import Decorator from '../../Decorator';

lib/core/src/__experimental__/decorators/aggregate/root/AggregateRoot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import assert from 'assert';
2+
23
import { ClassOf } from '../../../../types';
34
import { AGGREGATE_ROOT_WATERMARK } from '../../constants';
4-
import Entity from '../../Entity';
55
import Decorator from '../../Decorator';
6+
import Entity from '../../Entity';
67
import { AggregateRootRef } from './AggregateRootRef';
78
import { setupAggregateRootReferences } from './setupAggregateRootReferences';
89

lib/core/src/__experimental__/decorators/aggregate/root/getAggregateRootIdOf.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import assert from 'assert';
2+
23
import { ObjectLiteral } from '../../../../types';
34
import { AGGREGATE_ROOT_REF } from '../../constants';
4-
import { getEntityIdOf } from '../../EntityId';
55
import Decorator from '../../Decorator';
6+
import { getEntityIdOf } from '../../EntityId';
67
import { AggregateRootRef } from './AggregateRootRef';
78
import { isAggregateRoot } from './isAggregateRoot';
89

lib/core/src/__experimental__/decorators/aggregate/root/getAggregateRootRefOf.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import assert from 'assert';
2+
23
import { ObjectLiteral } from '../../../../types';
34
import { AGGREGATE_ROOT_REF } from '../../constants';
45
import Decorator from '../../Decorator';
6+
import Entity from '../../Entity';
57
import { AggregateRootRef } from './AggregateRootRef';
68
import { isAggregateRoot } from './isAggregateRoot';
7-
import Entity from '../../Entity';
89

910
export function getAggregateRootRefOf(
1011
anObject: ObjectLiteral

lib/core/src/__experimental__/decorators/aggregate/root/setupAggregateRootReferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import Decorator from '../../Decorator';
44
import { isEntity } from '../../helpers/isEntity';
55
import { isEntityCollection } from '../../helpers/isEntityCollection';
66
import { isList } from '../../helpers/isList';
7-
import { AggregateRootRef } from './AggregateRootRef';
87
import { getAggregateMemberMetadataOf } from '../member/getAggregateMemberMetadataOf';
98
import { hasAggregateMembers } from '../member/hasAggregateMembers';
9+
import { AggregateRootRef } from './AggregateRootRef';
1010

1111
/**
1212
* Recursively point the Aggregate Members to their Aggregate Root.

lib/core/src/__experimental__/decorators/domain_events/getDomainEventMetadata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import assert from 'assert';
2+
23
import { Newable } from '../../../types';
34
import { DOMAIN_EVENT_METADATA } from '../constants';
45
import Decorator from '../Decorator';

lib/core/src/domain_events/DomainEvent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import assert from 'assert';
2+
23
import { Guard } from '../helpers';
34
import { MutableObject, ObjectLiteral } from '../types';
4-
import { Uuid, DateValue } from '../value_objects';
5+
import { DateValue, Uuid } from '../value_objects';
56
import DomainEventMap from './DomainEventMap';
67

78
/**

0 commit comments

Comments
 (0)