@better-auth/i18n 1.8.0-beta.3 → 1.8.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
@@ -1,4 +1,4 @@
1
- import { t as i18n } from "./index-C2g2UF2B.mjs";
1
+ import { t as i18n } from "./index-Jg5A1yth.mjs";
2
2
  //#region src/client.d.ts
3
3
  /**
4
4
  * i18n client plugin for Better Auth
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-HRaJjPrD.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-CNT8flsy.mjs";
2
2
  //#region src/client.ts
3
3
  /**
4
4
  * i18n client plugin for Better Auth
@@ -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.4_zod@4.5.4/node_modules/better-call/dist/standard-schema.d.mts
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.4_zod@4.5.4/node_modules/better-call/dist/error.d.mts
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.4_zod@4.5.4/node_modules/better-call/dist/openapi.d.mts
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.4_zod@4.5.4/node_modules/better-call/dist/endpoint.d.mts
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.4_zod@4.5.4/node_modules/better-call/dist/context.d.mts
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.4_zod@4.5.4/node_modules/better-call/dist/middleware.d.mts
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-C2g2UF2B.mjs";
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-HRaJjPrD.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-CNT8flsy.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";
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.8.0-beta.3";
3
+ const PACKAGE_VERSION = "1.8.0-beta.5";
4
4
  //#endregion
5
5
  export { PACKAGE_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/i18n",
3
- "version": "1.8.0-beta.3",
3
+ "version": "1.8.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.23.1",
62
- "@better-auth/core": "1.8.0-beta.3",
63
- "better-auth": "1.8.0-beta.3"
62
+ "@better-auth/core": "1.8.0-beta.5",
63
+ "better-auth": "1.8.0-beta.5"
64
64
  },
65
65
  "peerDependencies": {
66
- "@better-auth/core": "^1.8.0-beta.3",
67
- "better-auth": "^1.8.0-beta.3"
66
+ "@better-auth/core": "^1.8.0-beta.5",
67
+ "better-auth": "^1.8.0-beta.5"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown",