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

@4lch4/logger

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4lch4/logger - npm Package Compare versions

Comparing version 2.0.0-pre.0 to 2.0.0-pre.1

12

dist/index.js

@@ -16,11 +16,11 @@ import Winston from 'winston';

if (typeof msg === 'object')
this.logger.info(JSON.stringify(msg, null, 2), ...extra);
this.logger.warn(JSON.stringify(msg, null, 2), ...extra);
else
this.logger.info(msg, ...extra);
this.logger.warn(msg, ...extra);
}
debug(msg, ...extra) {
if (typeof msg === 'object')
this.logger.info(JSON.stringify(msg, null, 2), ...extra);
this.logger.debug(JSON.stringify(msg, null, 2), ...extra);
else
this.logger.info(msg, ...extra);
this.logger.debug(msg, ...extra);
}

@@ -45,5 +45,5 @@ error(msg, ...extra) {

if (typeof msg === 'object')
this.logger.info(JSON.stringify(msg, null, 2), ...extra);
this.logger.log('success', JSON.stringify(msg, null, 2), ...extra);
else
this.logger.info(msg, ...extra);
this.logger.log('success', msg, ...extra);
}

@@ -50,0 +50,0 @@ log(level, msg, ...extra) {

{
"name": "@4lch4/logger",
"displayName": "Logger",
"version": "2.0.0-pre.0",
"version": "2.0.0-pre.1",
"description": "A small utility for logging to console within NodeJS/TypeScript applications.",

@@ -20,8 +20,18 @@ "main": "./dist/index.js",

},
"files": ["dist"],
"engines": { "node": ">=16.0.0" },
"files": [
"dist"
],
"engines": {
"node": ">=16.0.0"
},
"publishConfig": {
"access": "public"
},
"keywords": ["util", "logger", "log", "logging", "stdout"],
"keywords": [
"util",
"logger",
"log",
"logging",
"stdout"
],
"repository": {

@@ -28,0 +38,0 @@ "type": "git",

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