@witchcraft/nuxt-auth 0.6.0-beta.1 → 0.6.0-beta.3
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
|
@@ -3,94 +3,92 @@ type __VLS_Props = {
|
|
|
3
3
|
/** The link to the user's profile. Links to `/users/:username` (note this is not provided by the module). */
|
|
4
4
|
usernameLink?: (user: AuthUser) => string;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
username: string | null;
|
|
30
|
-
type?: "external" | undefined;
|
|
31
|
-
};
|
|
32
|
-
authRoutes: any;
|
|
33
|
-
}) => any;
|
|
34
|
-
} & {
|
|
35
|
-
user?: (props: {
|
|
36
|
-
user: {
|
|
37
|
-
id: string;
|
|
38
|
-
email: string;
|
|
39
|
-
emailVerified: boolean;
|
|
40
|
-
name: string;
|
|
41
|
-
image: string | null;
|
|
42
|
-
isRegistered: boolean;
|
|
43
|
-
createdAt: Date;
|
|
44
|
-
updatedAt: Date;
|
|
45
|
-
type: "local";
|
|
46
|
-
username: string;
|
|
47
|
-
} | {
|
|
48
|
-
id: string;
|
|
49
|
-
email: string;
|
|
50
|
-
emailVerified: boolean;
|
|
51
|
-
name: string;
|
|
52
|
-
image: string | null;
|
|
53
|
-
isRegistered: boolean;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
updatedAt: Date;
|
|
56
|
-
username: string | null;
|
|
57
|
-
type?: "external" | undefined;
|
|
58
|
-
};
|
|
59
|
-
}) => any;
|
|
60
|
-
} & {
|
|
61
|
-
'authenticated-unregistered'?: (props: {
|
|
62
|
-
user: {
|
|
63
|
-
id: string;
|
|
64
|
-
email: string;
|
|
65
|
-
emailVerified: boolean;
|
|
66
|
-
name: string;
|
|
67
|
-
image: string | null;
|
|
68
|
-
isRegistered: boolean;
|
|
69
|
-
createdAt: Date;
|
|
70
|
-
updatedAt: Date;
|
|
71
|
-
type: "local";
|
|
72
|
-
username: string;
|
|
73
|
-
} | {
|
|
74
|
-
id: string;
|
|
75
|
-
email: string;
|
|
76
|
-
emailVerified: boolean;
|
|
77
|
-
name: string;
|
|
78
|
-
image: string | null;
|
|
79
|
-
isRegistered: boolean;
|
|
80
|
-
createdAt: Date;
|
|
81
|
-
updatedAt: Date;
|
|
82
|
-
username: string | null;
|
|
83
|
-
type?: "external" | undefined;
|
|
84
|
-
};
|
|
85
|
-
authRoutes: any;
|
|
86
|
-
}) => any;
|
|
87
|
-
} & {
|
|
88
|
-
unauthenticated?: (props: {
|
|
89
|
-
authRoutes: any;
|
|
90
|
-
}) => any;
|
|
6
|
+
declare var __VLS_1: {
|
|
7
|
+
user: {
|
|
8
|
+
id: string;
|
|
9
|
+
email: string;
|
|
10
|
+
emailVerified: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
image: string | null;
|
|
13
|
+
isRegistered: boolean;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
type: "local";
|
|
17
|
+
username: string;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
email: string;
|
|
21
|
+
emailVerified: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
image: string | null;
|
|
24
|
+
isRegistered: boolean;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
username: string | null;
|
|
28
|
+
type?: "external" | undefined;
|
|
91
29
|
};
|
|
30
|
+
authRoutes: any;
|
|
31
|
+
}, __VLS_3: {
|
|
32
|
+
user: {
|
|
33
|
+
id: string;
|
|
34
|
+
email: string;
|
|
35
|
+
emailVerified: boolean;
|
|
36
|
+
name: string;
|
|
37
|
+
image: string | null;
|
|
38
|
+
isRegistered: boolean;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
type: "local";
|
|
42
|
+
username: string;
|
|
43
|
+
} | {
|
|
44
|
+
id: string;
|
|
45
|
+
email: string;
|
|
46
|
+
emailVerified: boolean;
|
|
47
|
+
name: string;
|
|
48
|
+
image: string | null;
|
|
49
|
+
isRegistered: boolean;
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
username: string | null;
|
|
53
|
+
type?: "external" | undefined;
|
|
54
|
+
};
|
|
55
|
+
}, __VLS_21: {
|
|
56
|
+
user: {
|
|
57
|
+
id: string;
|
|
58
|
+
email: string;
|
|
59
|
+
emailVerified: boolean;
|
|
60
|
+
name: string;
|
|
61
|
+
image: string | null;
|
|
62
|
+
isRegistered: boolean;
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
type: "local";
|
|
66
|
+
username: string;
|
|
67
|
+
} | {
|
|
68
|
+
id: string;
|
|
69
|
+
email: string;
|
|
70
|
+
emailVerified: boolean;
|
|
71
|
+
name: string;
|
|
72
|
+
image: string | null;
|
|
73
|
+
isRegistered: boolean;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
username: string | null;
|
|
77
|
+
type?: "external" | undefined;
|
|
78
|
+
};
|
|
79
|
+
authRoutes: any;
|
|
80
|
+
}, __VLS_37: {
|
|
81
|
+
authRoutes: any;
|
|
82
|
+
};
|
|
83
|
+
type __VLS_Slots = {} & {
|
|
84
|
+
'authenticated-registered'?: (props: typeof __VLS_1) => any;
|
|
85
|
+
} & {
|
|
86
|
+
user?: (props: typeof __VLS_3) => any;
|
|
87
|
+
} & {
|
|
88
|
+
'authenticated-unregistered'?: (props: typeof __VLS_21) => any;
|
|
89
|
+
} & {
|
|
90
|
+
unauthenticated?: (props: typeof __VLS_37) => any;
|
|
92
91
|
};
|
|
93
|
-
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
94
92
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
95
93
|
usernameLink: (user: AuthUser) => string;
|
|
96
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,94 +3,92 @@ type __VLS_Props = {
|
|
|
3
3
|
/** The link to the user's profile. Links to `/users/:username` (note this is not provided by the module). */
|
|
4
4
|
usernameLink?: (user: AuthUser) => string;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
username: string | null;
|
|
30
|
-
type?: "external" | undefined;
|
|
31
|
-
};
|
|
32
|
-
authRoutes: any;
|
|
33
|
-
}) => any;
|
|
34
|
-
} & {
|
|
35
|
-
user?: (props: {
|
|
36
|
-
user: {
|
|
37
|
-
id: string;
|
|
38
|
-
email: string;
|
|
39
|
-
emailVerified: boolean;
|
|
40
|
-
name: string;
|
|
41
|
-
image: string | null;
|
|
42
|
-
isRegistered: boolean;
|
|
43
|
-
createdAt: Date;
|
|
44
|
-
updatedAt: Date;
|
|
45
|
-
type: "local";
|
|
46
|
-
username: string;
|
|
47
|
-
} | {
|
|
48
|
-
id: string;
|
|
49
|
-
email: string;
|
|
50
|
-
emailVerified: boolean;
|
|
51
|
-
name: string;
|
|
52
|
-
image: string | null;
|
|
53
|
-
isRegistered: boolean;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
updatedAt: Date;
|
|
56
|
-
username: string | null;
|
|
57
|
-
type?: "external" | undefined;
|
|
58
|
-
};
|
|
59
|
-
}) => any;
|
|
60
|
-
} & {
|
|
61
|
-
'authenticated-unregistered'?: (props: {
|
|
62
|
-
user: {
|
|
63
|
-
id: string;
|
|
64
|
-
email: string;
|
|
65
|
-
emailVerified: boolean;
|
|
66
|
-
name: string;
|
|
67
|
-
image: string | null;
|
|
68
|
-
isRegistered: boolean;
|
|
69
|
-
createdAt: Date;
|
|
70
|
-
updatedAt: Date;
|
|
71
|
-
type: "local";
|
|
72
|
-
username: string;
|
|
73
|
-
} | {
|
|
74
|
-
id: string;
|
|
75
|
-
email: string;
|
|
76
|
-
emailVerified: boolean;
|
|
77
|
-
name: string;
|
|
78
|
-
image: string | null;
|
|
79
|
-
isRegistered: boolean;
|
|
80
|
-
createdAt: Date;
|
|
81
|
-
updatedAt: Date;
|
|
82
|
-
username: string | null;
|
|
83
|
-
type?: "external" | undefined;
|
|
84
|
-
};
|
|
85
|
-
authRoutes: any;
|
|
86
|
-
}) => any;
|
|
87
|
-
} & {
|
|
88
|
-
unauthenticated?: (props: {
|
|
89
|
-
authRoutes: any;
|
|
90
|
-
}) => any;
|
|
6
|
+
declare var __VLS_1: {
|
|
7
|
+
user: {
|
|
8
|
+
id: string;
|
|
9
|
+
email: string;
|
|
10
|
+
emailVerified: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
image: string | null;
|
|
13
|
+
isRegistered: boolean;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
type: "local";
|
|
17
|
+
username: string;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
email: string;
|
|
21
|
+
emailVerified: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
image: string | null;
|
|
24
|
+
isRegistered: boolean;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
username: string | null;
|
|
28
|
+
type?: "external" | undefined;
|
|
91
29
|
};
|
|
30
|
+
authRoutes: any;
|
|
31
|
+
}, __VLS_3: {
|
|
32
|
+
user: {
|
|
33
|
+
id: string;
|
|
34
|
+
email: string;
|
|
35
|
+
emailVerified: boolean;
|
|
36
|
+
name: string;
|
|
37
|
+
image: string | null;
|
|
38
|
+
isRegistered: boolean;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
type: "local";
|
|
42
|
+
username: string;
|
|
43
|
+
} | {
|
|
44
|
+
id: string;
|
|
45
|
+
email: string;
|
|
46
|
+
emailVerified: boolean;
|
|
47
|
+
name: string;
|
|
48
|
+
image: string | null;
|
|
49
|
+
isRegistered: boolean;
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
username: string | null;
|
|
53
|
+
type?: "external" | undefined;
|
|
54
|
+
};
|
|
55
|
+
}, __VLS_21: {
|
|
56
|
+
user: {
|
|
57
|
+
id: string;
|
|
58
|
+
email: string;
|
|
59
|
+
emailVerified: boolean;
|
|
60
|
+
name: string;
|
|
61
|
+
image: string | null;
|
|
62
|
+
isRegistered: boolean;
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
type: "local";
|
|
66
|
+
username: string;
|
|
67
|
+
} | {
|
|
68
|
+
id: string;
|
|
69
|
+
email: string;
|
|
70
|
+
emailVerified: boolean;
|
|
71
|
+
name: string;
|
|
72
|
+
image: string | null;
|
|
73
|
+
isRegistered: boolean;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
username: string | null;
|
|
77
|
+
type?: "external" | undefined;
|
|
78
|
+
};
|
|
79
|
+
authRoutes: any;
|
|
80
|
+
}, __VLS_37: {
|
|
81
|
+
authRoutes: any;
|
|
82
|
+
};
|
|
83
|
+
type __VLS_Slots = {} & {
|
|
84
|
+
'authenticated-registered'?: (props: typeof __VLS_1) => any;
|
|
85
|
+
} & {
|
|
86
|
+
user?: (props: typeof __VLS_3) => any;
|
|
87
|
+
} & {
|
|
88
|
+
'authenticated-unregistered'?: (props: typeof __VLS_21) => any;
|
|
89
|
+
} & {
|
|
90
|
+
unauthenticated?: (props: typeof __VLS_37) => any;
|
|
92
91
|
};
|
|
93
|
-
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
94
92
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
95
93
|
usernameLink: (user: AuthUser) => string;
|
|
96
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/nuxt-auth",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.3",
|
|
4
4
|
"description": "Nuxt module for logging.",
|
|
5
5
|
"repository": "witchcraftjs/nuxt-auth",
|
|
6
6
|
"license": "MIT",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"concurrently": "^9.2.1",
|
|
85
85
|
"cross-env": "^10.1.0",
|
|
86
86
|
"drizzle-orm": "^0.45.2",
|
|
87
|
-
"electron": "^
|
|
87
|
+
"electron": "^42.0.0",
|
|
88
88
|
"eslint": "^9.37.0",
|
|
89
89
|
"husky": "^9.1.7",
|
|
90
90
|
"nuxt": "4.6.1",
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
"test": "pnpm --dir playground test",
|
|
125
125
|
"test:unit": "pnpm --dir playground test:unit",
|
|
126
126
|
"test:unit+server": "pnpm --dir playground test:unit+server",
|
|
127
|
+
"test:ci": "pnpm --dir playground test:ci",
|
|
127
128
|
"test:e2e": "pnpm --dir playground test:e2e",
|
|
128
129
|
"test:e2e:full": "pnpm --dir playground test:e2e:full",
|
|
129
130
|
"test:electron:build": "pnpm --dir playground test:electron:build",
|