chore: update better-call package version to ^1.0.6 (#2159)

This commit is contained in:
Bereket Engida
2025-04-07 01:32:45 +03:00
committed by GitHub
parent 6a0898fa88
commit 382f51f97d
4 changed files with 13 additions and 13 deletions

View File

@@ -78,7 +78,7 @@ export function toAuthEndpoints<E extends Record<string, AuthEndpoint>>(
internalContext.asResponse = false;
internalContext.returnHeaders = true;
const result = (await endpoint(internalContext as any).catch((e) => {
const result = (await endpoint(internalContext as any).catch((e: any) => {
if (e instanceof APIError) {
/**
* API Errors from response are caught

View File

@@ -289,11 +289,11 @@ export const username = (options?: UsernameOptions) => {
context.path === "/update-user"
);
},
async handler(ctx) {
handler: createAuthMiddleware(async (ctx) => {
if (!ctx.body.displayUsername && ctx.body.username) {
ctx.body.displayUsername = ctx.body.username;
}
},
}),
},
],
},

18
pnpm-lock.yaml generated
View File

@@ -10,8 +10,8 @@ catalogs:
specifier: ^1.1.18
version: 1.1.18
better-call:
specifier: ^1.0.5
version: 1.0.5
specifier: ^1.0.6
version: 1.0.6
typescript:
specifier: ^5.7.3
version: 5.8.2
@@ -191,7 +191,7 @@ importers:
version: link:../../packages/better-auth
better-call:
specifier: 'catalog:'
version: 1.0.5
version: 1.0.6
better-sqlite3:
specifier: ^11.6.0
version: 11.8.1
@@ -1423,7 +1423,7 @@ importers:
version: 13.1.1
better-call:
specifier: 'catalog:'
version: 1.0.5
version: 1.0.6
defu:
specifier: ^6.1.4
version: 6.1.4
@@ -1611,7 +1611,7 @@ importers:
version: 1.1.18
better-call:
specifier: 'catalog:'
version: 1.0.5
version: 1.0.6
zod:
specifier: ^3.23.8
version: 3.24.2
@@ -1658,7 +1658,7 @@ importers:
version: 7.6.12
better-call:
specifier: 'catalog:'
version: 1.0.5
version: 1.0.6
better-sqlite3:
specifier: ^11.6.0
version: 11.8.1
@@ -10350,8 +10350,8 @@ packages:
resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==}
engines: {node: '>= 0.8'}
better-call@1.0.5:
resolution: {integrity: sha512-rAT73GWIJ8LbSP8Y3BdJnY1hwAiQPRRmUJ4R3YVhcVGS927l3eTXG5o5TD6Bv6je6ygjdx6iVq3/BU49eGUCHg==}
better-call@1.0.6:
resolution: {integrity: sha512-P/ZTQCj2p37VegMWDIUNtnfY8KI+i/Rp3K7094WQQVGyvoWP2KefYQ4MQMp//3fLEZkGD34XfmugWTmEO8uhIQ==}
better-opn@3.0.2:
resolution: {integrity: sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==}
@@ -33975,7 +33975,7 @@ snapshots:
dependencies:
safe-buffer: 5.1.2
better-call@1.0.5:
better-call@1.0.6:
dependencies:
'@better-fetch/fetch': 1.1.18
rou3: 0.5.1

View File

@@ -11,7 +11,7 @@ catalogs:
react: 18.3.1
react-dom: 18.3.1
catalog:
"better-call": "^1.0.5"
"better-call": "^1.0.6"
"@better-fetch/fetch": "^1.1.18"
"unbuild": "^3.5.0"
"typescript": "^5.7.3"