heroku-cli-util
Advanced tools
Comparing version 6.2.7 to 6.2.8
@@ -64,3 +64,3 @@ 'use strict' | ||
function * loginSSO ({save}) { | ||
function * loginSSO ({save, browser}) { | ||
const {prompt} = require('./prompt') | ||
@@ -80,3 +80,3 @@ | ||
let openError | ||
yield cli.action('Opening browser for login', open(url) | ||
yield cli.action('Opening browser for login', open(url, browser) | ||
.catch(function (err) { | ||
@@ -83,0 +83,0 @@ openError = err |
@@ -5,6 +5,8 @@ 'use strict' | ||
function open (url) { | ||
function open (url, browser) { | ||
let opn = require('opn') | ||
return new Promise((resolve, reject) => { | ||
opn(url, {wait: false}, err => { | ||
let opts = {wait: false} | ||
if (browser) { opts.app = browser } | ||
opn(url, opts, err => { | ||
if (err) { | ||
@@ -11,0 +13,0 @@ reject(new Error( |
{ | ||
"name": "heroku-cli-util", | ||
"description": "Set of helpful CLI utilities", | ||
"version": "6.2.7", | ||
"version": "6.2.8", | ||
"author": "Jeff Dickey (@dickeyxxx)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
86623
2917