Comparing version 1.1.4 to 1.1.5
@@ -20,3 +20,3 @@ import { ActionBase } from './action/base'; | ||
prompt(name: string, options?: IPromptOptions): Promise<any>; | ||
log(data: string, ...args: any[]): void; | ||
log(data?: string, ...args: any[]): void; | ||
warn(err: Error | string, options?: Partial<IErrorOptions>): void; | ||
@@ -23,0 +23,0 @@ error(err: Error | string, options?: Partial<IErrorOptions>): void; |
@@ -15,8 +15,8 @@ /// <reference types="node" /> | ||
constructor(stream?: NodeJS.WriteStream | undefined, options?: IOptions); | ||
write(msg: string, options?: { | ||
write(msg?: string, options?: { | ||
log?: boolean; | ||
}): void; | ||
log(data: string, ...args: any[]): void; | ||
log(data?: string, ...args: any[]): void; | ||
writeLogFile(msg: string, withTimestamp: boolean): void; | ||
private timestamp(msg); | ||
} |
@@ -23,2 +23,3 @@ "use strict"; | ||
write(msg, options = {}) { | ||
msg = msg || ''; | ||
const log = options.log !== false; | ||
@@ -25,0 +26,0 @@ if (log) |
{ | ||
"name": "cli-ux", | ||
"description": "set of CLI output utilities", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"author": "Jeff Dickey", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/jdxcode/cli-ux/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47161
1417