@d-mok/quasar-app-extension-quasar-axe 4.0.7 → 4.0.9

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.7",
3
+ "version": "4.0.9",
4
4
  "description": "A Quasar App Extension",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -22,7 +22,7 @@ export async function fetchJSON(
22
22
  if (Array.isArray(val)) {
23
23
  val.forEach(v => urlObject.searchParams.append(key, v))
24
24
  } else {
25
- urlObject.searchParams.append(key, val)
25
+ urlObject.searchParams.append(key, val ?? '')
26
26
  }
27
27
  }
28
28
 
@@ -224,8 +224,8 @@ export function ORM<
224
224
  }
225
225
 
226
226
  async insert(row: Partial<R>, options?: uiOptions): Promise<T> {
227
- let entities = await this.insertMany([row], options)
228
- return entities[0]
227
+ let [entity] = await this.insertMany([row], options)
228
+ return entity!
229
229
  }
230
230
 
231
231
  async update(
@@ -233,7 +233,7 @@ export function ORM<
233
233
  row: Partial<R>,
234
234
  options?: uiOptions
235
235
  ): Promise<T> {
236
- const entities = await this.wrapper(
236
+ const [entity] = await this.wrapper(
237
237
  'update',
238
238
  options,
239
239
  async () => {
@@ -255,7 +255,7 @@ export function ORM<
255
255
  }
256
256
  )
257
257
 
258
- return entities[0]
258
+ return entity!
259
259
  }
260
260
 
261
261
  async delete(idVal: R[IdK], options?: uiOptions): Promise<void> {
package/tsconfig.json CHANGED
@@ -39,7 +39,7 @@
39
39
  // "noUnusedParameters": true, /* Report errors on unused parameters. */
40
40
  // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
41
41
  // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
42
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
42
+ "noUncheckedIndexedAccess": true /* Include 'undefined' in index signature results */,
43
43
  // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an 'override' modifier. */
44
44
  // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
45
45