@factiii/auth 0.5.2 → 0.5.4
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/bin/init.mjs +449 -64
- package/dist/{chunk-EHI4P63M.mjs → chunk-KUYH4DBN.mjs} +8 -0
- package/dist/index.d.mts +228 -16
- package/dist/index.d.ts +228 -16
- package/dist/index.js +678 -381
- package/dist/index.mjs +678 -382
- package/dist/validators.d.mts +1 -1
- package/dist/validators.d.ts +1 -1
- package/dist/validators.mjs +1 -1
- package/package.json +24 -3
- package/dist/{hooks-BXNxNK4S.d.mts → hooks-yHGJ7C6_.d.mts} +2 -2
- package/dist/{hooks-BXNxNK4S.d.ts → hooks-yHGJ7C6_.d.ts} +2 -2
package/dist/validators.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-
|
|
2
|
+
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.mjs';
|
package/dist/validators.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-
|
|
2
|
+
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.js';
|
package/dist/validators.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factiii/auth",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"totp",
|
|
18
18
|
"session",
|
|
19
19
|
"prisma",
|
|
20
|
+
"drizzle",
|
|
20
21
|
"typescript"
|
|
21
22
|
],
|
|
22
23
|
"repository": {
|
|
@@ -57,6 +58,9 @@
|
|
|
57
58
|
"lint:fix": "eslint src --fix",
|
|
58
59
|
"format": "prettier --check src",
|
|
59
60
|
"format:fix": "prettier --write src",
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
"seed": "tsx e2e/seed.ts",
|
|
60
64
|
"clean": "rm -rf dist node_modules/.cache .turbo",
|
|
61
65
|
"prepublishOnly": "npm run build",
|
|
62
66
|
"e2e": "pnpm e2e:db:up && playwright test --reporter=list; pnpm e2e:db:down",
|
|
@@ -74,12 +78,16 @@
|
|
|
74
78
|
},
|
|
75
79
|
"peerDependencies": {
|
|
76
80
|
"@prisma/client": ">=5.0.0",
|
|
81
|
+
"drizzle-orm": ">=0.30.0",
|
|
77
82
|
"superjson": ">=1.0.0",
|
|
78
83
|
"zod": ">=3.20.0"
|
|
79
84
|
},
|
|
80
85
|
"peerDependenciesMeta": {
|
|
81
86
|
"@prisma/client": {
|
|
82
|
-
"optional":
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"drizzle-orm": {
|
|
90
|
+
"optional": true
|
|
83
91
|
},
|
|
84
92
|
"superjson": {
|
|
85
93
|
"optional": false
|
|
@@ -106,6 +114,7 @@
|
|
|
106
114
|
"@typescript-eslint/parser": "^7.18.0",
|
|
107
115
|
"@vitejs/plugin-react": "^5.1.3",
|
|
108
116
|
"better-sqlite3": "^12.6.2",
|
|
117
|
+
"drizzle-orm": "^0.44.0",
|
|
109
118
|
"eslint": "^8.57.0",
|
|
110
119
|
"pg": "^8.18.0",
|
|
111
120
|
"prettier": "^3.8.1",
|
|
@@ -118,10 +127,22 @@
|
|
|
118
127
|
"tsx": "^4.21.0",
|
|
119
128
|
"typescript": "5.9.3",
|
|
120
129
|
"vite": "^7.3.1",
|
|
130
|
+
"vitest": "^4.1.0",
|
|
121
131
|
"zod": "3.24.2"
|
|
122
132
|
},
|
|
123
133
|
"engines": {
|
|
124
134
|
"node": ">=18.0.0"
|
|
125
135
|
},
|
|
126
|
-
"packageManager": "pnpm@10.26.0"
|
|
136
|
+
"packageManager": "pnpm@10.26.0",
|
|
137
|
+
"pnpm": {
|
|
138
|
+
"overrides": {
|
|
139
|
+
"hono": ">=4.12.7",
|
|
140
|
+
"@hono/node-server": ">=1.19.10",
|
|
141
|
+
"minimatch": ">=9.0.7",
|
|
142
|
+
"lodash": ">=4.17.23",
|
|
143
|
+
"flatted": ">=3.4.0",
|
|
144
|
+
"rollup": ">=4.59.0",
|
|
145
|
+
"ajv": ">=6.14.0"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
127
148
|
}
|
|
@@ -8,12 +8,12 @@ declare const signupSchema: z.ZodObject<{
|
|
|
8
8
|
email: z.ZodString;
|
|
9
9
|
password: z.ZodEffects<z.ZodString, string, string>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
email: string;
|
|
12
11
|
username: string;
|
|
12
|
+
email: string;
|
|
13
13
|
password: string;
|
|
14
14
|
}, {
|
|
15
|
-
email: string;
|
|
16
15
|
username: string;
|
|
16
|
+
email: string;
|
|
17
17
|
password: string;
|
|
18
18
|
}>;
|
|
19
19
|
/**
|
|
@@ -8,12 +8,12 @@ declare const signupSchema: z.ZodObject<{
|
|
|
8
8
|
email: z.ZodString;
|
|
9
9
|
password: z.ZodEffects<z.ZodString, string, string>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
email: string;
|
|
12
11
|
username: string;
|
|
12
|
+
email: string;
|
|
13
13
|
password: string;
|
|
14
14
|
}, {
|
|
15
|
-
email: string;
|
|
16
15
|
username: string;
|
|
16
|
+
email: string;
|
|
17
17
|
password: string;
|
|
18
18
|
}>;
|
|
19
19
|
/**
|