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

codogo-plog

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codogo-plog - npm Package Compare versions

Comparing version 0.1.7 to 0.1.9

11

lib/index.js

@@ -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 @@

2

package.json
{
"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 @@

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