@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 +5 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -19954,7 +19954,7 @@ var build = async () => {
|
|
|
19954
19954
|
catch (error) {
|
|
19955
19955
|
await reportErrorToRollbar(error);
|
|
19956
19956
|
console.log(error);
|
|
19957
|
-
|
|
19957
|
+
process.exit(1);
|
|
19958
19958
|
}
|
|
19959
19959
|
};
|
|
19960
19960
|
|
|
@@ -19962,8 +19962,9 @@ const oraP$2 = import('ora');
|
|
|
19962
19962
|
const openP = import('open');
|
|
19963
19963
|
var login = async () => {
|
|
19964
19964
|
var _a;
|
|
19965
|
+
const ora = (await oraP$2).default;
|
|
19966
|
+
const authenticationSpinner = ora("waiting for code verification...").start();
|
|
19965
19967
|
try {
|
|
19966
|
-
const ora = (await oraP$2).default;
|
|
19967
19968
|
const open = (await openP).default;
|
|
19968
19969
|
const config = await provideConfig();
|
|
19969
19970
|
await resolveFiles();
|
|
@@ -19977,7 +19978,6 @@ var login = async () => {
|
|
|
19977
19978
|
device_code: deviceCodeResponse.data["device_code"],
|
|
19978
19979
|
client_id: config.authClientId,
|
|
19979
19980
|
};
|
|
19980
|
-
const authenticationSpinner = ora("waiting for code verification...").start();
|
|
19981
19981
|
await open(deviceCodeResponse.data["verification_uri_complete"]);
|
|
19982
19982
|
/**
|
|
19983
19983
|
* This is a recommended way to poll, since it take some time for a user to enter a `user_code` in a browser.
|
|
@@ -20000,9 +20000,10 @@ var login = async () => {
|
|
|
20000
20000
|
}
|
|
20001
20001
|
}
|
|
20002
20002
|
catch (error) {
|
|
20003
|
+
authenticationSpinner.fail("authentication failed. please try again.");
|
|
20003
20004
|
await reportErrorToRollbar(error);
|
|
20004
20005
|
console.log(error);
|
|
20005
|
-
|
|
20006
|
+
process.exit(1);
|
|
20006
20007
|
}
|
|
20007
20008
|
};
|
|
20008
20009
|
async function getToken() {
|