winston-telegram
Advanced tools
Comparing version 2.3.4 to 2.3.5
@@ -10,2 +10,6 @@ # Changelog | ||
## [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 | ||
@@ -132,3 +136,4 @@ ### Fixed | ||
[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 | ||
@@ -135,0 +140,0 @@ [v2.3.3]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.2...v2.3.3 |
@@ -29,3 +29,3 @@ import TransportStream = require("winston-transport") | ||
formatMessage?: (params: WinstonTelegram.FormatOptions) => string | ||
/** Handle uncaught exceptions. (default false) */ | ||
/** Handle uncaught exceptions. (default true) */ | ||
handleExceptions?: boolean | ||
@@ -32,0 +32,0 @@ /** Time in ms within which to batch messages together. (default = 0) (0 = disabled) */ |
@@ -45,3 +45,3 @@ /* | ||
this.level = options.level || 'info' | ||
this.handleExceptions = options.handleExceptions || false | ||
this.handleExceptions = options.handleExceptions || true | ||
this.unique = options.unique || false | ||
@@ -48,0 +48,0 @@ this.silent = options.silent || false |
{ | ||
"name": "winston-telegram", | ||
"description": "A Telegram transport for winston", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"author": "Ivan Marban", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -30,3 +30,3 @@ const should = require('chai').should() | ||
assert.ok(transport.level === 'info') | ||
assert.ok(transport.handleExceptions === false) | ||
assert.ok(transport.handleExceptions === true) | ||
assert.ok(transport.unique === false) | ||
@@ -33,0 +33,0 @@ assert.ok(transport.silent === false) |
35257