Socket
Socket
Sign inDemoInstall

listr2

Package Overview
Dependencies
67
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.4 to 1.1.5

9

dist/renderer/default.renderer.js

@@ -44,3 +44,3 @@ "use strict";

if (task.hasTitle()) {
const taskTitle = !task.isSkipped() ? task === null || task === void 0 ? void 0 : task.title : `${task === null || task === void 0 ? void 0 : task.output} ${chalk_1.default.dim('[SKIPPED]')}`;
const taskTitle = !task.isSkipped() ? `${task === null || task === void 0 ? void 0 : task.title}` : `${task === null || task === void 0 ? void 0 : task.output} ${chalk_1.default.dim('[SKIPPED]')}`;
output.push(this.formatString(taskTitle, this.getSymbol(task, this.options), level));

@@ -66,3 +66,6 @@ }

const subtaskLevel = !task.hasTitle() ? level : level + 1;
output = [...output, this.multiLineRenderer(task.subtasks, subtaskLevel)];
const subtaskRender = this.multiLineRenderer(task.subtasks, subtaskLevel);
if (subtaskRender !== '') {
output = [...output, subtaskRender];
}
}

@@ -99,3 +102,3 @@ if (task.isCompleted()) {

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

@@ -102,0 +105,0 @@ getSymbol(task, options) {

{
"name": "listr2",
"version": "1.1.4",
"version": "1.1.5",
"description": "Terminal task list reborn!",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc