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

cli-ux

Package Overview
Dependencies
Maintainers
4
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 3.3.14 to 3.3.15

9

CHANGELOG.md

@@ -0,1 +1,10 @@

<a name="3.3.15"></a>
## [3.3.15](https://github.com/anycli/cli-ux/compare/20d719c681e5e23488cfa6a494e34e2968133e6a...v3.3.15) (2018-02-05)
### Bug Fixes
* remove notify ([c0ff832](https://github.com/anycli/cli-ux/commit/c0ff832))
* remove notify ([5fbbf70](https://github.com/anycli/cli-ux/commit/5fbbf70))
<a name="3.3.14"></a>

@@ -2,0 +11,0 @@ ## [3.3.14](https://github.com/anycli/cli-ux/compare/8ce11fce38ea59a35716990d38e2242fa9977324...v3.3.14) (2018-02-04)

15

lib/errors.js

@@ -57,7 +57,12 @@ "use strict";

if (config_1.config.showStackTrace || opts.stack || process.env.CI || severity === 'fatal' || config_1.config.debug) {
// show stack trace
let stack = err.stack || util_1.inspect(err);
stack = clean(stack, { pretty: true });
stack = extract(stack);
message = [message, '', stack].join('\n');
if (severity === 'warn') {
process.emitWarning(err);
}
else {
// show stack trace
let stack = err.stack || util_1.inspect(err);
stack = clean(stack, { pretty: true });
stack = extract(stack);
message = [message, '', stack].join('\n');
}
}

@@ -64,0 +69,0 @@ else {

@@ -1,7 +0,4 @@

/// <reference types="node-notifier" />
import { NodeNotifier } from 'node-notifier';
import { ActionBase } from './action/base';
import Errors, { CLIError, Options as ErrorOptions } from './errors';
import { ExitError } from './exit';
import { Notification, NotificationCallback } from './notify';
import { IPromptOptions } from './prompt';

@@ -20,3 +17,2 @@ import * as Table from './styled/table';

exit(code?: number, error?: Error | undefined): never;
notify: (opts: Notification, cb?: NotificationCallback | undefined) => NodeNotifier;
readonly prompt: (name: string, options?: IPromptOptions) => Promise<any>;

@@ -32,2 +28,2 @@ readonly confirm: (message: string) => Promise<boolean>;

export default cli;
export { config, ActionBase, CLIError, Config, ErrorOptions, NodeNotifier, Notification, NotificationCallback, Errors, ExitError, IPromptOptions, Table };
export { config, ActionBase, CLIError, Config, ErrorOptions, Errors, ExitError, IPromptOptions, Table };

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

const Logger = require("./logger");
const notify_1 = require("./notify");
const output_1 = require("./output");

@@ -35,3 +34,2 @@ const Table = require("./styled/table");

exit(code = 1, error) { throw new exit_1.ExitError(code, error); },
notify: notify_1.default,
get prompt() { return deps_1.default.prompt.prompt; },

@@ -38,0 +36,0 @@ get confirm() { return deps_1.default.prompt.confirm; },

{
"name": "cli-ux",
"description": "cli IO utilities",
"version": "3.3.14",
"version": "3.3.15",
"author": "Jeff Dickey @jdxcode",

@@ -18,3 +18,2 @@ "bugs": "https://github.com/anycli/cli-ux/issues",

"lodash": "^4.17.4",
"node-notifier": "^5.2.1",
"password-prompt": "^1.0.4",

@@ -37,3 +36,2 @@ "semver": "^5.5.0",

"@types/node": "^9.4.0",
"@types/node-notifier": "^0.0.28",
"@types/read-pkg": "^3.0.0",

@@ -40,0 +38,0 @@ "@types/semver": "^5.5.0",

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