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

@meteor-it/logger

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meteor-it/logger - npm Package Compare versions

Comparing version 2.3.15 to 2.3.16

4

package.json
{
"name": "@meteor-it/logger",
"version": "2.3.15",
"version": "2.3.16",
"description": "Most powerfull logger for node.js",

@@ -19,3 +19,3 @@ "main": "index.js",

},
"gitHead": "3d10baec01cd8de8e7af988796764d2fcf4087f7"
"gitHead": "c0af336e7277978a0c0b2e366dcb53dbbcfc65db"
}

@@ -90,5 +90,5 @@ "use strict";

const strings = data.string.split('\n');
let ret = ` \u001B[40m${stringifyName(nameLimit, provider.nameLimit, data.name, escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${strings.shift()}`;
let ret = `\u001B[40m${stringifyName(nameLimit, provider.nameLimit, data.name, escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${strings.shift()}`;
for (let string of strings) {
ret += ` \n\u001B[40m${stringifyName(nameLimit, provider.nameLimit, ' |', escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${string}`;
ret += `\n\u001B[40m${stringifyName(nameLimit, provider.nameLimit, ' |', escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${string}`;
//`${stringifyIdent(data.identationLength)}${stringifyName(provider.nameLimit,'|',escapeCode)} ${string}\n`;

@@ -99,12 +99,12 @@ }

function writeLogData(nameLimit, provider, data) {
terminal_1.writeStdout('\n' + stringifyCommonData(nameLimit, '34m', provider, data));
terminal_1.writeStdout(stringifyCommonData(nameLimit, '34m', provider, data) + '\n');
}
function writeErrorData(nameLimit, provider, data) {
terminal_1.writeStdout('\n' + stringifyCommonData(nameLimit, '31m', provider, data));
terminal_1.writeStdout(stringifyCommonData(nameLimit, '31m', provider, data) + '\n');
}
function writeWarningData(nameLimit, provider, data) {
terminal_1.writeStdout('\n' + stringifyCommonData(nameLimit, '33m', provider, data));
terminal_1.writeStdout(stringifyCommonData(nameLimit, '33m', provider, data) + '\n');
}
function writeDebugData(nameLimit, provider, data) {
terminal_1.writeStdout('\n' + stringifyCommonData(nameLimit, '90m', provider, data));
terminal_1.writeStdout(stringifyCommonData(nameLimit, '90m', provider, data) + '\n');
}

@@ -168,6 +168,6 @@ const progresses = {};

case __1.LOGGER_ACTIONS.IDENT:
terminal_1.writeStdout('\n' + stringifyIdentData(nameLimit, this, data));
terminal_1.writeStdout(stringifyIdentData(nameLimit, this, data) + '\n');
break;
case __1.LOGGER_ACTIONS.DEENT:
terminal_1.writeStdout('\n' + stringifyDeentData(nameLimit, this, data));
terminal_1.writeStdout(stringifyDeentData(nameLimit, this, data) + '\n');
break;

@@ -187,6 +187,6 @@ case __1.LOGGER_ACTIONS.LOG:

case __1.LOGGER_ACTIONS.TIME_START:
terminal_1.writeStdout('\n' + stringifyTimeStartData(nameLimit, this, data));
terminal_1.writeStdout(stringifyTimeStartData(nameLimit, this, data) + '\n');
break;
case __1.LOGGER_ACTIONS.TIME_END:
terminal_1.writeStdout('\n' + stringifyTimeEndData(nameLimit, this, data));
terminal_1.writeStdout(stringifyTimeEndData(nameLimit, this, data) + '\n');
break;

@@ -231,2 +231,2 @@ case __1.LOGGER_ACTIONS.PROGRESS_START:

