@ditjenpajakri/elasticsearch-logging 2.4.0 → 2.5.0

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.
@@ -0,0 +1,2 @@
1
+ # Prettier friendly markdownlint config (all formatting rules disabled)
2
+ extends: markdownlint/style/prettier
@@ -0,0 +1,32 @@
1
+ # This file controls the behavior of Trunk: https://docs.trunk.io/cli
2
+ # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
3
+ version: 0.1
4
+ cli:
5
+ version: 1.25.0
6
+ # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
7
+ plugins:
8
+ sources:
9
+ - id: trunk
10
+ ref: v1.7.4
11
+ uri: https://github.com/trunk-io/plugins
12
+ # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
13
+ runtimes:
14
+ enabled:
15
+ - node@22.16.0
16
+ - python@3.10.8
17
+ # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
18
+ lint:
19
+ enabled:
20
+ - checkov@3.2.495
21
+ - git-diff-check
22
+ - markdownlint@0.47.0
23
+ - osv-scanner@2.3.1
24
+ - prettier@3.7.4
25
+ - trufflehog@3.92.4
26
+ actions:
27
+ disabled:
28
+ - trunk-announce
29
+ - trunk-check-pre-push
30
+ - trunk-fmt-pre-commit
31
+ enabled:
32
+ - trunk-upgrade-available
package/lib.js CHANGED
@@ -134,7 +134,7 @@ function pinoElasticSearch(opts = {}) {
134
134
  ["@timestamp"]: setDateTimeString(value),
135
135
  };
136
136
  } else {
137
- value["message"] = value.msg || "-";
137
+ value["message"] = value.message || value.msg || "-";
138
138
 
139
139
  if (value.msg) delete value.msg;
140
140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditjenpajakri/elasticsearch-logging",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Elasticsearch ",
5
5
  "main": "lib.js",
6
6
  "bin": {