atom-nuxt 1.4.0 → 1.4.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomengine/atom-nuxt",
3
3
  "configKey": "atomNuxt",
4
- "version": "1.4.0",
4
+ "version": "1.4.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -4,7 +4,7 @@ import { useCrudConverters } from "../composables/useCrudConverters";
4
4
  import { usePreviousRoute } from "../composables/usePreviousRoute";
5
5
  import { useRoute, useRouter } from "#app";
6
6
  import CrudFilterList from "./CrudFilterList.vue";
7
- import { computed, ref, watch, onMounted, onBeforeUnmount } from "vue";
7
+ import { computed, ref, watch, onMounted, onBeforeUnmount, toRaw } from "vue";
8
8
  import { useDebounceFn } from "@vueuse/core";
9
9
  import { useListenerService } from "../composables/useListenerService";
10
10
  import CrudFormDialog from "./CrudFormDialog.vue";
@@ -338,7 +338,7 @@ const createForm = () => {
338
338
  };
339
339
  const saveAction = async () => {
340
340
  formPending.value = true;
341
- let itemToSave = JSON.parse(JSON.stringify(item.value));
341
+ let itemToSave = structuredClone(toRaw(item.value));
342
342
  if (props.beforeSave != null) {
343
343
  itemToSave = await props.beforeSave(itemToSave);
344
344
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",