@better-auth/i18n 1.7.1 → 1.7.3

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-Cy3_CEi-.mjs";
1
+ import { t as i18n } from "./index-3kSGPUDn.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  /**
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-B-vU7Sbh.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-CoVUQkWP.mjs";
2
2
  //#region src/client.ts
3
3
  /**
4
4
  * i18n client plugin for Better Auth
@@ -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.4.0_zod@4.3.6/node_modules/better-call/dist/standard-schema.d.mts
4
+ //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.5.4/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.4.0_zod@4.3.6/node_modules/better-call/dist/error.d.mts
62
+ //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.5.4/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.4.0_zod@4.3.6/node_modules/better-call/dist/openapi.d.mts
140
+ //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.5.4/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.4.0_zod@4.3.6/node_modules/better-call/dist/endpoint.d.mts
162
+ //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.5.4/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.4.0_zod@4.3.6/node_modules/better-call/dist/context.d.mts
379
+ //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.5.4/node_modules/better-call/dist/context.d.mts
380
380
  type InferBodyInput<Options extends EndpointOptions | MiddlewareOptions, Body = (Options["metadata"] extends {
381
381
  $Infer: {
382
382
  body: infer B;
@@ -406,7 +406,7 @@ type InferHeadersInput<Option extends EndpointOptions | MiddlewareOptions> = Opt
406
406
  headers?: HeadersInit;
407
407
  };
408
408
  //#endregion
409
- //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.3.6/node_modules/better-call/dist/middleware.d.mts
409
+ //#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.5.4/node_modules/better-call/dist/middleware.d.mts
410
410
  //#region src/middleware.d.ts
411
411
  interface MiddlewareOptions extends Omit<EndpointOptions, "method"> {}
412
412
  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-Cy3_CEi-.mjs";
1
+ import { t as i18n } from "./index-3kSGPUDn.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-B-vU7Sbh.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-CoVUQkWP.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";
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.7.1";
3
+ const PACKAGE_VERSION = "1.7.3";
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.7.1",
3
+ "version": "1.7.3",
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.10",
62
- "@better-auth/core": "1.7.1",
63
- "better-auth": "1.7.1"
62
+ "@better-auth/core": "1.7.3",
63
+ "better-auth": "1.7.3"
64
64
  },
65
65
  "peerDependencies": {
66
- "@better-auth/core": "^1.7.1",
67
- "better-auth": "^1.7.1"
66
+ "@better-auth/core": "^1.7.3",
67
+ "better-auth": "^1.7.3"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown",