Skip to content

Commit

Permalink
fix(logstash-http): fix buffer.length options
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Sep 27, 2022
1 parent dd43f34 commit 36d7a5f
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@
]
},
"packageManager": "[email protected]"
}
}
2 changes: 1 addition & 1 deletion packages/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/insight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/logentries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
5 changes: 2 additions & 3 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@
},
"devDependencies": {
"typescript": "4.7.4"
},
"peerDependencies": {}
}
}
}
2 changes: 1 addition & 1 deletion packages/loggly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/logstash-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/logstash-http/src/LogStashHttpAppender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class LogStashHttpAppender extends BaseAppender<LogStashHttpOptions> {
// send to server
const buffer = this.#buffer;
this.#buffer = [];
if (buffer.length) {
if (!buffer.length) {
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/logstash-udp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/rabbitmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/seq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/smtp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"peerDependencies": {
"@tsed/logger": "6.3.1"
}
}
}
46 changes: 23 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3119,96 +3119,96 @@ __metadata:
version: 0.0.0-use.local
resolution: "@tsed/logger-connect@workspace:packages/connect"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-file@workspace:packages/file":
version: 0.0.0-use.local
resolution: "@tsed/logger-file@workspace:packages/file"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
streamroller: 3.0.6
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-insight@workspace:packages/insight":
version: 0.0.0-use.local
resolution: "@tsed/logger-insight@workspace:packages/insight"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
r7insight_node: 3.2.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-logentries@workspace:packages/logentries":
version: 0.0.0-use.local
resolution: "@tsed/logger-logentries@workspace:packages/logentries"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
le_node: ^1.8.0
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-loggly@workspace:packages/loggly":
version: 0.0.0-use.local
resolution: "@tsed/logger-loggly@workspace:packages/loggly"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
"@types/node-loggly-bulk": ^2.2.1
node-loggly-bulk: ^3.0.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-logstash-http@workspace:packages/logstash-http":
version: 0.0.0-use.local
resolution: "@tsed/logger-logstash-http@workspace:packages/logstash-http"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
axios: 0.27.2
axios-retry: ^3.3.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-logstash-udp@workspace:packages/logstash-udp":
version: 0.0.0-use.local
resolution: "@tsed/logger-logstash-udp@workspace:packages/logstash-udp"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-rabbitmq@workspace:packages/rabbitmq":
version: 0.0.0-use.local
resolution: "@tsed/logger-rabbitmq@workspace:packages/rabbitmq"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
"@types/amqplib": ^0.8.2
amqplib: 0.8.0
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3268,11 +3268,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "@tsed/logger-seq@workspace:packages/seq"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
seq-logging: 1.1.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

Expand All @@ -3281,27 +3281,27 @@ __metadata:
resolution: "@tsed/logger-slack@workspace:packages/slack"
dependencies:
"@slack/web-api": ^6.7.0
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/logger-smtp@workspace:packages/smtp":
version: 0.0.0-use.local
resolution: "@tsed/logger-smtp@workspace:packages/smtp"
dependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
"@types/nodemailer": 6.4.4
nodemailer: ^6.7.3
tslib: 2.3.1
peerDependencies:
"@tsed/logger": 6.3.0
"@tsed/logger": 6.3.1
languageName: unknown
linkType: soft

"@tsed/[email protected].0, @tsed/logger@workspace:packages/logger":
"@tsed/[email protected].1, @tsed/logger@workspace:packages/logger":
version: 0.0.0-use.local
resolution: "@tsed/logger@workspace:packages/logger"
dependencies:
Expand Down

0 comments on commit 36d7a5f

Please sign in to comment.