trails/packages/db/src
Ullrich Schäfer f0afa8a4a7
Fix withDb: detect DataWithResponseInit from data() throws
React Router's data() throw creates a DataWithResponseInit object
(type + data + init), not a Response or ErrorResponseImpl.
Check for type === "DataWithResponseInit" to re-throw correctly.

Verified: nonexistent session → 404, DB down → 503.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 00:11:48 +01:00
..
schema Update auth spec: passkeys + magic links, no passwords 2026-03-23 17:24:27 +01:00
index.ts Fix withDb: detect DataWithResponseInit from data() throws 2026-03-25 00:11:48 +01:00