Socket
Socket
Sign inDemoInstall

npmlog

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmlog - npm Package Compare versions

Comparing version 3.1.2 to 4.0.0

7

log.js

@@ -222,3 +222,5 @@ 'use strict'

var disp = log.disp[m.level] || m.level
// If 'disp' is null or undefined, use the lvl as a default
// Allows: '', 0 as valid disp
var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level
this.clearProgress()

@@ -268,3 +270,4 @@ m.message.split(/\r?\n/).forEach(function (line) {

log.addLevel = function (lvl, n, style, disp) {
if (!disp) disp = lvl
// If 'disp' is null or undefined, use the lvl as a default
if (disp == null) disp = lvl
this.levels[lvl] = n

@@ -271,0 +274,0 @@ this.style[lvl] = style

@@ -5,3 +5,3 @@ {

"description": "logger for npm",
"version": "3.1.2",
"version": "4.0.0",
"repository": {

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

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