Socket
Socket
Sign inDemoInstall

heroku-cli-util

Package Overview
Dependencies
Maintainers
19
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-cli-util - npm Package Compare versions

Comparing version 5.10.10 to 5.10.11

.nyc_output/82378.json

57

CHANGELOG.md

@@ -0,1 +1,19 @@

5.10.10 / 2016-04-21
====================
* 5.10.10
* added cmd style
* fix build
* ignore linewrap from codeclimate since we did not write it
* added yubikey test
* badging
* readme formatting
* fix npm test command
* remove unused dev dependencies
* mocha updates
* update node to 5.10.1
* code climate
* update deps
* update license
5.10.9 / 2016-04-20

@@ -161,40 +179,1 @@ ===================

* removed non-displaying license badge
5.8.2 / 2016-03-03
==================
* Merge pull request [#47](https://github.com/heroku/heroku-cli-util/issues/47) from heroku/rm-warning-prepend
remove prepending warnings with WARNING:
* update node on circle
* remove prepending warnings with WARNING:
this has been getting in the way more than it has been helping. For
example, cli.confirmApp() is pretty broken looking because of it.
I still don't like that without colors warnings look like errors, but
we'll have to find a different solution to that problem.
* fix wrapping with command examples
turns this:
```
▸ To drain to splunk do the following:
▸ $ heroku drains:add -a heroku-npm https://$(foo > /dev/null; foo-client
▸ MAP | awk -F '|' {print
▸ $2}')@logs.foo.com/logs
```
into this:
```
▸ To drain to splunk do the following:
▸ $ heroku drains:add -a heroku-npm https://$(foo > /dev/null; foo-client MAP | awk -F '|' {print $2}')@logs.foo.com/logs
```
5.8.1 / 2016-02-16
==================
* 5.8.1
* updated deps
* 5.8.0
* added open function
5.8.0 / 2016-01-28
==================
* Merge pull request [#48](https://github.com/heroku/heroku-cli-util/issues/48) from heroku/open
added open function

@@ -11,3 +11,4 @@ 'use strict';

exports.error = errors.error;
exports.warn = errors.warn;
exports.action = require('./lib/action');
exports.warn = exports.action.warn;
exports.errorHandler = errors.errorHandler;

@@ -21,3 +22,2 @@ exports.console = console;

exports.color = require('./lib/color');
exports.action = require('./lib/action');
exports.extend = require('./lib/extend');

@@ -39,1 +39,2 @@ exports.debug = console.debug;

exports.Spinner = require('./lib/spinner');
exports.exit = require('./lib/exit').exit;
'use strict';
let cli = require('..');
let errors = require('./errors');

@@ -41,7 +42,4 @@ let task;

function warn (msg) {
if (!task) return cli.warn(msg);
task.spinner.stop();
task.spinner.clear();
cli.warn(msg);
task.spinner.start();
if (task) task.spinner.warn(msg);
else errors.warn(msg);
}

@@ -48,0 +46,0 @@

@@ -57,3 +57,2 @@ 'use strict';

dev: context.dev,
logPath: context.herokuDir ? context.herokuDir+'/error.log' : null,
rollbar: cli.rollbar(rollbar.cred, {

@@ -60,0 +59,0 @@ version: context.version,

@@ -6,2 +6,4 @@ 'use strict';

let linewrap = require('./linewrap');
let path = require('path');
let os = require('os');

@@ -65,4 +67,18 @@ function errtermwidth() {

function log(msg, logPath) {
function cacheHome() {
let base;
if (process.env.XDG_CACHE_HOME) base = process.env.XDG_CACHE_HOME;
if (!base) {
if (process.platform === "win32" && process.env.LOCALAPPDATA) {
base = process.env.LOCALAPPDATA;
} else {
base = path.join(os.homedir(), ".cache");
}
}
return path.join(base, "heroku");
}
function log(msg) {
let fs = require('fs');
let logPath = path.join(cacheHome(), 'error.log');
fs.appendFileSync(logPath, logtimestamp() + ' ' + cli.color.stripColor(msg) + '\n');

@@ -82,13 +98,11 @@ }

if (err !== '') { error(err); }
if (options.logPath) {
if (err.stack) {
log(err.stack, options.logPath);
if (options.debug) {
console.error(err.stack);
}
if (err.stack) {
log(err.stack);
if (options.debug) {
console.error(err.stack);
}
if (err.body) {
log(JSON.stringify(err.body), options.logPath);
}
}
if (err.body) {
log(JSON.stringify(err.body));
}
if (options.dev) exit();

@@ -95,0 +109,0 @@ else if (options.rollbar) options.rollbar.error(err).then(exit, exit);

@@ -7,2 +7,3 @@ 'use strict';

let color = require('./color');
let errors = require('./errors');

@@ -81,4 +82,15 @@ class Spinner {

}
warn(msg) {
if (this.enabled) {
this.stop();
this.clear();
} else {
console.error(color.yellow.bold('!'));
}
errors.warn(msg);
this.start();
}
}
module.exports = Spinner;

@@ -5,3 +5,3 @@ {

"ansi-regex@^0.2.0",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/has-ansi"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/has-ansi"
]

@@ -36,3 +36,3 @@ ],

"_spec": "ansi-regex@^0.2.0",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/has-ansi",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/has-ansi",
"author": {

@@ -54,3 +54,3 @@ "email": "sindresorhus@gmail.com",

"shasum": "0d8e946967a3d8143f93e24e298525fc1b2235f9",
"tarball": "http://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz"
"tarball": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz"
},

@@ -65,27 +65,27 @@ "engines": {

"keywords": [
"256",
"ansi",
"styles",
"cli",
"color",
"colors",
"colour",
"colors",
"terminal",
"command-line",
"console",
"cli",
"string",
"tty",
"escape",
"find",
"formatting",
"match",
"pattern",
"re",
"regex",
"regexp",
"rgb",
"256",
"shell",
"xterm",
"command-line",
"string",
"styles",
"terminal",
"test",
"text",
"regex",
"regexp",
"re",
"match",
"test",
"find",
"pattern"
"tty",
"xterm"
],

@@ -95,4 +95,4 @@ "license": "MIT",

{
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}

@@ -99,0 +99,0 @@ ],

@@ -5,3 +5,3 @@ {

"ansi-styles@^1.1.0",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
]

@@ -35,3 +35,3 @@ ],

"_spec": "ansi-styles@^1.1.0",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"author": {

@@ -53,3 +53,3 @@ "email": "sindresorhus@gmail.com",

"shasum": "eaecbf66cd706882760b2f4691582b8f55d7a7de",
"tarball": "http://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz"
"tarball": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz"
},

@@ -64,22 +64,22 @@ "engines": {

"keywords": [
"256",
"ansi",
"styles",
"cli",
"color",
"colors",
"colour",
"colors",
"terminal",
"command-line",
"console",
"cli",
"string",
"tty",
"escape",
"formatting",
"log",
"logging",
"rgb",
"256",
"shell",
"xterm",
"log",
"logging",
"command-line",
"text"
"string",
"styles",
"terminal",
"text",
"tty",
"xterm"
],

@@ -89,4 +89,4 @@ "license": "MIT",

{
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}

@@ -93,0 +93,0 @@ ],

@@ -5,3 +5,3 @@ {

"chalk@^0.5.1",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog"
]

@@ -35,3 +35,3 @@ ],

"_spec": "chalk@^0.5.1",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog",
"bugs": {

@@ -66,21 +66,21 @@ "url": "https://github.com/sindresorhus/chalk/issues"

"keywords": [
"256",
"ansi",
"cli",
"color",
"colors",
"colour",
"colors",
"terminal",
"command-line",
"console",
"cli",
"formatting",
"log",
"logging",
"rgb",
"shell",
"string",
"ansi",
"styles",
"terminal",
"text",
"tty",
"formatting",
"rgb",
"256",
"shell",
"xterm",
"log",
"logging",
"command-line",
"text"
"xterm"
],

@@ -90,8 +90,8 @@ "license": "MIT",

{
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
{
"email": "jappelman@xebia.com",
"name": "jbnicolai"
"name": "jbnicolai",
"email": "jappelman@xebia.com"
}

@@ -98,0 +98,0 @@ ],

@@ -5,3 +5,3 @@ {

"has-ansi@^0.1.0",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
]

@@ -35,3 +35,3 @@ ],

"_spec": "has-ansi@^0.1.0",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"author": {

@@ -58,3 +58,3 @@ "email": "sindresorhus@gmail.com",

"shasum": "84f265aae8c0e6a88a12d7022894b7568894c62e",
"tarball": "http://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz"
"tarball": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz"
},

@@ -65,31 +65,31 @@ "engines": {

"files": [
"index.js",
"cli.js"
"cli.js",
"index.js"
],
"homepage": "https://github.com/sindresorhus/has-ansi",
"keywords": [
"ansi",
"bin",
"cli",
"bin",
"ansi",
"styles",
"color",
"colors",
"colour",
"colors",
"terminal",
"command-line",
"console",
"string",
"tty",
"escape",
"shell",
"xterm",
"command-line",
"text",
"find",
"has",
"match",
"pattern",
"re",
"regex",
"regexp",
"re",
"match",
"shell",
"string",
"styles",
"terminal",
"test",
"find",
"pattern",
"has"
"text",
"tty",
"xterm"
],

@@ -99,4 +99,4 @@ "license": "MIT",

{
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}

@@ -103,0 +103,0 @@ ],

@@ -5,3 +5,3 @@ {

"lodash@^2.4.1",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog"
]

@@ -32,7 +32,7 @@ ],

],
"_resolved": "http://localhost:3000/lodash/-/lodash-2.4.2/fadd834b9683073da179b3eae6d9c0d15053f73e.tgz",
"_resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
"_shasum": "fadd834b9683073da179b3eae6d9c0d15053f73e",
"_shrinkwrap": null,
"_spec": "lodash@^2.4.1",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog",
"author": {

@@ -48,19 +48,19 @@ "email": "john.david.dalton@gmail.com",

{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
"url": "http://allyoucanleet.com/"
},
{
"name": "Blaine Bublitz",
"email": "blaine@iceddev.com",
"name": "Blaine Bublitz",
"url": "http://www.iceddev.com/"
},
{
"name": "Kit Cambridge",
"email": "github@kitcambridge.be",
"name": "Kit Cambridge",
"url": "http://kitcambridge.be/"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"name": "Mathias Bynens",
"url": "http://mathiasbynens.be/"

@@ -83,9 +83,9 @@ }

"LICENSE.txt",
"lodash.js",
"dist/lodash.compat.js",
"dist/lodash.compat.min.js",
"dist/lodash.js",
"dist/lodash.min.js",
"dist/lodash.compat.js",
"dist/lodash.compat.min.js",
"dist/lodash.underscore.js",
"dist/lodash.underscore.min.js"
"dist/lodash.underscore.min.js",
"lodash.js"
],

@@ -96,6 +96,6 @@ "homepage": "http://lodash.com/",

"LICENSE.txt",
"dist/lodash.compat.js",
"dist/lodash.compat.min.js",
"dist/lodash.js",
"dist/lodash.min.js",
"dist/lodash.compat.js",
"dist/lodash.compat.min.js",
"dist/lodash.underscore.js",

@@ -119,20 +119,20 @@ "dist/lodash.underscore.min.js"

{
"email": "john.david.dalton@gmail.com",
"name": "jdalton"
"name": "jdalton",
"email": "john.david.dalton@gmail.com"
},
{
"email": "mathias@qiwi.be",
"name": "mathias"
"name": "mathias",
"email": "mathias@qiwi.be"
},
{
"email": "blaine@iceddev.com",
"name": "phated"
"name": "phated",
"email": "blaine@iceddev.com"
},
{
"email": "github@kitcambridge.be",
"name": "kitcambridge"
"name": "kitcambridge",
"email": "github@kitcambridge.be"
},
{
"email": "demoneaux@gmail.com",
"name": "d10"
"name": "d10",
"email": "demoneaux@gmail.com"
}

@@ -151,13 +151,13 @@ ],

"ignore": [
".*",
"*.custom.*",
"*.map",
"*.md",
"*.min.*",
"*.template.*",
"*.map",
"*.md",
"lodash.js",
"index.js",
".*",
"bower.json",
"component.json",
"doc",
"index.js",
"lodash.js",
"modularize",

@@ -164,0 +164,0 @@ "node_modules",

@@ -5,3 +5,3 @@ {

"strip-ansi@^0.3.0",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
]

@@ -35,3 +35,3 @@ ],

"_spec": "strip-ansi@^0.3.0",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"author": {

@@ -58,3 +58,3 @@ "email": "sindresorhus@gmail.com",

"shasum": "25f48ea22ca79187f3174a4db8759347bb126220",
"tarball": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz"
"tarball": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz"
},

@@ -65,30 +65,30 @@ "engines": {

"files": [
"index.js",
"cli.js"
"cli.js",
"index.js"
],
"homepage": "https://github.com/sindresorhus/strip-ansi",
"keywords": [
"strip",
"trim",
"remove",
"256",
"ansi",
"styles",
"cli",
"color",
"colors",
"colour",
"colors",
"terminal",
"command-line",
"console",
"cli",
"string",
"tty",
"escape",
"formatting",
"log",
"logging",
"remove",
"rgb",
"256",
"shell",
"xterm",
"log",
"logging",
"command-line",
"text"
"string",
"strip",
"styles",
"terminal",
"text",
"trim",
"tty",
"xterm"
],

@@ -98,4 +98,4 @@ "license": "MIT",

{
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}

@@ -102,0 +102,0 @@ ],

@@ -5,3 +5,3 @@ {

"supports-color@^0.2.0",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk"
]

@@ -35,3 +35,3 @@ ],

