AlariCode / nestjs-rmq

A custom library for NestJS microservice. It allows you to use RabbitMQ or AMQP.
https://purpleschool.ru
MIT License
285 stars 38 forks source link

Feature/allow exchange assert options #24

Closed mikelavigne closed 3 years ago

mikelavigne commented 3 years ago

Should not have any breaking changes. I added an optional parameter that allows us to directly write asserExchange options parameters. I also added an extends from the amqplib interfaces to local interface parameters for publish options.

Also added an optional parameter to set a different exchange type. In my case, this is so that I can set it to x-delayed-message (acts like topic), which will enable support for this plugin: https://github.com/rabbitmq/rabbitmq-delayed-message-exchange .

I ran all tests without issue.

mikelavigne commented 3 years ago

Accidently closed the pr by deleting the branch on my fork. I just re-opened it.