@d-mok/quasar-app-extension-quasar-axe 2.1.16 → 2.1.17

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": "2.1.16",
3
+ "version": "2.1.17",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -73,7 +73,7 @@ if (SUPABASE_URL !== '' && SUPABASE_KEY !== '')
73
73
 
74
74
  export function HANDLE_ERROR<T>(
75
75
  data: T[] | T | null,
76
- error: PostgrestError | null
76
+ error: PostgrestError | Error | null
77
77
  ): asserts data {
78
78
  if (error) {
79
79
  if (error.message === 'JWSError JWSInvalidSignature') {
@@ -84,11 +84,11 @@ export function HANDLE_ERROR<T>(
84
84
  )
85
85
  throw error
86
86
  }
87
- let msg = ''
88
- msg += error.details ?? '' + '<br/>'
89
- msg += error.message ?? '' + '<br/>'
90
- msg += error.hint ?? ''
91
- qDialog.error('Database Error!', msg)
87
+ let msg: string[] = []
88
+ // if ('details' in error) msg.push(error.details)
89
+ msg.push(error.message)
90
+ // if ('hint' in error) msg.push(error.hint)
91
+ qDialog.error('Database Error!', msg.join('<br/>'))
92
92
  throw error
93
93
  }
94
94
  if (data === null) {