@restorecommerce/kafka-client 0.2.26 → 0.2.27

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.27](https://github.com/restorecommerce/kafka-client/compare/@restorecommerce/kafka-client@0.2.26...@restorecommerce/kafka-client@0.2.27) (2021-12-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **acs-client:** logger config ([c1096ba](https://github.com/restorecommerce/kafka-client/commit/c1096ba1c9aed509ce92bec8e269bb5bc45ed188))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.2.26](https://github.com/restorecommerce/kafka-client/compare/@restorecommerce/kafka-client@0.2.25...@restorecommerce/kafka-client@0.2.26) (2021-12-20)
7
18
 
8
19
 
@@ -46,10 +46,12 @@ class Events {
46
46
  }
47
47
  this.config = config;
48
48
  const loggerCfg = this.config.logger;
49
- loggerCfg.esTransformer = (msg) => {
50
- msg.fields = JSON.stringify(msg.fields);
51
- return msg;
52
- };
49
+ if (loggerCfg) {
50
+ loggerCfg.esTransformer = (msg) => {
51
+ msg.fields = JSON.stringify(msg.fields);
52
+ return msg;
53
+ };
54
+ }
53
55
  // logger
54
56
  if (_.isNil(logger)) {
55
57
  if (_.isNil(this.config.logger)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/kafka-client",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "Opinionated Kafka Client for Microservices",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Invend GmbH",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">= 12.0.0"
64
64
  },
65
- "gitHead": "a41618a85d013dd0ac1df0647f593719db690ac9"
65
+ "gitHead": "d1d836249dc96cd7cf26fd7a8db471068f6ec8f9"
66
66
  }