@merkaly/nuxt 0.7.9 → 0.7.11

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.14.0"
6
6
  },
7
- "version": "0.7.9",
7
+ "version": "0.7.11",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -1,8 +1,8 @@
1
- declare var __VLS_24: {}, __VLS_26: {};
1
+ declare var __VLS_29: {}, __VLS_31: {};
2
2
  type __VLS_Slots = {} & {
3
- loading?: (props: typeof __VLS_24) => any;
3
+ loading?: (props: typeof __VLS_29) => any;
4
4
  } & {
5
- default?: (props: typeof __VLS_26) => any;
5
+ default?: (props: typeof __VLS_31) => any;
6
6
  };
7
7
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
8
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,6 +17,8 @@ hook("page:finish", () => regenerate());
17
17
 
18
18
  <template>
19
19
  <main>
20
+ <NuxtLoadingIndicator color="var(--bs-primary)" :height="3" />
21
+
20
22
  <Notivue v-slot="item">
21
23
  <Notification :item="item" :theme="pastelTheme" title>
22
24
  <NotificationProgress :item="item" />
@@ -24,10 +26,8 @@ hook("page:finish", () => regenerate());
24
26
  </Notivue>
25
27
 
26
28
  <BApp>
27
- <!-- Mostramos spinner mientras auth se carga -->
28
29
  <slot v-if="isLoading" name="loading" />
29
30
 
30
- <!-- Renderizamos páginas solo cuando isLoading = false -->
31
31
  <slot v-else>
32
32
  <NuxtPage />
33
33
  </slot>
@@ -1,8 +1,8 @@
1
- declare var __VLS_24: {}, __VLS_26: {};
1
+ declare var __VLS_29: {}, __VLS_31: {};
2
2
  type __VLS_Slots = {} & {
3
- loading?: (props: typeof __VLS_24) => any;
3
+ loading?: (props: typeof __VLS_29) => any;
4
4
  } & {
5
- default?: (props: typeof __VLS_26) => any;
5
+ default?: (props: typeof __VLS_31) => any;
6
6
  };
7
7
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
8
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,2 +1,2 @@
1
- declare const _default: import("nuxt/app").RouteMiddleware;
1
+ declare const _default: import("#app").RouteMiddleware;
2
2
  export default _default;
