chore: bump better-call (#7906)

This commit is contained in:
Alex Yang
2026-02-11 17:31:04 +08:00
committed by GitHub
parent 68f70b7b14
commit 5bd49694a0
6 changed files with 61 additions and 27 deletions

View File

@@ -725,7 +725,7 @@ describe("custom storeOTP", async () => {
statusCode: 400,
status: "BAD_REQUEST",
body: {
code: "OTP_IS_HASHED_CANNOT_RETURN_THE_PLAIN_TEXT_OTP",
message: "OTP is hashed, cannot return the plain text OTP",
},
});
});
@@ -1014,7 +1014,7 @@ describe("custom storeOTP", async () => {
statusCode: 400,
status: "BAD_REQUEST",
body: {
code: "OTP_IS_HASHED_CANNOT_RETURN_THE_PLAIN_TEXT_OTP",
message: "OTP is hashed, cannot return the plain text OTP",
},
});
});

View File

@@ -53,13 +53,13 @@ export const emailOTP = (options: EmailOTPOptions) => {
async sendVerificationEmail(data, request) {
await ctx.runInBackgroundOrAwait(
sendVerificationOTPAction({
//@ts-expect-error - we need to pass the context
context: ctx,
request: request,
body: {
email: data.user.email,
type: "email-verification",
},
//@ts-expect-error
ctx,
}),
);

View File

@@ -713,11 +713,10 @@ export const getFullOrganization = <O extends OrganizationOptions>(
});
if (!isMember) {
await adapter.setActiveOrganization(session.session.token, null, ctx);
throw new APIError("FORBIDDEN", {
message:
ORGANIZATION_ERROR_CODES.USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION
.message,
});
throw APIError.from(
"FORBIDDEN",
ORGANIZATION_ERROR_CODES.USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION,
);
}
type OrganizationReturn = O["teams"] extends { enabled: true }

View File

@@ -102,7 +102,7 @@ const createTestInstance = (scimOptions?: SCIMOptions) => {
};
};
const createSqlTestInstance = async (
const _createSqlTestInstance = async (
testWith: "sqlite" | "postgres",
scimOptions?: SCIMOptions,
) => {
@@ -2012,8 +2012,7 @@ describe("SCIM", () => {
});
it("should return an empty list when no users have been provisioned or belong to the organization", async () => {
const { auth, getSCIMToken, registerOrganization } =
await createSqlTestInstance("postgres");
const { auth, getSCIMToken, registerOrganization } = createTestInstance();
const scimToken = await getSCIMToken();
const createUser = (userName: string, scimToken: string) => {

66
pnpm-lock.yaml generated
View File

@@ -13,8 +13,8 @@ catalogs:
specifier: 1.1.21
version: 1.1.21
better-call:
specifier: 1.2.1
version: 1.2.1
specifier: 1.3.1
version: 1.3.1
tsdown:
specifier: ^0.20.1
version: 0.20.1
@@ -1355,7 +1355,7 @@ importers:
version: 5.22.0(prisma@5.22.0)
better-call:
specifier: 'catalog:'
version: 1.2.1(zod@4.3.6)
version: 1.3.1(zod@4.3.6)
defu:
specifier: ^6.1.4
version: 6.1.4
@@ -1592,7 +1592,7 @@ importers:
version: 1.1.21
better-call:
specifier: 'catalog:'
version: 1.2.1(zod@4.3.6)
version: 1.3.1(zod@4.3.6)
jose:
specifier: ^6.1.0
version: 6.1.3
@@ -1668,7 +1668,7 @@ importers:
version: 1.1.21
better-call:
specifier: 'catalog:'
version: 1.2.1(zod@4.3.6)
version: 1.3.1(zod@4.3.6)
zod:
specifier: ^4.3.6
version: 4.3.6
@@ -1882,7 +1882,7 @@ importers:
version: link:../better-auth
better-call:
specifier: 'catalog:'
version: 1.2.1(zod@4.3.6)
version: 1.3.1(zod@4.3.6)
zod:
specifier: ^4.3.6
version: 4.3.6
@@ -1932,7 +1932,7 @@ importers:
version: link:../better-auth
better-call:
specifier: 'catalog:'
version: 1.2.1(zod@4.3.6)
version: 1.3.1(zod@4.3.6)
body-parser:
specifier: ^2.2.2
version: 2.2.2
@@ -1963,7 +1963,7 @@ importers:
version: link:../better-auth
better-call:
specifier: 'catalog:'
version: 1.2.1(zod@4.3.6)
version: 1.3.1(zod@4.3.6)
stripe:
specifier: ^20.2.0
version: 20.2.0(@types/node@25.2.0)
@@ -8632,6 +8632,14 @@ packages:
zod:
optional: true
better-call@1.3.1:
resolution: {integrity: sha512-Wtv4Z/pNTaG3KBpba6TEBAIRm0c6GyxlwsvnDiI8eDNdx+/OrLOc09EU4BtL8a/RSfEJcSlYpnn0W9w9mMBIVg==}
peerDependencies:
zod: ^4.0.0
peerDependenciesMeta:
zod:
optional: true
better-opn@3.0.2:
resolution: {integrity: sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==}
engines: {node: '>=12.0.0'}
@@ -9147,6 +9155,9 @@ packages:
confbox@0.2.2:
resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==}
confbox@0.2.4:
resolution: {integrity: sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==}
config-chain@1.1.13:
resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
@@ -14651,6 +14662,11 @@ packages:
engines: {node: '>=10'}
hasBin: true
semver@7.7.4:
resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}
engines: {node: '>=10'}
hasBin: true
send@0.19.2:
resolution: {integrity: sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==}
engines: {node: '>= 0.8.0'}
@@ -14703,6 +14719,9 @@ packages:
set-cookie-parser@2.7.2:
resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==}
set-cookie-parser@3.0.1:
resolution: {integrity: sha512-n7Z7dXZhJbwuAHhNzkTti6Aw9QDDjZtm3JTpTGATIdNzdQz5GuFs22w90BcvF4INfnrL5xrX3oGsuqO5Dx3A1Q==}
setimmediate@1.0.5:
resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==}
@@ -20284,7 +20303,7 @@ snapshots:
image-size: 2.0.2
js-image-generator: 1.0.4
parse-gitignore: 2.0.0
semver: 7.7.3
semver: 7.7.4
tmp-promise: 3.0.3
uuid: 13.0.0
write-file-atomic: 5.0.1
@@ -20581,7 +20600,7 @@ snapshots:
'@opentelemetry/propagator-b3': 1.30.1(@opentelemetry/api@1.9.0)
'@opentelemetry/propagator-jaeger': 1.30.1(@opentelemetry/api@1.9.0)
'@opentelemetry/sdk-trace-base': 1.30.1(@opentelemetry/api@1.9.0)
semver: 7.7.3
semver: 7.7.4
optional: true
'@opentelemetry/semantic-conventions@1.28.0':
@@ -22102,7 +22121,7 @@ snapshots:
execa: 5.1.1
node-stream-zip: 1.15.0
ora: 5.4.1
semver: 7.7.3
semver: 7.7.4
wcwidth: 1.0.1
yaml: 2.8.2
transitivePeerDependencies:
@@ -22161,7 +22180,7 @@ snapshots:
mime: 2.6.0
ora: 5.4.1
prompts: 2.4.2
semver: 7.7.3
semver: 7.7.4
optional: true
'@react-native-community/cli-types@20.0.2':
@@ -22185,7 +22204,7 @@ snapshots:
fs-extra: 8.1.0
graceful-fs: 4.2.11
prompts: 2.4.2
semver: 7.7.3
semver: 7.7.4
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -25077,6 +25096,15 @@ snapshots:
optionalDependencies:
zod: 4.3.6
better-call@1.3.1(zod@4.3.6):
dependencies:
'@better-auth/utils': 0.3.1
'@better-fetch/fetch': 1.1.21
rou3: 0.7.12
set-cookie-parser: 3.0.1
optionalDependencies:
zod: 4.3.6
better-opn@3.0.2:
dependencies:
open: 8.4.2
@@ -25279,7 +25307,7 @@ snapshots:
c12@3.1.0(magicast@0.3.5):
dependencies:
chokidar: 4.0.3
confbox: 0.2.2
confbox: 0.2.4
defu: 6.1.4
dotenv: 16.6.1
exsolve: 1.0.8
@@ -25297,7 +25325,7 @@ snapshots:
c12@3.1.0(magicast@0.5.1):
dependencies:
chokidar: 4.0.3
confbox: 0.2.2
confbox: 0.2.4
defu: 6.1.4
dotenv: 16.6.1
exsolve: 1.0.8
@@ -25757,6 +25785,9 @@ snapshots:
confbox@0.2.2: {}
confbox@0.2.4:
optional: true
config-chain@1.1.13:
dependencies:
ini: 1.3.8
@@ -33200,6 +33231,9 @@ snapshots:
semver@7.7.3: {}
semver@7.7.4:
optional: true
send@0.19.2:
dependencies:
debug: 2.6.9
@@ -33281,6 +33315,8 @@ snapshots:
set-cookie-parser@2.7.2: {}
set-cookie-parser@3.0.1: {}
setimmediate@1.0.5: {}
setprototypeof@1.2.0: {}

View File

@@ -10,7 +10,7 @@ blockExoticSubdeps: true
catalog:
'@better-auth/utils': 0.3.1
'@better-fetch/fetch': 1.1.21
better-call: 1.2.1
better-call: 1.3.1
tsdown: ^0.20.1
typescript: ^5.9.3