@better-auth/i18n 1.6.15 → 1.6.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
@@ -1,4 +1,4 @@
1
- import { t as i18n } from "./index-Dfuc66o9.mjs";
1
+ import { t as i18n } from "./index-zdHXPTvz.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-BPpah8cV.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-KncHedVM.mjs";
2
2
  //#region src/client.ts
3
3
  /**
4
4
  * i18n client plugin for Better Auth
@@ -1,6 +1,6 @@
1
1
  import { BetterAuthPluginRegistry, BetterAuthPluginRegistryIdentifier, GenericEndpointContext, UnionToIntersection } from "@better-auth/core";
2
2
 
3
- //#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.3.6/node_modules/better-call/dist/standard-schema.d.mts
3
+ //#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/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
  } //#endregion
60
60
  //#endregion
61
- //#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.3.6/node_modules/better-call/dist/error.d.mts
61
+ //#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/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
  }; //#endregion
138
138
  //#endregion
139
- //#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.3.6/node_modules/better-call/dist/openapi.d.mts
139
+ //#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/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
  };
159
159
  }
160
160
  //#endregion
161
- //#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.3.6/node_modules/better-call/dist/endpoint.d.mts
161
+ //#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/endpoint.d.mts
162
162
  //#region src/endpoint.d.ts
163
163
  interface EndpointBaseOptions {
164
164
  /**
@@ -375,7 +375,7 @@ type EndpointBodyMethodOptions = {
375
375
  };
376
376
  type EndpointOptions = EndpointBaseOptions & EndpointBodyMethodOptions;
377
377
  //#endregion
378
- //#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.3.6/node_modules/better-call/dist/middleware.d.mts
378
+ //#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/middleware.d.mts
379
379
  //#region src/middleware.d.ts
380
380
  interface MiddlewareOptions extends Omit<EndpointOptions, "method"> {}
381
381
  type MiddlewareInputContext<Options extends MiddlewareOptions> = InferBodyInput<Options> & InferQueryInput<Options> & InferRequestInput<Options> & InferHeadersInput<Options> & {
@@ -387,7 +387,7 @@ type Middleware<Options extends MiddlewareOptions = MiddlewareOptions, Handler e
387
387
  options: Options;
388
388
  }; //#endregion
389
389
  //#endregion
390
- //#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.3.6/node_modules/better-call/dist/context.d.mts
390
+ //#region ../../node_modules/.pnpm/better-call@1.3.6_zod@4.3.6/node_modules/better-call/dist/context.d.mts
391
391
  type InferBodyInput<Options extends EndpointOptions | MiddlewareOptions, Body = (Options["metadata"] extends {
392
392
  $Infer: {
393
393
  body: infer B;
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as TranslationDictionary, n as I18nOptions, r as LocaleDetectionStrategy, t as i18n } from "./index-Dfuc66o9.mjs";
1
+ import { i as TranslationDictionary, n as I18nOptions, r as LocaleDetectionStrategy, t as i18n } from "./index-zdHXPTvz.mjs";
2
2
  export { I18nOptions, LocaleDetectionStrategy, TranslationDictionary, i18n };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BPpah8cV.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-KncHedVM.mjs";
2
2
  import { APIError, createAuthMiddleware, isAPIError } from "better-auth/api";
3
3
  import { parseCookies } from "better-auth/cookies";
4
4
  //#region src/index.ts
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.6.15";
3
+ const PACKAGE_VERSION = "1.6.16";
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.6.15",
3
+ "version": "1.6.16",
4
4
  "description": "i18n plugin for Better Auth - translate error messages",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,12 +51,12 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "tsdown": "0.21.1",
54
- "@better-auth/core": "1.6.15",
55
- "better-auth": "1.6.15"
54
+ "@better-auth/core": "1.6.16",
55
+ "better-auth": "1.6.16"
56
56
  },
57
57
  "peerDependencies": {
58
- "@better-auth/core": "^1.6.15",
59
- "better-auth": "^1.6.15"
58
+ "@better-auth/core": "^1.6.16",
59
+ "better-auth": "^1.6.16"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown",