toss / nestjs-aop

A way to gracefully apply AOP to nestjs
MIT License
220 stars 24 forks source link

feat: Allow more than one AopDecorator to be applied to one method (#7) #8

Closed WhiteKiwi closed 1 year ago

WhiteKiwi commented 1 year ago

Overview

I modified #7 to apply same aop decorators using createDecorator function. createDecorator adds metadata to the array without overwriting it. Duplicate application is possible because AopExecutor receives all recorded metadata and executes wrap.