@better-auth/i18n 1.7.15 → 1.7.16
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/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as TranslationDictionary, T as LocaleDetectionStrategy, w as I18nOptions } from "./index-BQCZ4CCj.mjs";
|
|
2
2
|
import { GenericEndpointContext } from "@better-auth/core";
|
|
3
|
-
//#region ../../node_modules/.pnpm/better-call@1.4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.5_zod@4.5.4/node_modules/better-call/dist/standard-schema.d.mts
|
|
4
4
|
//#region src/standard-schema.d.ts
|
|
5
5
|
/** The Standard Schema interface. */
|
|
6
6
|
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
@@ -58,7 +58,7 @@ declare namespace StandardSchemaV1 {
|
|
|
58
58
|
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region ../../node_modules/.pnpm/better-call@1.4.
|
|
61
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.5_zod@4.5.4/node_modules/better-call/dist/error.d.mts
|
|
62
62
|
declare const statusCodes: {
|
|
63
63
|
OK: number;
|
|
64
64
|
CREATED: number;
|
|
@@ -136,7 +136,7 @@ declare const APIError: new (status?: Status | "OK" | "CREATED" | "ACCEPTED" | "
|
|
|
136
136
|
errorStack: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
//#endregion
|
|
139
|
-
//#region ../../node_modules/.pnpm/better-call@1.4.
|
|
139
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.5_zod@4.5.4/node_modules/better-call/dist/openapi.d.mts
|
|
140
140
|
//#region src/openapi.d.ts
|
|
141
141
|
type OpenAPISchemaType = "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
142
142
|
interface OpenAPIParameter {
|
|
@@ -158,7 +158,7 @@ interface OpenAPIParameter {
|
|
|
158
158
|
} | undefined;
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
|
-
//#region ../../node_modules/.pnpm/better-call@1.4.
|
|
161
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.5_zod@4.5.4/node_modules/better-call/dist/endpoint.d.mts
|
|
162
162
|
//#region src/endpoint.d.ts
|
|
163
163
|
interface EndpointBaseOptions {
|
|
164
164
|
/**
|
|
@@ -372,7 +372,7 @@ type EndpointBodyMethodOptions = {
|
|
|
372
372
|
};
|
|
373
373
|
type EndpointOptions = EndpointBaseOptions & EndpointBodyMethodOptions;
|
|
374
374
|
//#endregion
|
|
375
|
-
//#region ../../node_modules/.pnpm/better-call@1.4.
|
|
375
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.5_zod@4.5.4/node_modules/better-call/dist/context.d.mts
|
|
376
376
|
type InferBodyInput<Options extends EndpointOptions | MiddlewareOptions, Body = Options["metadata"] extends {
|
|
377
377
|
$Infer: {
|
|
378
378
|
body: infer B;
|
|
@@ -402,7 +402,7 @@ type InferHeadersInput<Option extends EndpointOptions | MiddlewareOptions> = Opt
|
|
|
402
402
|
headers?: HeadersInit | undefined;
|
|
403
403
|
};
|
|
404
404
|
//#endregion
|
|
405
|
-
//#region ../../node_modules/.pnpm/better-call@1.4.
|
|
405
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.5_zod@4.5.4/node_modules/better-call/dist/middleware.d.mts
|
|
406
406
|
//#region src/middleware.d.ts
|
|
407
407
|
interface MiddlewareOptions extends Omit<EndpointOptions, "method"> {}
|
|
408
408
|
type MiddlewareInputContext<Options extends MiddlewareOptions> = InferBodyInput<Options> & InferQueryInput<Options> & InferRequestInput<Options> & InferHeadersInput<Options> & {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as i18n } from "./index-
|
|
1
|
+
import { t as i18n } from "./index-Jg5A1yth.mjs";
|
|
2
2
|
import { E as TranslationDictionary, T as LocaleDetectionStrategy, t as index_d_exports, w as I18nOptions } from "./index-BQCZ4CCj.mjs";
|
|
3
3
|
export { type I18nOptions, type LocaleDetectionStrategy, type TranslationDictionary, i18n, index_d_exports as locales };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-CVbZQOHF.mjs";
|
|
2
2
|
import { t as locales_exports } from "./locales-Bf12c6T-.mjs";
|
|
3
3
|
import { APIError, createAuthMiddleware, isAPIError } from "better-auth/api";
|
|
4
4
|
import { parseCookies } from "better-auth/cookies";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/i18n",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.16",
|
|
4
4
|
"description": "i18n plugin for Better Auth - translate error messages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsdown": "0.23.1",
|
|
62
|
-
"@better-auth/core": "1.7.
|
|
63
|
-
"better-auth": "1.7.
|
|
62
|
+
"@better-auth/core": "1.7.16",
|
|
63
|
+
"better-auth": "1.7.16"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@better-auth/core": "^1.7.
|
|
67
|
-
"better-auth": "^1.7.
|
|
66
|
+
"@better-auth/core": "^1.7.16",
|
|
67
|
+
"better-auth": "^1.7.16"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsdown",
|