una-nuxt-module 2.1.9 → 2.1.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "una-nuxt-module",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "configKey": "unaxt",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -112,7 +112,7 @@ function addTemplates() {
112
112
  }
113
113
 
114
114
  const name = "una-nuxt-module";
115
- const version = "2.1.9";
115
+ const version = "2.1.10";
116
116
 
117
117
  const module = defineNuxtModule({
118
118
  meta: {
@@ -57,12 +57,13 @@ export class FetchClient {
57
57
  */
58
58
  async call(params) {
59
59
  const {
60
+ key,
60
61
  method = ERequestMethod.GET,
61
62
  url,
62
63
  body = void 0,
63
64
  fetchOptions = {}
64
65
  } = params;
65
- return useAsyncData(() => {
66
+ return useAsyncData(key, () => {
66
67
  return this.$fetch(url, {
67
68
  method,
68
69
  body,
@@ -102,6 +102,7 @@ export type TRequestMethod = keyof typeof ERequestMethod;
102
102
  * Interfaz que define los parámetros necesarios para realizar una petición HTTP.
103
103
  */
104
104
  export interface IFetchParams {
105
+ key: string;
105
106
  /**
106
107
  * Método HTTP de la petición (GET, POST, PUT, DELETE, etc.).
107
108
  * Por defecto, se utiliza el método GET.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "una-nuxt-module",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "Módulo Nuxt para desarrollo CGI",
5
5
  "repository": {
6
6
  "type": "git",