Comparing version 0.1.0 to 0.1.1
@@ -8,2 +8,7 @@ # GoLog Changelog | ||
## [v0.1.1] - 2019-09-26 | ||
### Fixed | ||
- `error` event to not throw an exception when not handled | ||
## [v0.1.0] - 2019-09-25 | ||
@@ -13,1 +18,2 @@ - First officially published version. | ||
[v0.1.0]: https://gitlab.com/GCSBOSS/golog/-/tags/v0.1.0 | ||
[v0.1.1]: https://gitlab.com/GCSBOSS/golog/-/tags/v0.1.1 |
@@ -80,2 +80,3 @@ const { EventEmitter } = require('events'); | ||
super(); | ||
this.on('error', Function.prototype); | ||
this.active = true; | ||
@@ -82,0 +83,0 @@ this.streams = {}; |
{ | ||
"name": "golog", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A light-weight heavily inspired logging library", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -193,1 +193,14 @@ const MemoryStream = require('memorystream'); | ||
}); | ||
describe('Regression', function(){ | ||
beforeEach(function(){ | ||
log = new Logger(); | ||
log.addStream('mem', stream); | ||
}); | ||
it('Should not throw exception when error event not handled', function(){ | ||
log.error('bar'); | ||
}); | ||
}); |
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
17849
253