md4ai 0.18.3 → 0.18.4
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/dist/index.bundled.js +4 -4
- package/package.json +1 -1
package/dist/index.bundled.js
CHANGED
|
@@ -112,7 +112,7 @@ var CURRENT_VERSION;
|
|
|
112
112
|
var init_check_update = __esm({
|
|
113
113
|
"dist/check-update.js"() {
|
|
114
114
|
"use strict";
|
|
115
|
-
CURRENT_VERSION = true ? "0.18.
|
|
115
|
+
CURRENT_VERSION = true ? "0.18.4" : "0.0.0-dev";
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
|
|
@@ -365,7 +365,7 @@ async function getAuthenticatedClient() {
|
|
|
365
365
|
if (creds.refreshToken) {
|
|
366
366
|
const refreshed = await refreshSession();
|
|
367
367
|
if (refreshed) {
|
|
368
|
-
updateDeviceCliVersion(refreshed.supabase, refreshed.userId).catch(() => {
|
|
368
|
+
await updateDeviceCliVersion(refreshed.supabase, refreshed.userId).catch(() => {
|
|
369
369
|
});
|
|
370
370
|
return refreshed;
|
|
371
371
|
}
|
|
@@ -379,7 +379,7 @@ async function getAuthenticatedClient() {
|
|
|
379
379
|
}
|
|
380
380
|
const anonKey = getAnonKey();
|
|
381
381
|
const supabase = createSupabaseClient(anonKey, creds.accessToken);
|
|
382
|
-
updateDeviceCliVersion(supabase, creds.userId).catch(() => {
|
|
382
|
+
await updateDeviceCliVersion(supabase, creds.userId).catch(() => {
|
|
383
383
|
});
|
|
384
384
|
return { supabase, userId: creds.userId };
|
|
385
385
|
}
|
|
@@ -452,7 +452,7 @@ async function promptLogin() {
|
|
|
452
452
|
console.log(chalk5.green(`Logged in as ${data.user.email}
|
|
453
453
|
`));
|
|
454
454
|
const authedSupabase = createSupabaseClient(anonKey, data.session.access_token);
|
|
455
|
-
updateDeviceCliVersion(authedSupabase, data.user.id).catch(() => {
|
|
455
|
+
await updateDeviceCliVersion(authedSupabase, data.user.id).catch(() => {
|
|
456
456
|
});
|
|
457
457
|
return { supabase: authedSupabase, userId: data.user.id };
|
|
458
458
|
}
|