-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for scope transformers (#99)
* feat: add support for scope transformers * style: fix linting issue in test * docs: update README.md to provide information on transformers * feat: add RavenTransformer decorator
- Loading branch information
1 parent
b7d34a0
commit 5808e76
Showing
7 changed files
with
171 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './raven.decorators'; | ||
export * from './raven.interceptor'; | ||
export * from './raven.interfaces'; | ||
export * from './raven.module'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { IRavenScopeTransformerFunction } from './raven.interfaces'; | ||
import { SetMetadata } from '@nestjs/common'; | ||
|
||
export const RAVEN_LOCAL_TRANSFORMERS_METADATA = 'raven-local-transformers'; | ||
|
||
export const RavenTransformer = ( | ||
...transformers: IRavenScopeTransformerFunction[] | ||
) => SetMetadata(RAVEN_LOCAL_TRANSFORMERS_METADATA, transformers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters