@nestjstools/messaging 2.17.0 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -110,7 +110,7 @@ export class SendMessageHandler implements IMessageHandler<SendMessage> {
110
110
  // use the `@DenormalizeMessage()` decorator on the parameter:
111
111
  // async handle(@DenormalizeMessage() message: SendMessage): Promise<MessageResponse | void> {
112
112
 
113
- async handle(message: SendMessage): Promise<MessageResponse | void> {
113
+ async handle(message: SendMessage): Promise<object | void> {
114
114
  console.log(message.content);
115
115
  // Example handling logic
116
116
  }
@@ -144,7 +144,7 @@ export class AppController {
144
144
  }
145
145
  ```
146
146
 
147
- ### Explanation:
147
+ ### Flow:
148
148
 
149
149
  1. **Flexible Dispatching**:
150
150
  - You can call the `dispatch` method from any layer (e.g., controller, service, or scheduled job). This example uses an HTTP `GET` endpoint for demonstration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjstools/messaging",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.",
5
5
  "author": "Sebastian Iwanczyszyn",
6
6
  "license": "MIT",