mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 19:38:13 +03:00
feat: patch winston loki so it works for us
This commit is contained in:
+2
-1
@@ -67,7 +67,8 @@
|
||||
"patchedDependencies": {
|
||||
"@types/mongodb@3.6.20": "patches/@types__mongodb@3.6.20.patch",
|
||||
"browserslist@4.21.4": "patches/browserslist@4.21.4.patch",
|
||||
"monk@7.3.4": "patches/monk@7.3.4.patch"
|
||||
"monk@7.3.4": "patches/monk@7.3.4.patch",
|
||||
"winston-loki@6.1.0": "patches/winston-loki@6.1.0.patch"
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
diff --git a/index.js b/index.js
|
||||
index e1c76051045ea9b69b320283a2f27cd2b9ea5cb4..65d183c93ba15242826ccfaf3528e38ebe701f03 100644
|
||||
--- a/index.js
|
||||
+++ b/index.js
|
||||
@@ -65,6 +65,7 @@ class LokiTransport extends Transport {
|
||||
}
|
||||
|
||||
lokiLabels = Object.assign(lokiLabels, labels)
|
||||
+ lokiLabels = Object.assign(lokiLabels, rest)
|
||||
|
||||
// follow the format provided
|
||||
const line = this.useCustomFormat
|
||||
diff --git a/package-lock.json b/package-lock.json
|
||||
deleted file mode 100644
|
||||
index e08faec5f46b8d3802f1a8bf7191fe41d695e047..0000000000000000000000000000000000000000
|
||||
Generated
+6
-2
@@ -23,6 +23,9 @@ patchedDependencies:
|
||||
monk@7.3.4:
|
||||
hash: vvho35r54xdabf3z6x2eo4lz7q
|
||||
path: patches/monk@7.3.4.patch
|
||||
winston-loki@6.1.0:
|
||||
hash: kd25bmwaje5zsxz4liivmh672y
|
||||
path: patches/winston-loki@6.1.0.patch
|
||||
|
||||
importers:
|
||||
|
||||
@@ -666,7 +669,7 @@ importers:
|
||||
version: 3.5.1
|
||||
winston-loki:
|
||||
specifier: ^6.1.0
|
||||
version: 6.1.0
|
||||
version: 6.1.0(patch_hash=kd25bmwaje5zsxz4liivmh672y)
|
||||
winston-transport:
|
||||
specifier: 4.5.0
|
||||
version: 4.5.0
|
||||
@@ -10939,7 +10942,7 @@ packages:
|
||||
hasBin: true
|
||||
dev: false
|
||||
|
||||
/winston-loki@6.1.0:
|
||||
/winston-loki@6.1.0(patch_hash=kd25bmwaje5zsxz4liivmh672y):
|
||||
resolution: {integrity: sha512-XX0Wni8eFEktUeO/YmexOw8OXLjmHjW3yuF8dr9/O+zQsG+6/b22g/ZKh2c8rJjOOQIK0h5BdVNPOtivGdV/2Q==}
|
||||
dependencies:
|
||||
async-exit-hook: 2.0.1
|
||||
@@ -10950,6 +10953,7 @@ packages:
|
||||
optionalDependencies:
|
||||
snappy: 7.2.2
|
||||
dev: false
|
||||
patched: true
|
||||
|
||||
/winston-transport@4.5.0:
|
||||
resolution: {integrity: sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q==}
|
||||
|
||||
Reference in New Issue
Block a user