@d-mok/quasar-app-extension-quasar-axe 4.0.2 → 4.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "A Quasar App Extension",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -78,7 +78,7 @@ export function ORM<
78
78
 
79
79
  protected onChange(): void {}
80
80
  protected onEdit(): void {}
81
- protected onSanitize<P extends Partial<R>>(row: P): P {
81
+ protected onSanitize(row: Partial<R>): Partial<R> {
82
82
  return row
83
83
  }
84
84
 
@@ -249,6 +249,7 @@ export function ORM<
249
249
  .from(tableName)
250
250
  .delete()
251
251
  .eq(idKey, idVal as any)
252
+ .select(fields)
252
253
  .single()
253
254
  .then(handleError)
254
255
 
@@ -263,7 +264,7 @@ export function ORM<
263
264
  conflictKeys: Key<P>[],
264
265
  options?: uiOptions
265
266
  ): Promise<T> {
266
- row = this.onSanitize(row)
267
+ row = this.onSanitize(row) as P
267
268
 
268
269
  let found: R[] = await this.read(q =>
269
270
  q.match(Object.pick(row, conflictKeys))
@@ -79,6 +79,7 @@ ss.update('', { name: 0 })
79
79
  ss.update('', { full: 'a' })
80
80
  // @ts-expect-error
81
81
  ss.update(0, { name: 'a' })
82
+ ss.upsert({ name: 'a', num: 3 }, ['num'])
82
83
 
83
84
  let st = ss[0]!
84
85
  st.name