nuxt-glorious 1.2.3-6 → 1.2.3-7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.3-6"
4
+ "version": "1.2.3-7"
5
5
  }
@@ -11,7 +11,7 @@ const props = defineProps({
11
11
  },
12
12
  body: {
13
13
  required: true,
14
- type: Object,
14
+ type: [Object, 'undefined'],
15
15
  },
16
16
  loading: {
17
17
  required: false,
@@ -1,6 +1,7 @@
1
1
  import { defineNuxtRouteMiddleware } from "#imports";
2
2
  import { GloriousStore } from "../stores/GloriousStore.mjs";
3
- export default defineNuxtRouteMiddleware(() => {
3
+ export default defineNuxtRouteMiddleware((to, from) => {
4
+ if (to.path === from.path) return;
4
5
  const gs = GloriousStore();
5
6
  Object.entries(gs.response).forEach((element) => {
6
7
  if (!gs.keepResponse.includes(element[0])) delete gs.response[element[0]];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.3-6",
2
+ "version": "1.2.3-7",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",