New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logging

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logging - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

30

lib/logging.js

@@ -5,4 +5,3 @@

NiceTime = require('./niceTime'),
history = [],
ready;
history = [];

@@ -40,3 +39,3 @@ var clusterCPU = 'NODE_WORKER_ID' in process.env ? Style(Style.GREEN, process.env.NODE_WORKER_ID + '.')

function record(messages, func, file) {
function record(messages, file) {

@@ -74,8 +73,6 @@ var date = new Date();

writeLog(niceTime + ' - '
+ (file || func ? '[' : '')
+ (file ? '[' : '')
+ clusterCPU
+ (file ? Style(Style.GREEN, file) : '')
+ (file && func ? '.' : '')
+ (func ? Style(Style.GREEN, func) : '')
+ (file || func ? '] - ' : '')
+ (file ? '] - ' : '')
+ output.join(' ').replace(/\n/g, '\n' + ' '));

@@ -88,3 +85,2 @@

file: file,
func: func,
messages: messages

@@ -98,11 +94,5 @@ });

function calledFrom(args, count) {
return !args || count > 3 ? false : (args.name && args.name != 'forEach' ? args.name : calledFrom(args.caller, count ? count + 1: 1));
}
var Log = exports = module.exports = function Log() {
return record(arguments, calledFrom(arguments.callee));
return record(arguments);
};

@@ -114,5 +104,5 @@

var file = path.split('/').pop().split('.')[0];
var log_function = function() { record(arguments, arguments.callee ? calledFrom(arguments.callee) : false, file); };
var log_function = function() { record(arguments, file); };
log_function.history = function(){ return history;};
log_function.array = function(array) { record(array, arguments.callee ? calledFrom(arguments.callee) : false, file);};
log_function.array = function(array) { record(array, file);};
return log_function;

@@ -122,7 +112,1 @@ };

if (!ready) {
//record(['ready'], false, 'log');
ready = true;
}
{
"name": "logging",
"version": "2.0.15",
"version": "2.0.16",
"description": "Super sexy color console logging with cluster support.",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/dylang/logging",

Sorry, the diff of this file is not supported yet

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