codogo-plog
Advanced tools
Comparing version 0.1.7 to 0.1.9
@@ -6,2 +6,3 @@ "use strict"; | ||
}); | ||
var mockGroup = !console.group; | ||
var forceIndentation = 0; | ||
@@ -18,3 +19,3 @@ var getIndent = function getIndent() { | ||
if (!console.group) { | ||
if (mockGroup) { | ||
console.group = function (x) { | ||
@@ -41,3 +42,9 @@ console.log("---" + x + "---"); | ||
console.group(label); | ||
printer(getIndent() + arg); | ||
if (mockGroup) { | ||
printer(getIndent() + JSON.stringify(arg)); | ||
} else { | ||
printer(arg); | ||
} | ||
console.groupEnd(label); | ||
@@ -44,0 +51,0 @@ |
{ | ||
"name": "codogo-plog", | ||
"version": "0.1.7", | ||
"version": "0.1.9", | ||
"description": "log and return", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,1 +1,2 @@ | ||
const mockGroup = !console.group; | ||
let forceIndentation = 0; | ||
@@ -6,3 +7,4 @@ const getIndent = () => new Array(forceIndentation + 1).join(" "); | ||
if(!console.group){ | ||
if(mockGroup){ | ||
console.group = (x) => { | ||
@@ -23,6 +25,12 @@ console.log(`---${x}---`); | ||
console.group(label); | ||
printer( getIndent() + arg ); | ||
if(mockGroup){ | ||
printer( getIndent() + JSON.stringify(arg) ); | ||
} else { | ||
printer(arg); | ||
} | ||
console.groupEnd(label); | ||
return arg | ||
return arg; | ||
} | ||
@@ -29,0 +37,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
107101
77
1