//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2dlci9yZWNlaXZlcnMvbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUE0QjtBQUM1QiwyQkFBd0Q7QUFDeEQsa0RBQ2tHO0FBRWxHLE1BQU0sVUFBVSxHQUEyQjtJQUMxQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRWIsSUFBSSxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0F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5cdHRlcm1pbmFsTG9nZ2VyLmVycignVW5jYXVnaHRFeGNlcHRpb246Jyk7XG5cdHRlcm1pbmFsTG9nZ2VyLmVycihlLnN0YWNrKTtcblx0Ly8gcHJvY2Vzcy5leGl0KDApO1xufSk7XG5cbnByb2Nlc3Mub24oJ3VuaGFuZGxlZFJlamVjdGlvbicsIGUgPT4ge1xuXHR0ZXJtaW5hbExvZ2dlci5lcnIoJ1VuaGFuZGxlZFJlamVjdGlvbjonKTtcblx0dGVybWluYWxMb2dnZXIuZXJyKGUuc3RhY2spO1xuXHQvLyBwcm9jZXNzLmV4aXQoMCk7XG59KTtcblxuLy8gcHJvY2Vzcy5vbignd2FybmluZycsIGUgPT4ge1xuLy8gXHR0ZXJtaW5hbExvZ2dlci53YXJuKGUuc3RhY2spO1xuLy8gfSk7Il19

@@ -1,7 +0,9 @@