"_spec": "supports-color@^0.2.0",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util/node_modules/changelog/node_modules/chalk",
"author": {

@@ -56,3 +56,3 @@ "email": "sindresorhus@gmail.com",

"shasum": "d92de2694eb3f67323973d7ae3d8b55b4c22190a",
"tarball": "http://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz"
"tarball": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz"
},

@@ -63,27 +63,27 @@ "engines": {

"files": [
"index.js",
"cli.js"
"cli.js",
"index.js"
],
"homepage": "https://github.com/sindresorhus/supports-color",
"keywords": [
"256",
"ansi",
"bin",
"capability",
"cli",
"bin",
"cli",
"color",
"colors",
"colour",
"colors",
"terminal",
"command-line",
"console",
"cli",
"ansi",
"styles",
"tty",
"detect",
"rgb",
"256",
"shell",
"xterm",
"command-line",
"styles",
"support",
"supports",
"capability",
"detect"
"terminal",
"tty",
"xterm"
],

@@ -93,4 +93,4 @@ "license": "MIT",

{
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}

@@ -97,0 +97,0 @@ ],

@@ -5,3 +5,3 @@ {

"changelog@1.0.7",
"/Users/jdickey/src/github.com/heroku/heroku-cli-util"
"/Users/rbriggs/src/github.com/heroku/heroku-cli-util"
]

