Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

golog

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

golog - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

CHANGELOG.md

@@ -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

1

lib/main.js

@@ -80,2 +80,3 @@ const { EventEmitter } = require('events');

super();
this.on('error', Function.prototype);
this.active = true;

@@ -82,0 +83,0 @@ this.streams = {};

2

package.json
{
"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');
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc