@d-mok/quasar-app-extension-quasar-axe 3.1.21 → 3.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "3.1.21",
3
+ "version": "3.1.23",
4
4
  "description": "A Quasar App Extension",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -60,6 +60,8 @@ let {
60
60
  icon?: string
61
61
  }>()
62
62
 
63
+ selected.value.keep(options.map(getValue))
64
+
63
65
  let optionsHistory = [...options]
64
66
 
65
67
  const selectedOpts = computed(() =>
@@ -95,7 +97,7 @@ watch(
95
97
  if (onOptionsChange === 'clear') {
96
98
  selected.value = []
97
99
  } else if (onOptionsChange === 'keep') {
98
- selected.value = selected.value.match(now.map(getValue))
100
+ selected.value.keep(now.map(getValue))
99
101
  }
100
102
  optionsHistory = [...optionsHistory, ...now]
101
103
  }
@@ -63,10 +63,23 @@ export class MySupabaseClient extends SupabaseClient {
63
63
  return data as T
64
64
  }
65
65
 
66
+ private async tryRefreshSession() {
67
+ try {
68
+ await this.auth.refreshSession()
69
+ } catch (e) {
70
+ console.error('[Supabase] Refresh session failed', e)
71
+ }
72
+ }
73
+
66
74
  async waitForSignin(): Promise<void> {
67
- setInterval(() => {
75
+ await this.tryRefreshSession()
76
+ setInterval(async () => {
77
+ if (this.session === null) await this.tryRefreshSession()
68
78
  if (this.session === null) this.signIn()
69
79
  }, 1000)
80
+ setInterval(async () => {
81
+ await this.auth.refreshSession()
82
+ }, 1000 * 60 * 30 * 0.99)
70
83
  await waitFor(
71
84
  () => this.session !== null,
72
85
  '[Wait for SignIn] waiting...',