@@ -38,3 +38,3 @@ ],

"_spec": "changelog@1.0.7",
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util",
"_where": "/Users/rbriggs/src/github.com/heroku/heroku-cli-util",
"author": {

@@ -90,10 +90,10 @@ "email": "dylang@gmail.com",

"keywords": [
"change log",
"change set",
"changelog",
"change log",
"changes",
"commit messages",
"commits",
"changes",
"history",
"what's new",
"change set"
"what's new"
],

@@ -109,4 +109,4 @@ "licenses": [

{
"email": "dylang@gmail.com",
"name": "dylang"
"name": "dylang",
"email": "dylang@gmail.com"
}

@@ -113,0 +113,0 @@ ],

{
"name": "heroku-cli-util",
"description": "Set of helpful CLI utilities",
"version": "5.10.10",
"version": "5.10.11",
"author": "Jeff Dickey (@dickeyxxx)",

@@ -33,3 +33,4 @@ "bugs": {

"proxyquire": "1.7.4",
"sinon": "1.17.3"
"sinon": "1.17.3",
"unexpected": "10.13.2"
},

@@ -46,3 +47,8 @@ "homepage": "https://github.com/heroku/heroku-cli-util",

"test": "nyc mocha && jshint ."
},
"nyc": {
"exclude": [
"lib/linewrap.js"
]
}
}

Sorry, the diff of this file is not supported yet

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