winston-array-transport
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -0,1 +1,12 @@ | ||
## [1.1.10](https://github.com/pustovitDmytro/winston-array-transport/compare/v1.1.9...v1.1.10) (2022-07-02) | ||
### Fix | ||
* Check if maxListeners option is a Number before setting default value (#84) (#85) ([e0a4046](https://github.com/pustovitDmytro/winston-array-transport/commit/e0a4046471d6a1d55d2482d1c9df321c89555381)), closes [#84](https://github.com/pustovitDmytro/winston-array-transport/issues/84) [#85](https://github.com/pustovitDmytro/winston-array-transport/issues/85) | ||
## [unreleased] | ||
* fix `maxListeners` option not supporting `0` as value (#84) | ||
## [1.1.9](https://github.com/pustovitDmytro/winston-array-transport/compare/v1.1.8...v1.1.9) (2022-02-28) | ||
@@ -2,0 +13,0 @@ |
@@ -22,2 +22,3 @@ "use strict"; | ||
super(options); | ||
const maxListeners = Number.isInteger(options.maxListeners) ? options.maxListeners : _defaults.defaultMaxListeners; | ||
this.name = options.name || this.constructor.name; | ||
@@ -29,3 +30,3 @@ this.eol = options.eol || _os.default.EOL; | ||
this.limit = options.limit; | ||
this.setMaxListeners(options.maxListeners || _defaults.defaultMaxListeners); | ||
this.setMaxListeners(maxListeners); | ||
} | ||
@@ -32,0 +33,0 @@ |
{ | ||
"name": "winston-array-transport", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "write logs to js Array", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47933
57