@umituz/web-hono 1.11.0 → 1.13.0
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/package.json +3 -2
- package/src/auth.ts +5 -1
- package/src/etag.ts +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-hono",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "API backend platform for Cloudflare Workers + Neon Postgres: createApi skeleton + error envelope layer, full-CRUD resource factory (opt-in create/remove, list params), schema→client type bridge (ClientRow), apiFetch/apiWrite client, reactive fetch-backed store (+React hooks), better-auth server integration (tables/getter/mount/session helpers), and db lifecycle scripts (reset / snapshot / seed)",
|
|
3
|
+
"version": "1.13.0",
|
|
4
|
+
"description": "API backend platform for Cloudflare Workers + Neon Postgres: createApi skeleton + error envelope layer, full-CRUD resource factory (opt-in create/remove, list params), schema→client type bridge (ClientRow), apiFetch/apiWrite client, reactive fetch-backed store (+React hooks), better-auth server integration (tables/getter/mount/session helpers), weak-compare If-None-Match matcher (matchesEtag), and db lifecycle scripts (reset / snapshot / seed)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
7
7
|
"types": "./src/index.ts",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"./store/react": "./src/store-react.ts",
|
|
17
17
|
"./lifecycle": "./src/lifecycle.ts",
|
|
18
18
|
"./auth": "./src/auth.ts",
|
|
19
|
+
"./etag": "./src/etag.ts",
|
|
19
20
|
"./package.json": "./package.json"
|
|
20
21
|
},
|
|
21
22
|
"scripts": {
|
package/src/auth.ts
CHANGED
|
@@ -110,7 +110,11 @@ function initAuth(env: AuthEnv, opts: AuthOptions<AuthEnv>) {
|
|
|
110
110
|
enabled: true,
|
|
111
111
|
sendResetPassword: async (data) => {
|
|
112
112
|
const send =
|
|
113
|
-
opts.sendResetPassword ??
|
|
113
|
+
opts.sendResetPassword ??
|
|
114
|
+
(({ user, url, token }) => {
|
|
115
|
+
const link = `${new URL(url).origin}/reset-password?token=${token}`;
|
|
116
|
+
console.log(`[password-reset] ${user.email} ${link}`);
|
|
117
|
+
});
|
|
114
118
|
await send({ user: data.user, url: data.url, token: data.token });
|
|
115
119
|
},
|
|
116
120
|
onPasswordReset: async ({ user }) => {
|