import {format} from 'util';
import Logger,{LOGGER_ACTIONS,BasicReceiver} from '../';
import {writeStdout,
moveCursor, clearLine, save, restore, startBuffering, flushBuffer} from '@meteor-it/terminal';
import { format } from 'util';
import Logger, { LOGGER_ACTIONS, BasicReceiver } from '../';
import {
writeStdout,
moveCursor, clearLine, save, restore, startBuffering, flushBuffer
} from '@meteor-it/terminal';
const ansiColors:{[key:string]:number[]} = {
const ansiColors: { [key: string]: number[] } = {
reset: [0, 0],

@@ -37,3 +39,3 @@

function stringifyIdent(nameLimit:number, count:number, symbolNeeded:string = undefined) {
function stringifyIdent(nameLimit: number, count: number, symbolNeeded: string = undefined) {
return `${' '.repeat(count)}${symbolNeeded ? symbolNeeded : ' '}`;

@@ -46,4 +48,4 @@ }

// }
function stringifyName(nameLimit:number, limit:number, name:string, escapeCode = '44m') {
return `\u001B[${escapeCode}\u001B[1m${nameLimit===0?'':name.toString().padStart(nameLimit,' ')}\u001B[0m`;
function stringifyName(nameLimit: number, limit: number, name: string, escapeCode = '44m') {
return `\u001B[${escapeCode}\u001B[1m${nameLimit === 0 ? '' : name.toString().padStart(nameLimit, ' ')}\u001B[0m`;
}

@@ -63,26 +65,26 @@ // function writeRepeats(count, none = false) {

// }
function stringifyIdentData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
function stringifyIdentData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
// writeRepeats(0, true);
// writeDate(data.time);
return ` ${stringifyName(nameLimit, provider.nameLimit,data.name)} \u001B[35m${stringifyIdent(nameLimit, data.identationLength-1,'>')}\u001B[1m ${data.identName}\u001B[0m`;
return ` ${stringifyName(nameLimit, provider.nameLimit, data.name)} \u001B[35m${stringifyIdent(nameLimit, data.identationLength - 1, '>')}\u001B[1m ${data.identName}\u001B[0m`;
}
function stringifyDeentData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
function stringifyDeentData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
// writeRepeats(0, true);
// writeDate(data.time);
return ` ${stringifyName(nameLimit, provider.nameLimit,data.name)} \u001B[35m${stringifyIdent(nameLimit, data.identationLength,'<')}\u001B[1m ${data.identName}\u001B[22m (Done in ${data.identTime}ms)\u001B[0m`;
return ` ${stringifyName(nameLimit, provider.nameLimit, data.name)} \u001B[35m${stringifyIdent(nameLimit, data.identationLength, '<')}\u001B[1m ${data.identName}\u001B[22m (Done in ${data.identTime}ms)\u001B[0m`;
}
function stringifyTimeStartData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
function stringifyTimeStartData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
// writeRepeats(0, true);
// writeDate(data.time);
return ` \u001B[35m${stringifyName(nameLimit, provider.nameLimit,data.name,'1m')}\u001B[33m${stringifyIdent(nameLimit, data.identationLength)} T Started ${data.timeName}`;
return ` \u001B[35m${stringifyName(nameLimit, provider.nameLimit, data.name, '1m')}\u001B[33m${stringifyIdent(nameLimit, data.identationLength)} T Started ${data.timeName}`;
}
function stringifyTimeEndData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
function stringifyTimeEndData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
// writeRepeats(0, true);
// writeDate(data.time);
return ` \u001B[35m${stringifyName(nameLimit, provider.nameLimit,data.name,'1m')}\u001B[34m${stringifyIdent(nameLimit, data.identationLength)} T Finished ${data.timeName}\u001B[1m in ${data.timeTime}ms\u001B[0m`;
return ` \u001B[35m${stringifyName(nameLimit, provider.nameLimit, data.name, '1m')}\u001B[34m${stringifyIdent(nameLimit, data.identationLength)} T Finished ${data.timeName}\u001B[1m in ${data.timeTime}ms\u001B[0m`;
}
function stringifyData(nameLimit:number, data:any) {
function stringifyData(nameLimit: number, data: any) {
let uncolored = format(data.line, ...data.params || []);
return uncolored.replace(/{(\/?)([^}]+)}/g, (...d:any[]) => {
if (!ansiColors[d[2]])return d[0];
return uncolored.replace(/{(\/?)([^}]+)}/g, (...d: any[]) => {
if (!ansiColors[d[2]]) return d[0];
return '\u001B[' + ansiColors[d[2]][d[1] === '/' ? 1 : 0] + 'm';

@@ -92,9 +94,9 @@ });

// const STRIPPED_DATE=(new Date()).toLocaleTimeString().replace(/./g, ' ');
function stringifyCommonData(nameLimit:number, escapeCode:string, provider:NodeConsoleReceiver, data:any) {
function stringifyCommonData(nameLimit: number, escapeCode: string, provider: NodeConsoleReceiver, data: any) {
// writeRepeats(data.repeats, false);
// writeDate(data.time);
const strings = data.string.split('\n');
let ret = ` \u001B[40m${stringifyName(nameLimit, provider.nameLimit, data.name, escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${strings.shift()}`;
for(let string of strings){
ret += ` \n\u001B[40m${stringifyName(nameLimit, provider.nameLimit, ' |', escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${string}`;
let ret = `\u001B[40m${stringifyName(nameLimit, provider.nameLimit, data.name, escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${strings.shift()}`;
for (let string of strings) {
ret += `\n\u001B[40m${stringifyName(nameLimit, provider.nameLimit, ' |', escapeCode)}\u001B[0m${stringifyIdent(nameLimit, data.identationLength)}${string}`;
//`${stringifyIdent(data.identationLength)}${stringifyName(provider.nameLimit,'|',escapeCode)} ${string}\n`;

@@ -104,13 +106,13 @@ }

}
function writeLogData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
writeStdout('\n'+stringifyCommonData(nameLimit, '34m',provider,data));
function writeLogData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
writeStdout(stringifyCommonData(nameLimit, '34m', provider, data) + '\n');
}
function writeErrorData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
writeStdout('\n'+stringifyCommonData(nameLimit, '31m',provider,data));
function writeErrorData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
writeStdout(stringifyCommonData(nameLimit, '31m', provider, data) + '\n');
}
function writeWarningData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
writeStdout('\n'+stringifyCommonData(nameLimit, '33m',provider,data));
function writeWarningData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
writeStdout(stringifyCommonData(nameLimit, '33m', provider, data) + '\n');
}
function writeDebugData(nameLimit:number, provider:NodeConsoleReceiver, data:any) {
writeStdout('\n'+stringifyCommonData(nameLimit, '90m',provider,data));
function writeDebugData(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
writeStdout(stringifyCommonData(nameLimit, '90m', provider, data) + '\n');
}

@@ -121,39 +123,39 @@

progress: number,
time:number
time: number
}
const progresses:{[key:string]:IProgressItem}={};
function progressStart(nameLimit:number, provider:NodeConsoleReceiver,data:any){
progresses[data.name]={
name:data.name,
progress:0,
time:data.time
const progresses: { [key: string]: IProgressItem } = {};
function progressStart(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
progresses[data.name] = {
name: data.name,
progress: 0,
time: data.time
};
}
function progressEnd(nameLimit:number, provider:NodeConsoleReceiver,data:any){
function progressEnd(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
delete progresses[data.name];
}
function progress(nameLimit:number, provider:NodeConsoleReceiver,data:any){
if(!progresses[data.name])
function progress(nameLimit: number, provider: NodeConsoleReceiver, data: any) {
if (!progresses[data.name])
return;
progresses[data.name].time=data.time;
progresses[data.name].progress=data.progress;
progresses[data.name].time = data.time;
progresses[data.name].progress = data.progress;
}
function renderProgress(nameLimit:number){
function renderProgress(nameLimit: number) {
save();
let i=0;
for(let progress of Object.values(progresses)) {
moveCursor(i);
clearLine();
let percent=Math.ceil(progress.progress);
writeStdout(`\u001B[34m${progress.name.padStart(nameLimit)} ${(percent + '%').padStart(4, ' ')} ${'|'.repeat(Math.ceil(((process.stdout as any).columns - 1 - 3 - 1 - 1 - nameLimit) / 100 * percent))}`);
// writeEscape('34m');
// writeStdout((<IProgressItem>progress).name.padStart(18,' '));
// writeStdout(' ');
// writeDate(progress.time);
// writeStdout(' ');
// writeStdout((percent+'%').padStart(4,' '));
// writeStdout(' ');
// writeStdout('|'.repeat(Math.ceil(((<any>process.stdout).columns-1-3-1-8-1-18)/100*percent)));
i++;
}
let i = 0;
for (let progress of Object.values(progresses)) {
moveCursor(i);
clearLine();
let percent = Math.ceil(progress.progress);
writeStdout(`\u001B[34m${progress.name.padStart(nameLimit)} ${(percent + '%').padStart(4, ' ')} ${'|'.repeat(Math.ceil(((process.stdout as any).columns - 1 - 3 - 1 - 1 - nameLimit) / 100 * percent))}`);
// writeEscape('34m');
// writeStdout((<IProgressItem>progress).name.padStart(18,' '));
// writeStdout(' ');
// writeDate(progress.time);
// writeStdout(' ');
// writeStdout((percent+'%').padStart(4,' '));
// writeStdout(' ');
// writeStdout('|'.repeat(Math.ceil(((<any>process.stdout).columns-1-3-1-8-1-18)/100*percent)));
i++;
}

@@ -164,3 +166,3 @@ restore();

export default class NodeConsoleReceiver extends BasicReceiver {
nameLimit:number;
nameLimit: number;

@@ -172,7 +174,7 @@ constructor(nameLimit = 18) {

write(data:any) {
let {nameLimit} = this;
if(Object.values(progresses).length!==0) {
startBuffering();
}
write(data: any) {
let { nameLimit } = this;
if (Object.values(progresses).length !== 0) {
startBuffering();
}
data.string = stringifyData(nameLimit, data);

@@ -188,6 +190,6 @@ // if (data.repeated) {

case LOGGER_ACTIONS.IDENT:
writeStdout('\n'+stringifyIdentData(nameLimit, this, data));
writeStdout(stringifyIdentData(nameLimit, this, data) + '\n');
break;
case LOGGER_ACTIONS.DEENT:
writeStdout('\n'+stringifyDeentData(nameLimit, this, data));
writeStdout(stringifyDeentData(nameLimit, this, data) + '\n');
break;

@@ -207,6 +209,6 @@ case LOGGER_ACTIONS.LOG:

case LOGGER_ACTIONS.TIME_START:
writeStdout('\n'+stringifyTimeStartData(nameLimit, this, data));
writeStdout(stringifyTimeStartData(nameLimit, this, data) + '\n');
break;
case LOGGER_ACTIONS.TIME_END:
writeStdout('\n'+stringifyTimeEndData(nameLimit, this, data));
writeStdout(stringifyTimeEndData(nameLimit, this, data) + '\n');
break;

@@ -217,6 +219,6 @@ case LOGGER_ACTIONS.PROGRESS_START:

case LOGGER_ACTIONS.PROGRESS_END:
progressEnd(nameLimit, this,data);
progressEnd(nameLimit, this, data);
break;
case LOGGER_ACTIONS.PROGRESS:
progress(nameLimit, this,data);
progress(nameLimit, this, data);
break;

@@ -229,11 +231,11 @@ default:

// }
// TODO: Support for non-tty terminals
if(Object.values(progresses).length!==0) {
renderProgress(nameLimit);
flushBuffer();
}
// TODO: Support for non-tty terminals
if (Object.values(progresses).length !== 0) {
renderProgress(nameLimit);
flushBuffer();
}
}
}
let terminalLogger=new Logger('terminal');
let terminalLogger = new Logger('terminal');

@@ -240,0 +242,0 @@ process.on('uncaughtException', e => {

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