@better-auth/i18n 1.7.0-beta.3 → 1.7.0-beta.5
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,7 +1,7 @@
|
|
|
1
1
|
import { E as TranslationDictionary, T as LocaleDetectionStrategy, w as I18nOptions } from "./index-CYmtmQve.mjs";
|
|
2
2
|
import { GenericEndpointContext } from "@better-auth/core";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
4
|
+
//#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/standard-schema.d.mts
|
|
5
5
|
//#region src/standard-schema.d.ts
|
|
6
6
|
/** The Standard Schema interface. */
|
|
7
7
|
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
@@ -59,7 +59,7 @@ declare namespace StandardSchemaV1 {
|
|
|
59
59
|
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
60
60
|
} //#endregion
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
62
|
+
//#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/error.d.mts
|
|
63
63
|
declare const statusCodes: {
|
|
64
64
|
OK: number;
|
|
65
65
|
CREATED: number;
|
|
@@ -137,7 +137,7 @@ declare const APIError: new (status?: Status | "OK" | "CREATED" | "ACCEPTED" | "
|
|
|
137
137
|
errorStack: string | undefined;
|
|
138
138
|
}; //#endregion
|
|
139
139
|
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
140
|
+
//#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/openapi.d.mts
|
|
141
141
|
//#region src/openapi.d.ts
|
|
142
142
|
type OpenAPISchemaType = "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
143
143
|
interface OpenAPIParameter {
|
|
@@ -159,7 +159,7 @@ interface OpenAPIParameter {
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
162
|
+
//#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/endpoint.d.mts
|
|
163
163
|
//#region src/endpoint.d.ts
|
|
164
164
|
interface EndpointBaseOptions {
|
|
165
165
|
/**
|
|
@@ -376,7 +376,7 @@ type EndpointBodyMethodOptions = {
|
|
|
376
376
|
};
|
|
377
377
|
type EndpointOptions = EndpointBaseOptions & EndpointBodyMethodOptions;
|
|
378
378
|
//#endregion
|
|
379
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
379
|
+
//#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/middleware.d.mts
|
|
380
380
|
//#region src/middleware.d.ts
|
|
381
381
|
interface MiddlewareOptions extends Omit<EndpointOptions, "method"> {}
|
|
382
382
|
type MiddlewareInputContext<Options extends MiddlewareOptions> = InferBodyInput<Options> & InferQueryInput<Options> & InferRequestInput<Options> & InferHeadersInput<Options> & {
|
|
@@ -388,7 +388,7 @@ type Middleware<Options extends MiddlewareOptions = MiddlewareOptions, Handler e
|
|
|
388
388
|
options: Options;
|
|
389
389
|
}; //#endregion
|
|
390
390
|
//#endregion
|
|
391
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
391
|
+
//#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/context.d.mts
|
|
392
392
|
type InferBodyInput<Options extends EndpointOptions | MiddlewareOptions, Body = (Options["metadata"] extends {
|
|
393
393
|
$Infer: {
|
|
394
394
|
body: infer B;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as i18n } from "./index-
|
|
1
|
+
import { t as i18n } from "./index-DO-gtcqY.mjs";
|
|
2
2
|
import { E as TranslationDictionary, T as LocaleDetectionStrategy, t as index_d_exports, w as I18nOptions } from "./index-CYmtmQve.mjs";
|
|
3
3
|
export { I18nOptions, LocaleDetectionStrategy, 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-bOeBnT3o.mjs";
|
|
2
2
|
import { t as locales_exports } from "./locales-CSRpG5Mc.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.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.5",
|
|
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.21.1",
|
|
62
|
-
"@better-auth/core": "1.7.0-beta.
|
|
63
|
-
"better-auth": "1.7.0-beta.
|
|
62
|
+
"@better-auth/core": "1.7.0-beta.5",
|
|
63
|
+
"better-auth": "1.7.0-beta.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@better-auth/core": "^1.7.0-beta.
|
|
67
|
-
"better-auth": "^1.7.0-beta.
|
|
66
|
+
"@better-auth/core": "^1.7.0-beta.5",
|
|
67
|
+
"better-auth": "^1.7.0-beta.5"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsdown",
|