@ditjenpajakri/elasticsearch-logging 2.3.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.
- package/.trunk/configs/.markdownlint.yaml +2 -0
- package/.trunk/trunk.yaml +32 -0
- package/lib.js +8 -2
- package/package.json +1 -1
- package/test +0 -1
|
@@ -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
|
@@ -98,7 +98,13 @@ function initializeBulkHandler(opts, client, splitter) {
|
|
|
98
98
|
return index.replace(
|
|
99
99
|
"%{DATE}",
|
|
100
100
|
time.substring ? time.substring(0, 10) : ""
|
|
101
|
-
)
|
|
101
|
+
)
|
|
102
|
+
.replace(
|
|
103
|
+
"%{MONTHLY}",
|
|
104
|
+
time.substring ? time.substring(0, 7) : ""
|
|
105
|
+
)
|
|
106
|
+
.replace("%{YYYY}", time.substring ? time.substring(0, 4) : "")
|
|
107
|
+
.replace("%{MM}", time.substring ? time.substring(5, 7) : "")
|
|
102
108
|
}
|
|
103
109
|
}
|
|
104
110
|
|
|
@@ -128,7 +134,7 @@ function pinoElasticSearch(opts = {}) {
|
|
|
128
134
|
["@timestamp"]: setDateTimeString(value),
|
|
129
135
|
};
|
|
130
136
|
} else {
|
|
131
|
-
value["message"] = value.msg || "-";
|
|
137
|
+
value["message"] = value.message || value.msg || "-";
|
|
132
138
|
|
|
133
139
|
if (value.msg) delete value.msg;
|
|
134
140
|
|
package/package.json
CHANGED
package/test
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"a": "1234"}
|