@mframework/layer-auth 0.0.4 → 0.0.6

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.
@@ -0,0 +1,6 @@
1
+ export default function useLocalePath() {
2
+ // Minimal framework-agnostic shim for `useLocalePath`.
3
+ // Returns an identity function for paths. Consumers can provide
4
+ // a runtime adapter if they need locale-aware routing.
5
+ return (to?: string) => (to ?? '/')
6
+ }
@@ -34,7 +34,8 @@
34
34
 
35
35
  <script setup>
36
36
  import { useHead } from 'nuxt/app'
37
- import { definePageMeta, useLocalePath, useAuth } from '#imports'
37
+ import { definePageMeta, useAuth } from '#imports'
38
+ import useLocalePath from '../composables/useLocalePath'
38
39
  import { z } from 'zod'
39
40
  import { reactive, ref } from 'vue'
40
41
 
@@ -34,7 +34,8 @@ import { definePageMeta } from '#imports'
34
34
  import { z } from 'zod'
35
35
  import { reactive, ref } from 'vue'
36
36
  import { useAuth } from '../composables/useAuth'
37
- import { useLocalePath, useI18n } from 'vue-i18n'
37
+ import { useI18n } from 'vue-i18n'
38
+ import useLocalePath from '../composables/useLocalePath'
38
39
 
39
40
  definePageMeta({
40
41
  auth: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mframework/layer-auth",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "The authentication layer for M Framework applications.",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",