@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.
@@ -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-BXNxNK4S.mjs';
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';
@@ -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-BXNxNK4S.js';
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';
@@ -17,7 +17,7 @@ import {
17
17
  twoFaResetVerifySchema,
18
18
  twoFaVerifySchema,
19
19
  verifyEmailSchema
20
- } from "./chunk-EHI4P63M.mjs";
20
+ } from "./chunk-KUYH4DBN.mjs";
21
21
  export {
22
22
  biometricVerifySchema,
23
23
  changePasswordSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factiii/auth",
3
- "version": "0.5.2",
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": false
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
  /**