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

loggerism

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loggerism - npm Package Compare versions

Comparing version 2.3.11 to 2.4.0

lib/logger.spec.d.ts

2

lib/logger.d.ts

@@ -7,2 +7,3 @@ export type LogMethod<T extends object = object> = (msg: string | Error, meta?: T | Error) => ILogger<T>;

debug: LogMethod<T>;
isEnabled: (level: LogLevel) => boolean;
}

@@ -14,3 +15,4 @@ export interface ILoggerOptions {

}
export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
export declare const makeLogger: <T extends object = object>(customOptions?: ILoggerOptions) => ILogger<T>;
export declare const wipeSensitiveData: (meta: any) => any;

@@ -61,2 +61,5 @@ 'use strict'

return wrappedLogger.log('debug', msg, meta)
},
isEnabled: function(level) {
return logger.isLevelEnabled(level)
}

@@ -63,0 +66,0 @@ }

@@ -49,2 +49,5 @@ 'use strict'

return log('debug', msg, meta)
},
isEnabled: function(level) {
return logger.isEnabled(level)
}

@@ -51,0 +54,0 @@ }

@@ -59,2 +59,5 @@ 'use strict'

return logger
},
isEnabled: function() {
return true
}

@@ -61,0 +64,0 @@ }

2

package.json
{
"name": "loggerism",
"version": "2.3.11",
"version": "2.4.0",
"description": "Yet another logger abstraction",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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