@@ -47,5 +47,5 @@ export interface ParamsOptions {
47
47
  export type ApiOptions<TData = unknown, TMeta = Record<string, unknown>, TParams = object> = ParamsOptions & HooksOptions<TData, TMeta, TParams> & RefOptions & {
48
48
  params?: TParams;
49
49
  };
50
- declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
50
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
51
51
  export default _default;
@@ -1,6 +1,6 @@
1
- declare const _default: import("nuxt/app").Plugin<{
1
+ declare const _default: import("#app").Plugin<{
2
2
  auth0: import("@auth0/auth0-spa-js").Auth0Client;
3
- }> & import("nuxt/app").ObjectPlugin<{
3
+ }> & import("#app").ObjectPlugin<{
4
4
  auth0: import("@auth0/auth0-spa-js").Auth0Client;
5
5
  }>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -5,6 +5,7 @@ const TENANT_HOST_HEADER = "x-merkaly-host";
5
5
  const API_PREFIX_PATTERN = /^\/api\/?/;
6
6
  const API_ROUTE_PATTERN = /^\/api(?:\/|$)/;
7
7
  const EDGE_SLASH_PATTERN = /^\/|\/$/g;
8
+ const EDGE_HEADER_PATTERN = /^(cf-|cdn-loop$|true-client-ip$)/;
8
9
  function normalizeSegment(value) {
9
10
  return value.replace(EDGE_SLASH_PATTERN, "");
10
11
  }
@@ -12,6 +13,9 @@ function resolveProxyPath(prefix, pathname, search) {
12
13
  const normalizedPathname = pathname.replace(API_PREFIX_PATTERN, "");
13
14
  return `/${[prefix, normalizedPathname].map(normalizeSegment).filter(Boolean).join("/")}${search}`;
14
15
  }
16
+ function stripEdgeHeaders(headers) {
17
+ Object.keys(headers).filter((name) => EDGE_HEADER_PATTERN.test(name)).forEach((name) => Reflect.deleteProperty(headers, name));
18
+ }
15
19
  function isGlobalRequest(value) {
16
20
  if (Array.isArray(value)) {
17
21
  return value.includes("true");
@@ -29,6 +33,7 @@ export default defineEventHandler((event) => {
29
33
  const path = resolveProxyPath(prefix, url.pathname, url.search);
30
34
  event.node.req.headers["x-forwarded-host"] = url.host;
31
35
  event.node.req.headers[TENANT_HOST_HEADER] = url.host;
36
+ stripEdgeHeaders(event.node.req.headers);
32
37
  if (import.meta.dev && targetOrigin.hostname.endsWith(".test")) {
33
38
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
34
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/nuxt",
3
- "version": "0.7.9",
3
+ "version": "0.7.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/merkaly-io/nuxt.git"
@@ -28,49 +28,47 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@auth0/auth0-spa-js": "^2.21.1",
32
- "@bootstrap-vue-next/nuxt": "^0.45.5",
33
- "@nuxt/devtools": "^3.2.4",
34
- "@nuxt/eslint": "1.16.0",
35
- "@nuxt/eslint-config": "^1.16.0",
36
- "@nuxt/fonts": "0.14.0",
37
- "@nuxt/image": "^2.0.0",
38
- "@nuxt/kit": "^4.4.8",
39
- "@nuxtjs/i18n": "^10.4.0",
40
- "@nuxtjs/plausible": "^3.0.2",
41
- "@sentry/nuxt": "^10.59.0",
31
+ "@auth0/auth0-spa-js": "^2.29.0",
32
+ "@bootstrap-vue-next/nuxt": "^1.0.0",
33
+ "@nuxt/devtools": "^3.4.0",
34
+ "@nuxt/eslint": "1.17.0",
35
+ "@nuxt/eslint-config": "^1.17.0",
36
+ "@nuxt/fonts": "1.1.0",
37
+ "@nuxt/image": "^2.2.0",
38
+ "@nuxt/kit": "^4.6.0",
39
+ "@nuxtjs/i18n": "^10.6.0",
40
+ "@nuxtjs/plausible": "^4.0.0",
41
+ "@sentry/nuxt": "^11.9.0",
42
42
  "@types/node": "latest",
43
43
  "@types/vue-select": "^3.16.8",
44
- "@vueuse/components": "^14.3.0",
45
- "@vueuse/core": "^14.3.0",
46
- "@vueuse/integrations": "^14.3.0",
47
- "@vueuse/nuxt": "^14.3.0",
44
+ "@vueuse/components": "^15.0.0",
45
+ "@vueuse/core": "^15.0.0",
46
+ "@vueuse/integrations": "^15.0.0",
47
+ "@vueuse/nuxt": "^15.0.0",
48
48
  "bootstrap": "^5.3.8",
49
- "bootstrap-vue-next": "^0.45.5",
49
+ "bootstrap-vue-next": "^1.2.0",
50
50
  "change-case": "^5.4.4",
51
51
  "class-transformer": "^0.5.1",
52
52
  "class-validator": "^0.15.1",
53
- "eslint": "^10.5.0",
53
+ "eslint": "^10.13.0",
54
54
  "filesize": "^11.0.17",
55
55
  "gsap": "^3.15.0",
56
56
  "notivue": "^2.4.5",
57
- "nuxt": "^4.4.8",
57
+ "nuxt": "^4.6.2",
58
58
  "reflect-metadata": "^0.2.2",
59
- "sass": "^1.101.0",
59
+ "sass": "^1.106.1",
60
60
  "typescript": "~5.9.3",
61
61
  "v-money3": "^3.26.1",
62
62
  "vite-svg-loader": "^5.1.1",
63
- "vue": "^3.5.38",
64
- "vue-router": "^5.1.0",
63
+ "vue": "^3.5.43",
64
+ "vue-router": "^5.4.0",
65
65
  "vue-select": "4.0.0-beta.6"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@nuxt/module-builder": "^1.0.2",
69
- "@nuxt/schema": "^4.4.8",
70
- "@nuxt/test-utils": "^4.0.3",
69
+ "@nuxt/schema": "^4.6.0",
71
70
  "changelogen": "^0.6.2",
72
- "eslint-plugin-storybook": "^10.4.3",
73
- "vitest": "^4.1.8",
71
+ "eslint-plugin-storybook": "^10.6.0",
74
72
  "vue-tsc": "^3.3.4"
75
73
  },
76
74
  "optionalDependencies": {
@@ -83,8 +81,6 @@
83
81
  "build": "nuxt-module-build build",
84
82
  "build:stub": "nuxt-module-build build --stub",
85
83
  "lint": "eslint .",
86
- "test": "vitest run",
87
- "test:types": "vue-tsc --noEmit",
88
- "test:watch": "vitest watch"
84
+ "test:types": "vue-tsc --noEmit"
89
85
  }
90
86
  }