Skip to content

Commit f5c50fd

Browse files
feature(@nestjs/core) dynamic modules & global scope feature
1 parent 7e9cca0 commit f5c50fd

73 files changed

Lines changed: 458 additions & 219 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions

src/common/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const metadata = {
66
};
77

88
export const SHARED_MODULE_METADATA = '__sharedModule__';
9+
export const GLOBAL_MODULE_METADATA = '__globalModule__';
910
export const PATH_METADATA = 'path';
1011
export const PARAMTYPES_METADATA = 'design:paramtypes';
1112
export const SELF_DECLARED_DEPS_METADATA = 'self:paramtypes';
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/common/utils/decorators/controller.decorator.ts renamed to src/common/decorators/core/controller.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'reflect-metadata';
22
import { ControllerMetadata } from '../../interfaces/controllers/controller-metadata.interface';
3-
import { isUndefined, isObject } from '../shared.utils';
3+
import { isUndefined, isObject } from '../../utils/shared.utils';
44
import { PATH_METADATA } from '../../constants';
55

66
/**
File renamed without changes.

src/common/utils/decorators/exception-filters.decorator.ts renamed to src/common/decorators/core/exception-filters.decorator.ts

File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export * from './controller.decorator';
2+
export * from './component.decorator';
3+
export * from './dependencies.decorator';
4+
export * from './inject.decorator';
5+
export * from './catch.decorator';
6+
export * from './exception-filters.decorator';
7+
export * from './use-pipes.decorator';
8+
export * from './use-guards.decorator';
9+
export * from './reflect-metadata.decorator';
10+
export * from './use-interceptors.decorator';
11+
export * from './bind.decorator';

src/common/utils/decorators/inject.decorator.ts renamed to src/common/decorators/core/inject.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'reflect-metadata';
22
import { SELF_DECLARED_DEPS_METADATA } from '../../constants';
3-
import { isFunction } from '../shared.utils';
3+
import { isFunction } from '../../utils/shared.utils';
44

55
/**
66
* Injects component, which has to be available in the current injector (module) scope.

0 commit comments

Comments
 (0)