fastify-feature-flags
Advanced tools
Comparing version 1.2.4 to 1.2.7
@@ -5,2 +5,19 @@ # Change Log | ||
## [1.2.7](https://gitlab.com/m03geek/fastify-feature-flags/compare/v1.2.6...v1.2.7) (2019-04-30) | ||
## [1.2.6](https://gitlab.com/m03geek/fastify-feature-flags/compare/v1.2.5...v1.2.6) (2019-04-30) | ||
## [1.2.5](https://gitlab.com/m03geek/fastify-feature-flags/compare/v1.2.4...v1.2.5) (2019-04-30) | ||
### Bug Fixes | ||
* **provider:** unleash ready message fix ([2ea28fc](https://gitlab.com/m03geek/fastify-feature-flags/commit/2ea28fc)) | ||
## [1.2.4](https://gitlab.com/m03geek/fastify-feature-flags/compare/v1.2.3...v1.2.4) (2019-04-30) | ||
@@ -7,0 +24,0 @@ |
@@ -11,5 +11,7 @@ "use strict"; | ||
this.instance = unleash_client_1.initialize(this.options); | ||
this.instance.on('error', this.fastify.log.error); | ||
this.instance.on('warn', this.fastify.log.error); | ||
this.instance.on('ready', this.fastify.log.info); | ||
this.instance.on('error', this.fastify.log.error.bind(this.fastify)); | ||
this.instance.on('warn', this.fastify.log.warn.bind(this.fastify)); | ||
this.instance.on('ready', () => { | ||
this.fastify.log.info('[feature-flags]: Unleash provider ready'); | ||
}); | ||
this.fastify.addHook('onClose', (_instance, done) => { | ||
@@ -16,0 +18,0 @@ this.instance.destroy(); |
{ | ||
"name": "fastify-feature-flags", | ||
"version": "1.2.4", | ||
"version": "1.2.7", | ||
"description": "Fastify feature flags plugin", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
21078
260