@lerna-lite/npmlog
Advanced tools
| import EventEmitter from 'node:events'; | ||
| let trackerId = 0; | ||
| export class TrackerBase extends EventEmitter { | ||
| id; | ||
| name; | ||
| constructor(name = '') { | ||
@@ -5,0 +7,0 @@ super(); |
@@ -5,12 +5,9 @@ import { TrackerBase } from './tracker-base.js'; | ||
| export class TrackerGroup extends TrackerBase { | ||
| constructor() { | ||
| super(...arguments); | ||
| this.parentGroup = null; | ||
| this.trackers = []; | ||
| this.completion = {}; | ||
| this.weight = {}; | ||
| this.totalWeight = 0; | ||
| this.finished = false; | ||
| this.bubbleChange = bubbleChange(this); | ||
| } | ||
| parentGroup = null; | ||
| trackers = []; | ||
| completion = {}; | ||
| weight = {}; | ||
| totalWeight = 0; | ||
| finished = false; | ||
| bubbleChange = bubbleChange(this); | ||
| nameInTree() { | ||
@@ -17,0 +14,0 @@ const names = []; |
| import stream from 'node:stream'; | ||
| import { Tracker } from './tracker.js'; | ||
| export class TrackerStream extends stream.Transform { | ||
| tracker; | ||
| name; | ||
| id; | ||
| constructor(name, size = 0, options) { | ||
@@ -5,0 +8,0 @@ super(options); |
| import { TrackerBase } from './tracker-base.js'; | ||
| export class Tracker extends TrackerBase { | ||
| workDone; | ||
| workTodo; | ||
| constructor(name, todo) { | ||
@@ -4,0 +6,0 @@ super(name); |
+20
-0
@@ -13,2 +13,22 @@ import hasUnicode from 'has-unicode'; | ||
| export class Gauge { | ||
| _status; | ||
| _paused; | ||
| _showing; | ||
| _onScreen; | ||
| _needsRedraw; | ||
| _hideCursor; | ||
| _fixedFramerate; | ||
| _lastUpdateAt; | ||
| _themes; | ||
| _theme; | ||
| _gauge; | ||
| _writeTo; | ||
| _$$doRedraw; | ||
| _$$handleSizeChange; | ||
| _cleanupOnExit; | ||
| _removeOnExit; | ||
| redrawTracker; | ||
| _disabled; | ||
| _tty; | ||
| _updateInterval; | ||
| constructor(arg1, arg2) { | ||
@@ -15,0 +35,0 @@ let options, writeTo; |
@@ -5,2 +5,6 @@ import validate from 'aproba'; | ||
| export class Plumbing { | ||
| showing; | ||
| template; | ||
| theme; | ||
| width; | ||
| constructor(theme, template, width) { | ||
@@ -7,0 +11,0 @@ if (!width) { |
@@ -12,15 +12,17 @@ import stringWidth from 'fast-string-width'; | ||
| export class TemplateItem { | ||
| overallOutputLength; | ||
| finished; | ||
| type = null; | ||
| value = null; | ||
| length = null; | ||
| maxLength = null; | ||
| minLength = null; | ||
| kerning = null; | ||
| align = 'left'; | ||
| padLeft = 0; | ||
| padRight = 0; | ||
| index = null; | ||
| first = null; | ||
| last = null; | ||
| constructor(values, outputLength) { | ||
| this.type = null; | ||
| this.value = null; | ||
| this.length = null; | ||
| this.maxLength = null; | ||
| this.minLength = null; | ||
| this.kerning = null; | ||
| this.align = 'left'; | ||
| this.padLeft = 0; | ||
| this.padRight = 0; | ||
| this.index = null; | ||
| this.first = null; | ||
| this.last = null; | ||
| this.overallOutputLength = outputLength; | ||
@@ -27,0 +29,0 @@ this.finished = false; |
+27
-0
@@ -9,2 +9,29 @@ import { EventEmitter } from 'node:events'; | ||
| export class Logger extends EventEmitter { | ||
| _stream; | ||
| _paused; | ||
| _buffer; | ||
| unicodeEnabled; | ||
| colorEnabled; | ||
| id; | ||
| record; | ||
| maxRecordSize; | ||
| gauge; | ||
| tracker; | ||
| progressEnabled; | ||
| level; | ||
| prefixStyle; | ||
| headingStyle; | ||
| style; | ||
| levels; | ||
| disp; | ||
| heading; | ||
| silly; | ||
| verbose; | ||
| info; | ||
| timing; | ||
| http; | ||
| notice; | ||
| warn; | ||
| error; | ||
| silent; | ||
| constructor() { | ||
@@ -11,0 +38,0 @@ super(); |
+19
-19
| { | ||
| "name": "@lerna-lite/npmlog", | ||
| "version": "4.10.3", | ||
| "description": "Lerna-Lite npmlog reimplementation of the now deprecated npm/npmlog", | ||
| "version": "4.10.0", | ||
| "homepage": "https://github.com/lerna-lite/lerna-lite", | ||
| "bugs": { | ||
| "url": "https://github.com/lerna-lite/lerna-lite/issues" | ||
| }, | ||
| "license": "MIT", | ||
| "author": "Ghislain B.", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/lerna-lite/lerna-lite.git", | ||
| "directory": "packages/npmlog" | ||
| }, | ||
| "files": [ | ||
@@ -9,5 +20,2 @@ "/dist" | ||
| "type": "module", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "types": "./dist/index.d.ts", | ||
@@ -18,16 +26,5 @@ "exports": { | ||
| }, | ||
| "license": "MIT", | ||
| "author": "Ghislain B.", | ||
| "homepage": "https://github.com/lerna-lite/lerna-lite", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/lerna-lite/lerna-lite.git", | ||
| "directory": "packages/npmlog" | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/lerna-lite/lerna-lite/issues" | ||
| }, | ||
| "engines": { | ||
| "node": "^20.17.0 || >=22.9.0" | ||
| }, | ||
| "dependencies": { | ||
@@ -42,3 +39,6 @@ "aproba": "^2.1.0", | ||
| }, | ||
| "gitHead": "659f24a146637a8ac3add02ab97890ac6d68f1b3" | ||
| } | ||
| "engines": { | ||
| "node": "^20.17.0 || >=22.9.0" | ||
| }, | ||
| "gitHead": "55c36f63d16a99442d391fa2c7b72673d9b3e505" | ||
| } |
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
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
111570
2.06%1617
3.65%