@gradual-so/cli 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +11 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3690,7 +3690,7 @@ var require_signal_exit = __commonJS((exports, module) => {
3690
3690
  emitter.on(ev, cb);
3691
3691
  return remove;
3692
3692
  };
3693
- unload = function unload() {
3693
+ unload = function unload2() {
3694
3694
  if (!loaded || !processOk(global.process)) {
3695
3695
  return;
3696
3696
  }
@@ -3705,7 +3705,7 @@ var require_signal_exit = __commonJS((exports, module) => {
3705
3705
  emitter.count -= 1;
3706
3706
  };
3707
3707
  module.exports.unload = unload;
3708
- emit = function emit(event, code, signal) {
3708
+ emit = function emit2(event, code, signal) {
3709
3709
  if (emitter.emitted[event]) {
3710
3710
  return;
3711
3711
  }
@@ -3734,7 +3734,7 @@ var require_signal_exit = __commonJS((exports, module) => {
3734
3734
  return signals;
3735
3735
  };
3736
3736
  loaded = false;
3737
- load = function load() {
3737
+ load = function load2() {
3738
3738
  if (loaded || !processOk(global.process)) {
3739
3739
  return;
3740
3740
  }
@@ -3753,7 +3753,7 @@ var require_signal_exit = __commonJS((exports, module) => {
3753
3753
  };
3754
3754
  module.exports.load = load;
3755
3755
  originalProcessReallyExit = process2.reallyExit;
3756
- processReallyExit = function processReallyExit(code) {
3756
+ processReallyExit = function processReallyExit2(code) {
3757
3757
  if (!processOk(global.process)) {
3758
3758
  return;
3759
3759
  }
@@ -3763,7 +3763,7 @@ var require_signal_exit = __commonJS((exports, module) => {
3763
3763
  originalProcessReallyExit.call(process2, process2.exitCode);
3764
3764
  };
3765
3765
  originalProcessEmit = process2.emit;
3766
- processEmit = function processEmit(ev, arg) {
3766
+ processEmit = function processEmit2(ev, arg) {
3767
3767
  if (ev === "exit" && processOk(global.process)) {
3768
3768
  if (arg !== undefined) {
3769
3769
  process2.exitCode = arg;
@@ -7308,12 +7308,12 @@ var require_wcwidth = __commonJS((exports, module) => {
7308
7308
  nul: 0,
7309
7309
  control: 0
7310
7310
  };
7311
- module.exports = function wcwidth(str) {
7311
+ module.exports = function wcwidth2(str) {
7312
7312
  return wcswidth(str, DEFAULTS);
7313
7313
  };
7314
7314
  module.exports.config = function(opts) {
7315
7315
  opts = defaults(opts || {}, DEFAULTS);
7316
- return function wcwidth(str) {
7316
+ return function wcwidth2(str) {
7317
7317
  return wcswidth(str, opts);
7318
7318
  };
7319
7319
  };
@@ -20489,7 +20489,7 @@ var effectScheduler = {
20489
20489
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
20490
20490
  function useState(defaultValue) {
20491
20491
  return withPointer((pointer) => {
20492
- const setState = AsyncResource2.bind(function setState(newValue) {
20492
+ const setState = AsyncResource2.bind(function setState2(newValue) {
20493
20493
  if (pointer.get() !== newValue) {
20494
20494
  pointer.set(newValue);
20495
20495
  handleChange();
@@ -22201,12 +22201,13 @@ async function deviceLogin(dashboardUrl) {
22201
22201
  throw new Error(`Failed to request device code: ${text}`);
22202
22202
  }
22203
22203
  const codeData = await codeResponse.json();
22204
+ const verifyUrl = codeData.verification_uri_complete || codeData.verification_uri;
22204
22205
  console.log();
22205
22206
  console.log(` Your authorization code: ${source_default.bold.cyan(codeData.user_code)}`);
22206
22207
  console.log();
22207
- console.log(` ${source_default.dim("Opening browser to verify...")}`);
22208
+ console.log(` ${source_default.dim(`Verify at: ${verifyUrl}`)}`);
22208
22209
  console.log();
22209
- await open_default(codeData.verification_uri_complete || codeData.verification_uri);
22210
+ await open_default(verifyUrl);
22210
22211
  let pollInterval = codeData.interval * 1000;
22211
22212
  const deadline = Date.now() + codeData.expires_in * 1000;
22212
22213
  while (Date.now() < deadline) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradual-so/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Gradual CLI for feature flag management",
5
5
  "type": "module",
6
6
  "bin": {