@better-auth/i18n 1.6.15 → 1.6.17
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 { BetterAuthPluginRegistry, BetterAuthPluginRegistryIdentifier, GenericEndpointContext, UnionToIntersection } from "@better-auth/core";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/better-call@1.3.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-BeZU0Td6.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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/i18n",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.17",
|
|
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.
|
|
55
|
-
"better-auth": "1.6.
|
|
54
|
+
"@better-auth/core": "1.6.17",
|
|
55
|
+
"better-auth": "1.6.17"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@better-auth/core": "^1.6.
|
|
59
|
-
"better-auth": "^1.6.
|
|
58
|
+
"@better-auth/core": "^1.6.17",
|
|
59
|
+
"better-auth": "^1.6.17"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsdown",
|