@podium/context
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -9,2 +9,10 @@ # Changelog | ||
## [3.0.1] - 2019-03-05 | ||
- Add error event listeners on all metric streams - [#10](https://github.com/podium-lib/context/pull/10) | ||
## [3.0.0] - 2019-02-20 | ||
- Initial open source release. Module is made http framework free and open source - [#6](https://github.com/podium-lib/context/pull/6) | ||
## [2.2.3] - 2018-12-18 | ||
@@ -35,3 +43,5 @@ | ||
[unreleased]: https://github.com/podium-lib/context/compare/v2.2.3...HEAD | ||
[unreleased]: https://github.com/podium-lib/context/compare/v3.0.1...HEAD | ||
[3.0.1]: https://github.com/podium-lib/context/compare/v3.0.0...v3.0.1 | ||
[3.0.0]: https://github.com/podium-lib/context/compare/v2.2.3...v3.0.0 | ||
[2.2.3]: https://github.com/podium-lib/context/compare/v2.2.2...v2.2.3 | ||
@@ -38,0 +48,0 @@ [2.2.2]: https://github.com/podium-lib/context/compare/v2.2.1...v2.2.2 |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const Metrics = require('@metrics/client'); | ||
const abslog = require('abslog'); | ||
const assert = require('assert'); | ||
@@ -23,2 +24,3 @@ const utils = require('@podium/utils'); | ||
name = undefined, | ||
logger = undefined, | ||
publicPathname = {}, | ||
@@ -37,2 +39,6 @@ mountPathname = {}, | ||
Object.defineProperty(this, 'log', { | ||
value: abslog(logger), | ||
}); | ||
Object.defineProperty(this, 'parsers', { | ||
@@ -46,2 +52,6 @@ value: new Map(), | ||
this.metrics.on('error', error => { | ||
this.log.error('Error emitted by metric stream in @podium/context module', error); | ||
}); | ||
this.register('publicPathname', new PublicPathname(publicPathname)); | ||
@@ -48,0 +58,0 @@ this.register('mountPathname', new MountPathname(mountPathname)); |
{ | ||
"name": "@podium/context", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Module to generate the context which is passed on requests from a Podium Layout server to a Podium Podlet server", | ||
@@ -36,2 +36,3 @@ "license": "MIT", | ||
"@podium/utils": "3.1.1", | ||
"abslog": "^2.4.0", | ||
"bcp47-validate": "^1.0.0", | ||
@@ -38,0 +39,0 @@ "bowser": "^2.1.0", |
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
32758
312
9
+ Addedabslog@^2.4.0
+ Addedabslog@2.4.4(transitive)
+ Addednooplog@1.0.2(transitive)