@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
|
@@ -78,7 +78,7 @@ export function ORM<
|
|
|
78
78
|
|
|
79
79
|
protected onChange(): void {}
|
|
80
80
|
protected onEdit(): void {}
|
|
81
|
-
protected onSanitize
|
|
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))
|