@embeddable.com/sdk-core 2.4.15 → 2.4.16

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.
package/lib/index.esm.js CHANGED
@@ -19928,7 +19928,7 @@ var build = async () => {
19928
19928
  catch (error) {
19929
19929
  await reportErrorToRollbar(error);
19930
19930
  console.log(error);
19931
- throw error;
19931
+ process.exit(1);
19932
19932
  }
19933
19933
  };
19934
19934
 
@@ -19936,8 +19936,9 @@ const oraP$2 = import('ora');
19936
19936
  const openP = import('open');
19937
19937
  var login = async () => {
19938
19938
  var _a;
19939
+ const ora = (await oraP$2).default;
19940
+ const authenticationSpinner = ora("waiting for code verification...").start();
19939
19941
  try {
19940
- const ora = (await oraP$2).default;
19941
19942
  const open = (await openP).default;
19942
19943
  const config = await provideConfig();
19943
19944
  await resolveFiles();
@@ -19951,7 +19952,6 @@ var login = async () => {
19951
19952
  device_code: deviceCodeResponse.data["device_code"],
19952
19953
  client_id: config.authClientId,
19953
19954
  };
19954
- const authenticationSpinner = ora("waiting for code verification...").start();
19955
19955
  await open(deviceCodeResponse.data["verification_uri_complete"]);
19956
19956
  /**
19957
19957
  * This is a recommended way to poll, since it take some time for a user to enter a `user_code` in a browser.
@@ -19974,9 +19974,10 @@ var login = async () => {
19974
19974
  }
19975
19975
  }
19976
19976
  catch (error) {
19977
+ authenticationSpinner.fail("authentication failed. please try again.");
19977
19978
  await reportErrorToRollbar(error);
19978
19979
  console.log(error);
19979
- throw error;
19980
+ process.exit(1);
19980
19981
  }
19981
19982
  };
19982
19983
  async function getToken() {