inv-loggers
Advanced tools
Comparing version 3.3.4 to 3.3.5
@@ -10,3 +10,3 @@ // Generated by CoffeeScript 1.11.1 | ||
log = function(obj, label, color) { | ||
var context; | ||
var context, objCopy; | ||
if (color == null) { | ||
@@ -27,7 +27,8 @@ color = 'cyan'; | ||
} | ||
if (obj != null) { | ||
if ((obj != null) && typeof obj === 'object') { | ||
context = obj.context; | ||
delete obj.context; | ||
objCopy = Object.assign({}, obj); | ||
delete objCopy.context; | ||
} | ||
console.log(obj); | ||
console.log(objCopy); | ||
if (context != null) { | ||
@@ -34,0 +35,0 @@ console.log('Context: ', inspect(context, { |
{ | ||
"name": "inv-loggers", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"description": "loggers and partial loggers", | ||
@@ -5,0 +5,0 @@ "main": "./build/inv-loggers.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55037
77