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

cli-ux

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-ux - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

5

lib/action/base.d.ts

@@ -5,9 +5,10 @@ import { Base, IBaseOptions } from '../base';

action: string;
status?: string;
status: string | undefined;
active: boolean;
}
export declare class ActionBase extends Base {
protected task: ITask;
start(action: string, status?: string): void;
stop(msg?: string): void;
private readonly globals;
task: ITask | undefined;
readonly running: boolean;

@@ -14,0 +15,0 @@ status: string | undefined;

13

lib/action/base.js

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

start(action, status) {
const task = (this.task = { action, status, active: this.task && this.task.active });
const task = (this.task = { action, status, active: !!(this.task && this.task.active) });
this._start();

@@ -41,2 +41,13 @@ task.active = true;

}
get globals() {
const globals = (global['cli-ux'] = global['cli-ux'] || {});
globals.action = globals.action || {};
return globals;
}
get task() {
return this.globals.action.task;
}
set task(task) {
this.globals.action.task = task;
}
get running() {

@@ -43,0 +54,0 @@ return !!this.task;

@@ -8,5 +8,10 @@ "use strict";

this.options = options;
this.stdout = new deps_1.deps.StreamOutput(this.options.mock ? undefined : process.stdout);
this.stderr = new deps_1.deps.StreamOutput(this.options.mock ? undefined : process.stderr);
if (this.options.mock)
const globalOptions = global['cli-ux'] || {};
if (options.mock === undefined)
options.mock = globalOptions.mock;
if (options.debug === undefined)
options.debug = globalOptions.debug;
this.stdout = new deps_1.deps.StreamOutput(options.mock ? undefined : process.stdout);
this.stderr = new deps_1.deps.StreamOutput(options.mock ? undefined : process.stderr);
if (options.mock)
deps_1.deps.chalk.enabled = false;

@@ -13,0 +18,0 @@ }

{
"name": "cli-ux",
"description": "set of CLI output utilities",
"version": "1.1.11",
"version": "1.1.12",
"author": "Jeff Dickey",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/jdxcode/cli-ux/issues",

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