@better-auth/electron 1.5.7-beta.1 → 1.6.0-beta.0

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.
@@ -307,11 +307,13 @@ declare function handleDeepLink({
307
307
  //#region src/client.d.ts
308
308
  declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
309
309
  id: "electron";
310
+ version: string;
310
311
  fetchPlugins: {
311
312
  id: string;
312
313
  name: string;
313
314
  init(url: string, options: ({
314
315
  priority?: RequestPriority | undefined;
316
+ mode?: RequestMode | undefined;
315
317
  cache?: RequestCache | undefined;
316
318
  credentials?: RequestCredentials | undefined;
317
319
  headers?: (HeadersInit & (HeadersInit | {
@@ -322,7 +324,6 @@ declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
322
324
  integrity?: string | undefined;
323
325
  keepalive?: boolean | undefined;
324
326
  method?: string | undefined;
325
- mode?: RequestMode | undefined;
326
327
  redirect?: RequestRedirect | undefined;
327
328
  referrer?: string | undefined;
328
329
  referrerPolicy?: ReferrerPolicy | undefined;
@@ -367,6 +368,7 @@ declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
367
368
  url: string;
368
369
  options: {
369
370
  priority?: RequestPriority | undefined;
371
+ mode?: RequestMode | undefined;
370
372
  cache?: RequestCache | undefined;
371
373
  credentials?: RequestCredentials | undefined;
372
374
  headers?: (HeadersInit & (HeadersInit | {
@@ -377,7 +379,6 @@ declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
377
379
  integrity?: string | undefined;
378
380
  keepalive?: boolean | undefined;
379
381
  method?: string | undefined;
380
- mode?: RequestMode | undefined;
381
382
  redirect?: RequestRedirect | undefined;
382
383
  referrer?: string | undefined;
383
384
  referrerPolicy?: ReferrerPolicy | undefined;
package/dist/client.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as setupRenderer, a as authenticate, c as ElectronClientOptions, d as Storage, f as FetchUserImageResult, g as SetupRendererConfig, h as ExposedBridges, i as ElectronRequestAuthOptions, l as ElectronProxyClientOptions, m as normalizeUserOutput, n as handleDeepLink, o as kElectron, p as fetchUserImage, r as ElectronAuthenticateOptions, s as requestAuth, t as electronClient, u as ElectronSharedClientOptions, y as ElectronSharedOptions } from "./client-D8BB_eSV.mjs";
1
+ import { _ as setupRenderer, a as authenticate, c as ElectronClientOptions, d as Storage, f as FetchUserImageResult, g as SetupRendererConfig, h as ExposedBridges, i as ElectronRequestAuthOptions, l as ElectronProxyClientOptions, m as normalizeUserOutput, n as handleDeepLink, o as kElectron, p as fetchUserImage, r as ElectronAuthenticateOptions, s as requestAuth, t as electronClient, u as ElectronSharedClientOptions, y as ElectronSharedOptions } from "./client-CMv-uqSO.mjs";
2
2
  export { ElectronAuthenticateOptions, ElectronClientOptions, ElectronProxyClientOptions, ElectronRequestAuthOptions, ElectronSharedClientOptions, ElectronSharedOptions, ExposedBridges, FetchUserImageResult, SetupRendererConfig, Storage, authenticate, electronClient, fetchUserImage, handleDeepLink, kElectron, normalizeUserOutput, requestAuth, setupRenderer };
package/dist/client.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { n as isProcessType, r as parseProtocolScheme, t as getChannelPrefixWithDelimiter } from "./utils-CRzg_SlK.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-BqMHXjG-.mjs";
2
+ import { n as isProcessType, r as parseProtocolScheme, t as getChannelPrefixWithDelimiter } from "./utils-DxDKRT6e.mjs";
2
3
  import { BetterAuthError } from "@better-auth/core/error";
3
4
  import { base64, base64Url } from "@better-auth/utils/base64";
4
5
  import { APIError as APIError$1, getBaseURL, isDevelopment, isTest, safeJSONParse } from "better-auth";
@@ -596,6 +597,7 @@ const electronClient = (options) => {
596
597
  if ((isDevelopment() || isTest()) && /^(?!\.)(?!.*\.\.)(?!.*\.$)[^.]+\.[^.]+$/.test(scheme)) console.warn("The provided scheme does not follow the reverse domain name notation. For example: `app.example.com` -> `com.example.app`.");
597
598
  return {
598
599
  id: "electron",
600
+ version: PACKAGE_VERSION,
599
601
  fetchPlugins: [{
600
602
  id: "electron",
601
603
  name: "Electron",
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as FetchUserImageResult, m as normalizeUserOutput, p as fetchUserImage, v as ElectronOptions, y as ElectronSharedOptions } from "./client-D8BB_eSV.mjs";
1
+ import { f as FetchUserImageResult, m as normalizeUserOutput, p as fetchUserImage, v as ElectronOptions, y as ElectronSharedOptions } from "./client-CMv-uqSO.mjs";
2
2
  import * as better_auth0 from "better-auth";
3
3
  import * as _better_auth_core0 from "@better-auth/core";
4
4
  import { HookEndpointContext } from "@better-auth/core";
@@ -14,6 +14,7 @@ declare module "@better-auth/core" {
14
14
  }
15
15
  declare const electron: (options?: ElectronOptions | undefined) => {
16
16
  id: "electron";
17
+ version: string;
17
18
  onRequest(request: Request, _ctx: better_auth0.AuthContext): Promise<{
18
19
  request: Request;
19
20
  } | undefined>;
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { t as PACKAGE_VERSION } from "./version-BqMHXjG-.mjs";
1
2
  import { createAuthMiddleware } from "@better-auth/core/api";
2
3
  import { APIError, BASE_ERROR_CODES } from "@better-auth/core/error";
3
4
  import { base64Url } from "@better-auth/utils/base64";
@@ -235,6 +236,7 @@ const electron = (options) => {
235
236
  };
236
237
  return {
237
238
  id: "electron",
239
+ version: PACKAGE_VERSION,
238
240
  async onRequest(request, _ctx) {
239
241
  if (opts.disableOriginOverride || request.headers.get("origin")) return;
240
242
  const electronOrigin = request.headers.get("electron-origin");
@@ -306,6 +306,14 @@ type Where = {
306
306
  * @default AND
307
307
  */
308
308
  connector?: ("AND" | "OR") | undefined;
309
+ /**
310
+ * Case sensitivity for string comparisons.
311
+ * When "insensitive", string equality and pattern matching (contains, starts_with, ends_with)
312
+ * will be case-insensitive. Only applies to string values.
313
+ *
314
+ * @default "sensitive"
315
+ */
316
+ mode?: "sensitive" | "insensitive" | undefined;
309
317
  };
310
318
  /**
311
319
  * JoinOption configuration for relational queries.
@@ -3934,7 +3942,7 @@ type BaseAccount = z.infer<typeof accountSchema>;
3934
3942
  */
3935
3943
  type Account<DBOptions extends BetterAuthOptions["account"] = BetterAuthOptions["account"], Plugins extends BetterAuthOptions["plugins"] = BetterAuthOptions["plugins"]> = Prettify$1<BaseAccount & InferDBFieldsFromOptions<DBOptions> & InferDBFieldsFromPlugins<"account", Plugins>>; //#endregion
3936
3944
  //#endregion
3937
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/cookies.d.mts
3945
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/cookies.d.mts
3938
3946
  //#region src/cookies.d.ts
3939
3947
  type CookiePrefixOptions = "host" | "secure";
3940
3948
  type CookieOptions = {
@@ -4024,7 +4032,7 @@ type CookieOptions = {
4024
4032
  prefix?: CookiePrefixOptions;
4025
4033
  };
4026
4034
  //#endregion
4027
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/standard-schema.d.mts
4035
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/standard-schema.d.mts
4028
4036
  //#region src/standard-schema.d.ts
4029
4037
  /** The Standard Schema interface. */
4030
4038
  interface StandardSchemaV1$1<Input = unknown, Output = Input> {
@@ -4082,7 +4090,7 @@ declare namespace StandardSchemaV1$1 {
4082
4090
  type InferOutput<Schema extends StandardSchemaV1$1> = NonNullable<Schema["~standard"]["types"]>["output"];
4083
4091
  } //#endregion
4084
4092
  //#endregion
4085
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/error.d.mts
4093
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/error.d.mts
4086
4094
  declare const statusCodes: {
4087
4095
  OK: number;
4088
4096
  CREATED: number;
@@ -4160,14 +4168,14 @@ declare const APIError: new (status?: Status | "OK" | "CREATED" | "ACCEPTED" | "
4160
4168
  errorStack: string | undefined;
4161
4169
  }; //#endregion
4162
4170
  //#endregion
4163
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/helper.d.mts
4171
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/helper.d.mts
4164
4172
  type Prettify<T> = 0 extends 1 & T ? any : { [K in keyof T]: T[K] } & {};
4165
4173
  type IsEmptyObject<T> = keyof T extends never ? true : false;
4166
4174
  type UnionToIntersection<Union> = (Union extends unknown ? (distributedUnion: Union) => void : never) extends ((mergedIntersection: infer Intersection) => void) ? Intersection & Union : never;
4167
4175
  type InferParamPath<Path> = Path extends `${infer _Start}:${infer Param}/${infer Rest}` ? { [K in Param | keyof InferParamPath<Rest>]: string } : Path extends `${infer _Start}:${infer Param}` ? { [K in Param]: string } : Path extends `${infer _Start}/${infer Rest}` ? InferParamPath<Rest> : {};
4168
4176
  type InferParamWildCard<Path> = Path extends `${infer _Start}/*:${infer Param}/${infer Rest}` | `${infer _Start}/**:${infer Param}/${infer Rest}` ? { [K in Param | keyof InferParamPath<Rest>]: string } : Path extends `${infer _Start}/*` ? { [K in "_"]: string } : Path extends `${infer _Start}/${infer Rest}` ? InferParamWildCard<Rest> : {}; //#endregion
4169
4177
  //#endregion
4170
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/middleware.d.mts
4178
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/middleware.d.mts
4171
4179
  //#region src/middleware.d.ts
4172
4180
  type MiddlewareContext<Context = {}> = {
4173
4181
  /**
@@ -4316,7 +4324,7 @@ type Middleware<Handler extends (inputCtx: MiddlewareContext<any>) => Promise<an
4316
4324
  options: Record<string, any>;
4317
4325
  };
4318
4326
  //#endregion
4319
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/types.d.mts
4327
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/types.d.mts
4320
4328
  //#region src/types.d.ts
4321
4329
  type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD";
4322
4330
  /**
@@ -4429,7 +4437,7 @@ type InputContext<Path extends string, M, Body, Query, ReqHeaders extends boolea
4429
4437
  context?: Record<string, any>;
4430
4438
  }; //#endregion
4431
4439
  //#endregion
4432
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/context.d.mts
4440
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/context.d.mts
4433
4441
  //#region src/context.d.ts
4434
4442
  type EndpointContext<Path extends string, M, BodySchema extends object | undefined, QuerySchema extends object | undefined, Use extends Middleware[], ReqHeaders extends boolean, ReqRequest extends boolean, Context = {}, Meta = undefined> = {
4435
4443
  /**
@@ -4569,7 +4577,7 @@ type EndpointContext<Path extends string, M, BodySchema extends object | undefin
4569
4577
  } & Record<string, any>, headers?: HeadersInit) => APIError;
4570
4578
  }; //#endregion
4571
4579
  //#endregion
4572
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/endpoint.d.mts
4580
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/endpoint.d.mts
4573
4581
  //#region src/endpoint.d.ts
4574
4582
  interface EndpointMetadata {
4575
4583
  /**
@@ -4775,14 +4783,14 @@ type Endpoint<Path extends string = string, Method = any, Body = any, Query = an
4775
4783
  response: Awaited<R>;
4776
4784
  }>;
4777
4785
  (context?: InputContext<Path, Method, Body, Query, false, false>): Promise<Awaited<R>>;
4778
- options: Omit<EndpointRuntimeOptions, "method" | "metadata"> & {
4779
- method: Method;
4780
- metadata?: Meta;
4786
+ readonly options: Omit<EndpointRuntimeOptions, "method" | "metadata"> & {
4787
+ readonly method: Method;
4788
+ readonly metadata?: Meta;
4781
4789
  };
4782
- path: Path;
4790
+ readonly path: Path;
4783
4791
  };
4784
4792
  //#endregion
4785
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/openapi.d.mts
4793
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/openapi.d.mts
4786
4794
  //#region src/openapi.d.ts
4787
4795
  type OpenAPISchemaType = "string" | "number" | "integer" | "boolean" | "array" | "object";
4788
4796
  interface OpenAPIParameter {
@@ -4792,15 +4800,15 @@ interface OpenAPIParameter {
4792
4800
  required?: boolean;
4793
4801
  schema?: {
4794
4802
  type: OpenAPISchemaType;
4795
- format?: string;
4803
+ format?: string | undefined;
4796
4804
  items?: {
4797
4805
  type: OpenAPISchemaType;
4798
4806
  };
4799
4807
  enum?: string[];
4800
4808
  minLength?: number;
4801
- description?: string;
4802
- default?: string;
4803
- example?: string;
4809
+ description?: string | undefined;
4810
+ default?: string | undefined;
4811
+ example?: string | undefined;
4804
4812
  };
4805
4813
  }
4806
4814
  //#endregion
@@ -4851,6 +4859,7 @@ type InferPluginOptions<O extends BetterAuthOptions, ID extends BetterAuthPlugin
4851
4859
  *
4852
4860
  * const createMyPlugin = <Options extends MyPluginOptions>(options?: Options) => ({
4853
4861
  * id: 'my-plugin',
4862
+ * version: '1.0.0',
4854
4863
  * options,
4855
4864
  * } satisfies BetterAuthPlugin);
4856
4865
  *
@@ -5245,7 +5254,9 @@ type BetterAuthAdvancedOptions = {
5245
5254
  ipv6Subnet?: 128 | 64 | 48 | 32;
5246
5255
  } | undefined;
5247
5256
  /**
5248
- * Use secure cookies
5257
+ * Force cookies to always use the `Secure` attribute. By default,
5258
+ * cookies are secure in production environments. Set this to `true`
5259
+ * to enforce secure cookies in all environments.
5249
5260
  *
5250
5261
  * @default false
5251
5262
  */
@@ -5394,9 +5405,11 @@ type BetterAuthAdvancedOptions = {
5394
5405
  };
5395
5406
  type BetterAuthOptions = {
5396
5407
  /**
5397
- * The name of the application
5408
+ * The name of your application. Used as a display name in contexts
5409
+ * where your app needs to be identified — for example, as the default
5410
+ * issuer name in authenticator apps when users set up 2FA/TOTP.
5398
5411
  *
5399
- * process.env.APP_NAME
5412
+ * Can also be set via the `APP_NAME` environment variable.
5400
5413
  *
5401
5414
  * @default "Better Auth"
5402
5415
  */
@@ -6095,7 +6108,12 @@ type BetterAuthOptions = {
6095
6108
  storeInDatabase?: boolean;
6096
6109
  }) | undefined;
6097
6110
  /**
6098
- * List of trusted origins.
6111
+ * Additional trusted origins. By default, Better Auth trusts your
6112
+ * app's {@link baseURL}. Use this option to allow additional origins
6113
+ * (e.g. a separate frontend domain).
6114
+ *
6115
+ * Can be a static array, a function that returns origins dynamically,
6116
+ * or use wildcard patterns (e.g. `"https://*.example.com"`).
6099
6117
  *
6100
6118
  * @param request - The request object.
6101
6119
  * It'll be undefined if no request was
@@ -6622,6 +6640,7 @@ type BetterAuthPluginErrorCodePart = {
6622
6640
  };
6623
6641
  type BetterAuthPlugin = BetterAuthPluginErrorCodePart & {
6624
6642
  id: LiteralString;
6643
+ version?: string | undefined;
6625
6644
  /**
6626
6645
  * The init function is called when the plugin is initialized.
6627
6646
  * You can return a new context or modify the existing context.
package/dist/preload.mjs CHANGED
@@ -1,64 +1,5 @@
1
1
  import electron, { contextBridge } from "electron";
2
- //#region ../core/dist/utils/error-codes.mjs
3
- function defineErrorCodes(codes) {
4
- return Object.fromEntries(Object.entries(codes).map(([key, value]) => [key, {
5
- code: key,
6
- message: value,
7
- toString: () => key
8
- }]));
9
- }
10
- defineErrorCodes({
11
- USER_NOT_FOUND: "User not found",
12
- FAILED_TO_CREATE_USER: "Failed to create user",
13
- FAILED_TO_CREATE_SESSION: "Failed to create session",
14
- FAILED_TO_UPDATE_USER: "Failed to update user",
15
- FAILED_TO_GET_SESSION: "Failed to get session",
16
- INVALID_PASSWORD: "Invalid password",
17
- INVALID_EMAIL: "Invalid email",
18
- INVALID_EMAIL_OR_PASSWORD: "Invalid email or password",
19
- INVALID_USER: "Invalid user",
20
- SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked",
21
- PROVIDER_NOT_FOUND: "Provider not found",
22
- INVALID_TOKEN: "Invalid token",
23
- TOKEN_EXPIRED: "Token expired",
24
- ID_TOKEN_NOT_SUPPORTED: "id_token not supported",
25
- FAILED_TO_GET_USER_INFO: "Failed to get user info",
26
- USER_EMAIL_NOT_FOUND: "User email not found",
27
- EMAIL_NOT_VERIFIED: "Email not verified",
28
- PASSWORD_TOO_SHORT: "Password too short",
29
- PASSWORD_TOO_LONG: "Password too long",
30
- USER_ALREADY_EXISTS: "User already exists.",
31
- USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.",
32
- EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated",
33
- CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found",
34
- SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.",
35
- FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account",
36
- ACCOUNT_NOT_FOUND: "Account not found",
37
- USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.",
38
- CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.",
39
- VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled",
40
- EMAIL_ALREADY_VERIFIED: "Email is already verified",
41
- EMAIL_MISMATCH: "Email mismatch",
42
- SESSION_NOT_FRESH: "Session is not fresh",
43
- LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists",
44
- INVALID_ORIGIN: "Invalid origin",
45
- INVALID_CALLBACK_URL: "Invalid callbackURL",
46
- INVALID_REDIRECT_URL: "Invalid redirectURL",
47
- INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL",
48
- INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL",
49
- MISSING_OR_NULL_ORIGIN: "Missing or null Origin",
50
- CALLBACK_URL_REQUIRED: "callbackURL is required",
51
- FAILED_TO_CREATE_VERIFICATION: "Unable to create verification",
52
- FIELD_NOT_ALLOWED: "Field not allowed to be set",
53
- ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported",
54
- VALIDATION_ERROR: "Validation Error",
55
- MISSING_FIELD: "Field is required",
56
- METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: "POST method requires deferSessionRefresh to be enabled in session config",
57
- BODY_MUST_BE_AN_OBJECT: "Body must be an object",
58
- PASSWORD_ALREADY_SET: "User already has a password set"
59
- });
60
- //#endregion
61
- //#region ../../node_modules/.pnpm/better-call@2.0.2_zod@4.3.6/node_modules/better-call/dist/error.mjs
2
+ //#region ../../node_modules/.pnpm/better-call@2.0.3_zod@4.3.6/node_modules/better-call/dist/error.mjs
62
3
  function isErrorStackTraceLimitWritable() {
63
4
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
64
5
  if (desc === void 0) return Object.isExtensible(Error);
package/dist/proxy.d.mts CHANGED
@@ -1,9 +1,10 @@
1
- import { l as ElectronProxyClientOptions } from "./client-D8BB_eSV.mjs";
1
+ import { l as ElectronProxyClientOptions } from "./client-CMv-uqSO.mjs";
2
2
  import { electron } from "./index.mjs";
3
3
 
4
4
  //#region src/proxy.d.ts
5
5
  declare const electronProxyClient: (options: ElectronProxyClientOptions) => {
6
6
  id: "electron-proxy";
7
+ version: string;
7
8
  getActions: () => {
8
9
  electron: {
9
10
  /**
package/dist/proxy.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { r as parseProtocolScheme } from "./utils-CRzg_SlK.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-BqMHXjG-.mjs";
2
+ import { r as parseProtocolScheme } from "./utils-DxDKRT6e.mjs";
2
3
  import { parseCookies } from "better-auth/cookies";
3
4
  //#region src/proxy.ts
4
5
  const electronProxyClient = (options) => {
@@ -12,6 +13,7 @@ const electronProxyClient = (options) => {
12
13
  const { scheme } = parseProtocolScheme(opts.protocol);
13
14
  return {
14
15
  id: "electron-proxy",
16
+ version: PACKAGE_VERSION,
15
17
  getActions: () => {
16
18
  const getAuthorizationCode = () => {
17
19
  if (typeof document === "undefined") return null;
@@ -1,4 +1,4 @@
1
- import { d as Storage } from "./client-D8BB_eSV.mjs";
1
+ import { d as Storage } from "./client-CMv-uqSO.mjs";
2
2
  import { Options } from "conf";
3
3
 
4
4
  //#region src/storage.d.ts
@@ -0,0 +1,5 @@
1
+ //#endregion
2
+ //#region src/version.ts
3
+ const PACKAGE_VERSION = "1.6.0-beta.0";
4
+ //#endregion
5
+ export { PACKAGE_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/electron",
3
- "version": "1.5.7-beta.1",
3
+ "version": "1.6.0-beta.0",
4
4
  "description": "Better Auth integration for Electron applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
+ "sideEffects": false,
22
23
  "files": [
23
24
  "dist"
24
25
  ],
@@ -79,17 +80,17 @@
79
80
  "better-sqlite3": "^12.6.2",
80
81
  "electron": "^38.8.4",
81
82
  "tsdown": "0.21.1",
82
- "@better-auth/core": "1.5.7-beta.1",
83
- "better-auth": "1.5.7-beta.1"
83
+ "@better-auth/core": "1.6.0-beta.0",
84
+ "better-auth": "1.6.0-beta.0"
84
85
  },
85
86
  "peerDependencies": {
86
- "@better-auth/utils": "0.3.1",
87
+ "@better-auth/utils": "0.4.0",
87
88
  "@better-fetch/fetch": "1.1.21",
88
- "better-call": "2.0.2",
89
+ "better-call": "2.0.3",
89
90
  "conf": "^15.0.2",
90
91
  "electron": ">=36.0.0",
91
- "@better-auth/core": "1.5.7-beta.1",
92
- "better-auth": "1.5.7-beta.1"
92
+ "@better-auth/core": "^1.6.0-beta.0",
93
+ "better-auth": "^1.6.0-beta.0"
93
94
  },
94
95
  "peerDependenciesMeta": {
95
96
  "electron": {
@@ -105,7 +106,7 @@
105
106
  "scripts": {
106
107
  "build": "tsdown",
107
108
  "dev": "tsdown --watch",
108
- "lint:package": "publint run --strict",
109
+ "lint:package": "publint run --strict --pack false",
109
110
  "lint:types": "attw --profile esm-only --pack .",
110
111
  "typecheck": "tsc --project tsconfig.json",
111
112
  "test": "vitest",
File without changes