@oclif/command
Advanced tools
Comparing version 1.4.34 to 1.4.35
@@ -0,1 +1,9 @@ | ||
<a name="1.4.35"></a> | ||
## [1.4.35](https://github.com/oclif/command/compare/v1.4.34...v1.4.35) (2018-07-19) | ||
### Bug Fixes | ||
* only flush if errorLogger present ([#41](https://github.com/oclif/command/issues/41)) ([f183916](https://github.com/oclif/command/commit/f183916)) | ||
<a name="1.4.34"></a> | ||
@@ -2,0 +10,0 @@ ## [1.4.34](https://github.com/oclif/command/compare/v1.4.33...v1.4.34) (2018-06-26) |
@@ -31,3 +31,3 @@ import * as Config from '@oclif/config'; | ||
_run<T>(): Promise<T | undefined>; | ||
exit(code?: number): never; | ||
exit(code?: number): void; | ||
warn(input: string | Error): void; | ||
@@ -53,5 +53,5 @@ error(input: string | Error, options: { | ||
protected finally(_: Error | undefined): Promise<any>; | ||
protected _help(): never; | ||
protected _help(): void; | ||
protected _helpOverride(): boolean; | ||
protected _version(): never; | ||
protected _version(): void; | ||
} |
@@ -91,3 +91,5 @@ "use strict"; | ||
try { | ||
await require('@oclif/errors').config.errorLogger.flush(); | ||
const config = require('@oclif/errors').config; | ||
if (config.errorLogger) | ||
await config.errorLogger.flush(); | ||
// tslint:disable-next-line no-console | ||
@@ -94,0 +96,0 @@ } |
@@ -5,2 +5,2 @@ import Command from './command'; | ||
export default Command; | ||
export { Command, flags, }; | ||
export { Command, flags }; |
@@ -6,6 +6,6 @@ import * as Config from '@oclif/config'; | ||
init(): Promise<any>; | ||
run(): Promise<undefined>; | ||
run(): Promise<void>; | ||
protected _helpOverride(): boolean; | ||
protected _help(): never; | ||
protected _help(): void; | ||
} | ||
export declare function run(argv?: string[], options?: Config.LoadOptions): Promise<any>; |
{ | ||
"name": "@oclif/command", | ||
"description": "oclif base command", | ||
"version": "1.4.34", | ||
"version": "1.4.35", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/command/issues", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
50758
389
1