Skip to content

Commit

Permalink
Merge branch 'release/v2.3.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmarban committed May 23, 2021
2 parents 8c4c8bd + 9211187 commit 0752bce
Show file tree
Hide file tree
Showing 6 changed files with 977 additions and 3,427 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v2.3.5] - 2021-05-23
### Changed
- [#26](https://github.com/ivanmarban/winston-telegram/issues/26) Set `handleExceptions` option `true` by default.

## [v2.3.4] - 2021-04-02
### Fixed
- [#25](https://github.com/ivanmarban/winston-telegram/issues/25) Winston Transport can only be default-imported using the 'esModuleInterop' flag.
Expand Down Expand Up @@ -128,7 +132,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [v0.1.0] - 2015-11-12
- First version.

[unreleased]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.4...develop
[unreleased]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.5...develop
[v2.3.5]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.4...v2.3.5
[v2.3.4]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.3...v2.3.4
[v2.3.3]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.2...v2.3.3
[v2.3.2]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.1...v2.3.2
Expand Down
2 changes: 1 addition & 1 deletion lib/winston-telegram.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare namespace WinstonTelegram {
template?: string
/** Format output message by own method. */
formatMessage?: (params: WinstonTelegram.FormatOptions) => string
/** Handle uncaught exceptions. (default false) */
/** Handle uncaught exceptions. (default true) */
handleExceptions?: boolean
/** Time in ms within which to batch messages together. (default = 0) (0 = disabled) */
batchingDelay?: number
Expand Down
2 changes: 1 addition & 1 deletion lib/winston-telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = class Telegram extends Transport {
this.chatId = options.chatId
this.parseMode = options.parseMode || ''
this.level = options.level || 'info'
this.handleExceptions = options.handleExceptions || false
this.handleExceptions = options.handleExceptions || true
this.unique = options.unique || false
this.silent = options.silent || false
this.disableNotification = options.disableNotification || false
Expand Down
Loading

0 comments on commit 0752bce

Please sign in to comment.