@hostlink/nuxt-light 1.42.0 → 1.42.1

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.42.0",
4
+ "version": "1.42.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -1,9 +1,13 @@
1
1
  <script setup>
2
- import { useLight, useAsyncObject, m } from "#imports";
2
+ import { useLight, m } from "#imports";
3
3
  import { useRoute } from "vue-router";
4
- import { ref } from "vue";
5
4
  const route = useRoute();
6
- const { data: obj } = await useAsyncObject({ canUpdate: true, canDelete: true });
5
+ const { data: obj } = await useAsyncData(async () => {
6
+ return collect("User", {
7
+ canUpdate: true,
8
+ canDelete: true
9
+ }).where("user_id", route.params.user_id).first();
10
+ });
7
11
  const light = useLight();
8
12
  const id = route.params.user_id;
9
13
  const reset2fa = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",