@hazeljs/kafka 0.7.9 → 0.8.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 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -53,9 +53,7 @@ export class OrderService {
53
53
  constructor(private producer: KafkaProducerService) {}
54
54
 
55
55
  async createOrder(data: CreateOrderDto) {
56
- await this.producer.send('orders', [
57
- { key: data.id, value: JSON.stringify(data) },
58
- ]);
56
+ await this.producer.send('orders', [{ key: data.id, value: JSON.stringify(data) }]);
59
57
  return data;
60
58
  }
61
59
  }
@@ -136,7 +134,7 @@ KafkaModule.forRootAsync({
136
134
  brokers: (config.get('KAFKA_BROKERS') || 'localhost:9092').toString().split(','),
137
135
  }),
138
136
  inject: [ConfigService],
139
- })
137
+ });
140
138
  ```
141
139
 
142
140
  ## API Reference
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazeljs/kafka",
3
- "version": "0.7.9",
3
+ "version": "0.8.1",
4
4
  "description": "Kafka module for HazelJS framework - produce, consume, and stream processing",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,5 +50,5 @@
50
50
  "peerDependencies": {
51
51
  "@hazeljs/core": ">=0.2.0-beta.0"
52
52
  },
53
- "gitHead": "28c21c509aeca3bf2d0878fbee737d906b654c67"
53
+ "gitHead": "8b7685d1250c4622f25d83992f58e13a59bb3dba"
54
54
  }