@better-auth/core
Advanced tools
@@ -5,3 +5,3 @@ //#region src/context/global.ts | ||
| const __context = {}; | ||
| const __betterAuthVersion = "1.6.19"; | ||
| const __betterAuthVersion = "1.6.20"; | ||
| /** | ||
@@ -8,0 +8,0 @@ * We store context instance in the globalThis. |
@@ -10,3 +10,10 @@ import { APIErrorCode, BASE_ERROR_CODES } from "./codes.mjs"; | ||
| } | ||
| type BaseAPIErrorInstance = InstanceType<typeof APIError$1>; | ||
| declare class APIError extends APIError$1 { | ||
| status: BaseAPIErrorInstance["status"]; | ||
| body: BaseAPIErrorInstance["body"]; | ||
| headers: BaseAPIErrorInstance["headers"]; | ||
| statusCode: BaseAPIErrorInstance["statusCode"]; | ||
| message: string; | ||
| errorStack: BaseAPIErrorInstance["errorStack"]; | ||
| constructor(...args: ConstructorParameters<typeof APIError$1>); | ||
@@ -13,0 +20,0 @@ static fromStatus(status: ConstructorParameters<typeof APIError$1>[0], body?: ConstructorParameters<typeof APIError$1>[1]): APIError; |
@@ -5,3 +5,3 @@ import { ATTR_HTTP_RESPONSE_STATUS_CODE } from "./attributes.mjs"; | ||
| const INSTRUMENTATION_SCOPE = "better-auth"; | ||
| const INSTRUMENTATION_VERSION = "1.6.19"; | ||
| const INSTRUMENTATION_VERSION = "1.6.20"; | ||
| /** | ||
@@ -8,0 +8,0 @@ * Better-auth uses `throw ctx.redirect(url)` for flow control (e.g. OAuth |
+1
-1
| { | ||
| "name": "@better-auth/core", | ||
| "version": "1.6.19", | ||
| "version": "1.6.20", | ||
| "description": "The most comprehensive authentication framework for TypeScript.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -14,3 +14,12 @@ import { APIError as BaseAPIError } from "better-call/error"; | ||
| type BaseAPIErrorInstance = InstanceType<typeof BaseAPIError>; | ||
| export class APIError extends BaseAPIError { | ||
| declare status: BaseAPIErrorInstance["status"]; | ||
| declare body: BaseAPIErrorInstance["body"]; | ||
| declare headers: BaseAPIErrorInstance["headers"]; | ||
| declare statusCode: BaseAPIErrorInstance["statusCode"]; | ||
| declare message: string; | ||
| declare errorStack: BaseAPIErrorInstance["errorStack"]; | ||
| constructor(...args: ConstructorParameters<typeof BaseAPIError>) { | ||
@@ -17,0 +26,0 @@ super(...args); |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1012994
0.06%21901
0.03%