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

fh-logger

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-logger - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

3

lib/fh_logger.js

@@ -31,3 +31,4 @@ /*

function parseConfig(loggerConfig) {
return typeof loggerConfig === 'string' ? JSON.parse(loggerConfig) : loggerConfig;
var config = typeof loggerConfig !== 'string' ? JSON.stringify(loggerConfig) : loggerConfig;
return JSON.parse(config);
}

@@ -34,0 +35,0 @@

{
"name": "fh-logger",
"description": "Enables a simple way of configuring and creating loggers, configured with request serializers, including clustering information.",
"version": "0.3.0",
"version": "0.4.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -40,2 +40,11 @@ /*

describe('should make copy of provided config', function() {
it('config should not be modified when passed to createLogger function', function() {
var config = {name: 'simple'};
expect(Object.keys(config).length).to.equal(1);
var logger = fh_logger.createLogger(config);
expect(Object.keys(config).length).to.equal(1);
});
});
describe('with Bunyan defaults', function() {

@@ -42,0 +51,0 @@ var logger;

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