@d-mok/quasar-app-extension-quasar-axe 4.0.2 → 4.0.3

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.3",
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
 
@@ -263,7 +263,7 @@ export function ORM<
263
263
  conflictKeys: Key<P>[],
264
264
  options?: uiOptions
265
265
  ): Promise<T> {
266
- row = this.onSanitize(row)
266
+ row = this.onSanitize(row) as P
267
267
 
268
268
  let found: R[] = await this.read(q =>
269
269
  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