You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@lerna-lite/npmlog

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna-lite/npmlog - npm Package Compare versions

Comparing version
4.7.3
to
4.9.1
+1
-1
dist/are-we-there-yet/tracker-group.d.ts

@@ -0,3 +1,3 @@

import { TrackerBase } from './tracker-base.js';
import { Tracker } from './tracker.js';
import { TrackerBase } from './tracker-base.js';
export declare class TrackerGroup extends TrackerBase {

@@ -4,0 +4,0 @@ parentGroup: null;

@@ -1,4 +0,4 @@

import { Tracker } from './tracker.js';
import { TrackerBase } from './tracker-base.js';
import { TrackerStream } from './tracker-stream.js';
import { Tracker } from './tracker.js';
export class TrackerGroup extends TrackerBase {

@@ -5,0 +5,0 @@ constructor() {

import hasUnicode from 'has-unicode';
import { onExit } from 'signal-exit';
import hasColor from './has-color.js';
import c from 'tinyrainbow';
import { Plumbing } from './plumbing.js';

@@ -82,3 +82,3 @@ import { setImmediateFn } from './set-immediate.js';

const useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode;
const useColor = theme.hasColor == null ? hasColor : theme.hasColor;
const useColor = theme.hasColor == null ? c.isColorSupported : theme.hasColor;
theme = this._themes.getDefault({

@@ -85,0 +85,0 @@ hasUnicode: useUnicode,

@@ -10,6 +10,6 @@ export declare class Plumbing {

setWidth(width: any): void;
hideCursor(): any;
showCursor(): any;
hide(): any;
show(status: any): any;
hideCursor(): string;
showCursor(): string;
hide(): string;
show(status: any): string;
}
import validate from 'aproba';
import consoleControl from 'console-control-strings';
import c from 'tinyrainbow';
import renderTemplate from './render-template.js';

@@ -28,9 +28,9 @@ export class Plumbing {

hideCursor() {
return consoleControl.hideCursor();
return '\x1b[?25l';
}
showCursor() {
return consoleControl.showCursor();
return '\x1b[?25h';
}
hide() {
return consoleControl.gotoSOL() + consoleControl.eraseLine();
return '\x1b[0G\x1b[2K';
}

@@ -42,8 +42,9 @@ show(status) {

}
return (renderTemplate(this.width, this.template, values).trim() +
consoleControl.color('reset') +
consoleControl.eraseLine() +
consoleControl.gotoSOL());
let out = renderTemplate(this.width, this.template, values).trim() + c.reset('');
if (c.isColorSupported) {
out += '\x1b[2K' + '\x1b[0G';
}
return out;
}
}
//# sourceMappingURL=plumbing.js.map

@@ -1,2 +0,2 @@

import { color } from 'console-control-strings';
import c from 'tinyrainbow';
import ThemeSet from './theme-set.js';

@@ -16,8 +16,8 @@ const themes = ThemeSet();

progressbarTheme: {
preComplete: color('bgBrightWhite', 'brightWhite'),
preComplete: c.bgWhite(c.white('')),
complete: '#',
postComplete: color('reset'),
preRemaining: color('bgBrightBlack', 'brightBlack'),
postComplete: c.reset(),
preRemaining: c.bgBlack(c.black('')),
remaining: '.',
postRemaining: color('reset'),
postRemaining: c.reset(),
},

@@ -37,8 +37,8 @@ });

progressbarTheme: {
preComplete: color('bgBrightWhite', 'brightWhite'),
preComplete: c.bgWhite(c.white('')),
complete: '#',
postComplete: color('reset'),
preRemaining: color('bgBrightBlack', 'brightBlack'),
postComplete: c.reset(),
preRemaining: c.bgBlack(c.black('')),
remaining: '⠂',
postRemaining: color('reset'),
postRemaining: c.reset(),
},

@@ -45,0 +45,0 @@ });

@@ -60,3 +60,2 @@ import { EventEmitter } from 'node:events';

inverse?: boolean;
beep?: boolean;
}): string | void;

@@ -69,3 +68,2 @@ write(msg: string, style?: {

inverse?: boolean;
beep?: boolean;
}): void;

@@ -72,0 +70,0 @@ addLevel(lvl: string | number, n: any, style?: any, disp?: string | number | null): void;

import { EventEmitter } from 'node:events';
import { format } from 'node:util';
import consoleControl from 'console-control-strings';
import setBlocking from 'set-blocking';
import c from 'tinyrainbow';
import { TrackerGroup } from './are-we-there-yet/tracker-group.js';

@@ -219,31 +219,32 @@ import { Gauge } from './gauge/index.js';

}
let output = '';
if (this.useColor()) {
style = style || {};
const settings = [];
if (style.fg) {
settings.push(style.fg);
if (!this.useColor()) {
return msg;
}
let output = msg;
style ??= {};
if (style.fg) {
const colorMethodName = style.fg;
const colorMethod = c[colorMethodName];
if (typeof colorMethod === 'function') {
output = colorMethod(output);
}
if (style.bg) {
settings.push('bg' + style.bg[0].toUpperCase() + style.bg.slice(1));
}
if (style.bg) {
const bgColorMethodName = `bg${style.bg[0].toUpperCase() + style.bg.slice(1)}`;
const bgColorMethod = c[bgColorMethodName];
if (typeof bgColorMethod === 'function') {
output = bgColorMethod(output);
}
if (style.bold) {
settings.push('bold');
}
if (style.underline) {
settings.push('underline');
}
if (style.inverse) {
settings.push('inverse');
}
if (settings.length) {
output += consoleControl.color(settings);
}
if (style.beep) {
output += consoleControl.beep();
}
}
output += msg;
if (style.bold) {
output = c.bold(output);
}
if (style.underline) {
output = c.underline(output);
}
if (style.inverse) {
output = c.inverse(output);
}
if (this.useColor()) {
output += consoleControl.color('reset');
output += c.reset('');
}

@@ -250,0 +251,0 @@ return output;

{
"name": "@lerna-lite/npmlog",
"description": "Lerna-Lite npmlog reimplementation of the now deprecated npm/npmlog",
"version": "4.7.3",
"version": "4.9.1",
"files": [

@@ -33,11 +33,10 @@ "/dist"

"aproba": "^2.1.0",
"color-support": "^1.1.3",
"console-control-strings": "^1.1.0",
"fast-string-width": "^3.0.1",
"fast-string-width": "^3.0.2",
"has-unicode": "^2.0.1",
"set-blocking": "^2.0.0",
"signal-exit": "^4.1.0",
"tinyrainbow": "^3.0.3",
"wide-align": "^1.1.5"
},
"gitHead": "51f207ad3f87e4b19a866a059ca91a581e07cbc8"
"gitHead": "19df4e156199b041ed174be6e6ab2a8ee94727da"
}
declare const _default: any;
export default _default;
import colorSupport from 'color-support';
export default colorSupport().hasBasic;
//# sourceMappingURL=has-color.js.map
{"version":3,"file":"has-color.js","sourceRoot":"","sources":["../../src/gauge/has-color.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,eAAe,YAAY,EAAE,CAAC,QAAQ,CAAC"}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet