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

@marcopeg/utils

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marcopeg/utils - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

11

lib/logger.js

@@ -33,5 +33,6 @@ 'use strict';

var getLogLevel = function getLogLevel() {
var envLogLevel = config.get('LOG_LEVEL', '');
var logLevel = envLogLevel.toUpperCase();
// computes the default value based on function param or LOG_LEVEL env variable
var getLogLevel = function getLogLevel(defaultLogLevel) {
var envLogLevel = config.get('LOG_LEVEL', 'dn');
var logLevel = String(envLogLevel === 'dn' ? defaultLogLevel : envLogLevel).toUpperCase();
var logLevelNum = parseInt(logLevel, 10);

@@ -45,3 +46,3 @@

if (envLogLevel === 'development') return logLevels.INFO;
return logLevels.ERROR;
return logLevels.INFO;
};

@@ -57,3 +58,3 @@

var init = function init(logLevel) {
cache.logLevel = logLevel || getLogLevel();
cache.logLevel = getLogLevel(logLevel);
Object.keys(logLevels).forEach(function (key) {

@@ -60,0 +61,0 @@ cache[logLevels[key]] = cache.logLevel < logLevels[key];

{
"name": "@marcopeg/utils",
"version": "1.11.0",
"version": "1.11.1",
"description": "Javascript utils for server and client projects",

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

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