heroku-cli-util
Advanced tools
Comparing version 6.1.3 to 6.1.4
@@ -31,3 +31,2 @@ 'use strict' | ||
exports.styledJSON = styled.styledJSON | ||
exports.rollbar = require('./lib/rollbar') | ||
exports.open = require('./lib/open') | ||
@@ -34,0 +33,0 @@ exports.got = require('./lib/got') |
@@ -48,16 +48,2 @@ 'use strict' | ||
function errHandlerOpts (rollbar, context) { | ||
rollbar = rollbar || {} | ||
let cmd = null | ||
if (context.command) cmd = context.command.command ? `${context.command.topic}:${context.command.command}` : context.command.topic | ||
return { | ||
debug: context.debug, | ||
dev: context.dev, | ||
rollbar: cli.rollbar(rollbar.cred, { | ||
version: context.version, | ||
context: cmd | ||
}) | ||
} | ||
} | ||
function login () { | ||
@@ -122,3 +108,3 @@ const spawn = require('child_process').spawn | ||
cli.color.enabled = context.supportsColor | ||
let handleErr = cli.errorHandler(errHandlerOpts(options.rollbar, context)) | ||
let handleErr = cli.errorHandler({debug: context.debug}) | ||
let run = function () { | ||
@@ -125,0 +111,0 @@ let p = fn(context, heroku(context)) |
@@ -106,5 +106,3 @@ 'use strict' | ||
if (err.body) log(JSON.stringify(err.body)) | ||
if (options.dev) exit() | ||
else if (options.rollbar) options.rollbar.error(err).then(exit, exit) | ||
else exit() | ||
exit() | ||
} catch (err) { | ||
@@ -111,0 +109,0 @@ console.error(err.stack) |
{ | ||
"name": "heroku-cli-util", | ||
"description": "Set of helpful CLI utilities", | ||
"version": "6.1.3", | ||
"version": "6.1.4", | ||
"author": "Jeff Dickey (@dickeyxxx)", | ||
@@ -34,3 +34,2 @@ "bugs": { | ||
"chai": "^3.0.0", | ||
"changelog": "1.0.7", | ||
"codeclimate-test-reporter": "0.4.0", | ||
@@ -61,6 +60,3 @@ "hook-std": "0.2.0", | ||
"scripts": { | ||
"changelog": "changelog heroku-cli-util all -m > CHANGELOG.md", | ||
"doc": "jsdoc lib", | ||
"postversion": "npm publish && git push && git push --tags", | ||
"preversion": "npm test", | ||
"test": "nyc mocha && standard" | ||
@@ -67,0 +63,0 @@ }, |
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
12
276274
28
2681