@data-fair/lib-vue 1.18.1 → 1.18.2

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.
Files changed (2) hide show
  1. package/async-action.js +2 -3
  2. package/package.json +1 -1
package/async-action.js CHANGED
@@ -23,6 +23,7 @@ export function useAsyncAction (fn, options) {
23
23
  }
24
24
  }
25
25
  loading.value = false
26
+ if (options?.finally) { await options?.finally() }
26
27
  return result
27
28
  } catch (err) {
28
29
  error.value = getErrorMsg(err)
@@ -32,9 +33,7 @@ export function useAsyncAction (fn, options) {
32
33
  sendUiNotif(errorNotif)
33
34
  }
34
35
  loading.value = false
35
- }
36
- if (options?.finally) {
37
- await options?.finally()
36
+ if (options?.finally) { await options?.finally() }
38
37
  }
39
38
  }
40
39
  return { execute, notif: shallowReadonly(notif), loading: readonly(loading), error: readonly(error) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vue",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [