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

listr2

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

listr2 - npm Package Compare versions

Comparing version 1.2.15 to 1.2.16

3

dist/lib/task-wrapper.d.ts

@@ -11,3 +11,4 @@ import { ListrError, ListrOptions, ListrTask, ListrTaskWrapper, StateConstants } from '../interfaces/listr.interface';

get title(): string;
set output(data: any);
set output(data: string);
get output(): string;
set state(data: StateConstants);

@@ -14,0 +15,0 @@ newListr<Ctx>(task: ListrTask<Ctx>[], options?: ListrOptions): Listr<Ctx>;

@@ -28,7 +28,6 @@ "use strict";

this.task.output = data;
this.task.next({
type: 'DATA',
data
});
}
get output() {
return this.task.output;
}
set state(data) {

@@ -69,3 +68,3 @@ this.task.state = data;

buffer += data;
const deleteMultiLineRegexp = new RegExp(/.*(\u001b\[.([0-9])G|\u0007).*/m);
const deleteMultiLineRegexp = new RegExp(/.*(\u001b\[.*G|\u0007).*/m);
if (deleteMultiLineRegexp.test(buffer.toString())) {

@@ -75,3 +74,3 @@ buffer = Buffer.alloc(64);

else {
this.output = buffer;
this.output = buffer.toString();
}

@@ -78,0 +77,0 @@ });

@@ -10,3 +10,2 @@ import { Subject } from 'rxjs';

title: ListrTaskObject<Ctx>['title'];
output: ListrTaskObject<Ctx>['output'];
task: ListrTaskObject<Ctx>['task'];

@@ -16,2 +15,3 @@ skip: ListrTaskObject<Ctx>['skip'];

state: ListrTaskObject<Ctx>['state'];
output: ListrTaskObject<Ctx>['output'];
prompt: boolean;

@@ -18,0 +18,0 @@ collapse: boolean;

@@ -81,3 +81,5 @@ "use strict";

hasPersistentBottomBar() {
return this.persistentBottomBar;
if (this.persistentBottomBar === true) {
return true;
}
}

@@ -84,0 +86,0 @@ hasTitle() {

@@ -8,3 +8,2 @@ "use strict";

const cli_cursor_1 = __importDefault(require("cli-cursor"));
const cli_truncate_1 = __importDefault(require("cli-truncate"));
const elegant_spinner_1 = __importDefault(require("elegant-spinner"));

@@ -52,4 +51,4 @@ const figures_1 = __importDefault(require("figures"));

}
if (task.isPending() && (task === null || task === void 0 ? void 0 : task.output)) {
if (task.isPrompt()) {
if (task === null || task === void 0 ? void 0 : task.output) {
if (task.isPending() && task.isPrompt()) {
this.promptBar = task.output;

@@ -68,3 +67,3 @@ }

}
else {
else if (task.isPending()) {
output = [...output, ...this.dumpData(task.output, level)];

@@ -85,3 +84,3 @@ }

this.promptBar = null;
if (!task.hasPersistentBottomBar()) {
if ((!task.hasTitle() || task.isBottomBar()) && !task.hasPersistentBottomBar()) {
delete this.bottomBar[task.id];

@@ -123,3 +122,3 @@ }

formatString(string, icon, level) {
return `${cli_truncate_1.default(indent_string_1.default(`${icon} ${string}`, level * this.indentation), process.stdout.columns - 3)}`;
return `${indent_string_1.default(`${icon} ${string}`, level * this.indentation)}`;
}

@@ -126,0 +125,0 @@ getSymbol(task, options) {

{
"name": "listr2",
"version": "1.2.15",
"version": "1.2.16",
"description": "Terminal task list reborn!",

@@ -5,0 +5,0 @@ "license": "MIT",

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

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