@vatts/auth 1.2.4 → 1.2.5

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.
@@ -1,19 +1,24 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  /**
3
3
  * This file is part of the Vatts.js Project.
4
4
  * Copyright (c) 2026 mfraz
5
5
  */
6
6
  import { useSessionProviderLogic } from './session';
7
7
 
8
- // Definição das props com valores padrão
9
- const props = withDefaults(defineProps<{
10
- basePath?: string;
11
- refetchInterval?: number;
12
- refetchOnWindowFocus?: boolean;
13
- }>(), {
14
- basePath: '/api/auth',
15
- refetchInterval: 0,
16
- refetchOnWindowFocus: true
8
+ // Definição das props com valores padrão (Sintaxe JavaScript)
9
+ const props = defineProps({
10
+ basePath: {
11
+ type: String,
12
+ default: '/api/auth'
13
+ },
14
+ refetchInterval: {
15
+ type: Number,
16
+ default: 0
17
+ },
18
+ refetchOnWindowFocus: {
19
+ type: Boolean,
20
+ default: true
21
+ }
17
22
  });
18
23
 
19
24
  // Inicializa a lógica do provider passando as props reativas
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vatts/auth",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Authentication package for Vatts.js framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "react": "^19.2.0",
51
51
  "react-dom": "^19.2.0",
52
52
  "vue": "^3.5.27",
53
- "vatts": "^1.2.4"
53
+ "vatts": "^1.2.5"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "react-dom": {