@better-auth/electron 1.7.3 → 1.7.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.
@@ -313,18 +313,19 @@ declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
313
313
  id: string;
314
314
  name: string;
315
315
  init(url: string, options: ({
316
- priority?: RequestPriority | undefined;
317
316
  mode?: RequestMode | undefined;
318
317
  cache?: RequestCache | undefined;
319
318
  credentials?: RequestCredentials | undefined;
320
319
  integrity?: string | undefined;
321
320
  keepalive?: boolean | undefined;
322
321
  method?: string | undefined;
322
+ priority?: RequestPriority | undefined;
323
323
  redirect?: RequestRedirect | undefined;
324
324
  referrer?: string | undefined;
325
325
  referrerPolicy?: ReferrerPolicy | undefined;
326
326
  signal?: (AbortSignal | null) | undefined;
327
327
  window?: null | undefined;
328
+ } & {
328
329
  onRequest?: (<T extends Record<string, any>>(context: _$_better_fetch_fetch0.RequestContext<T>) => Promise<_$_better_fetch_fetch0.RequestContext | void> | _$_better_fetch_fetch0.RequestContext | void) | undefined;
329
330
  onResponse?: ((context: _$_better_fetch_fetch0.ResponseContext) => Promise<Response | void | _$_better_fetch_fetch0.ResponseContext> | Response | _$_better_fetch_fetch0.ResponseContext | void) | undefined;
330
331
  onSuccess?: ((context: _$_better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
@@ -363,24 +364,27 @@ declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
363
364
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
364
365
  retry?: _$_better_fetch_fetch0.RetryOptions | undefined;
365
366
  retryAttempt?: number | undefined;
367
+ method?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | (string & {})) | undefined;
366
368
  output?: (_$_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
367
369
  errorSchema?: _$_better_fetch_fetch0.StandardSchemaV1 | undefined;
368
370
  disableValidation?: boolean | undefined;
371
+ signal?: (AbortSignal | null) | undefined;
369
372
  } & Record<string, any>) | undefined): Promise<{
370
373
  url: string;
371
374
  options: {
372
- priority?: RequestPriority | undefined;
373
375
  mode?: RequestMode | undefined;
374
376
  cache?: RequestCache | undefined;
375
377
  credentials?: RequestCredentials | undefined;
376
378
  integrity?: string | undefined;
377
379
  keepalive?: boolean | undefined;
378
380
  method?: string | undefined;
381
+ priority?: RequestPriority | undefined;
379
382
  redirect?: RequestRedirect | undefined;
380
383
  referrer?: string | undefined;
381
384
  referrerPolicy?: ReferrerPolicy | undefined;
382
385
  signal?: (AbortSignal | null) | undefined;
383
386
  window?: null | undefined;
387
+ } & {
384
388
  onRequest?: (<T extends Record<string, any>>(context: _$_better_fetch_fetch0.RequestContext<T>) => Promise<_$_better_fetch_fetch0.RequestContext | void> | _$_better_fetch_fetch0.RequestContext | void) | undefined;
385
389
  onResponse?: ((context: _$_better_fetch_fetch0.ResponseContext) => Promise<Response | void | _$_better_fetch_fetch0.ResponseContext> | Response | _$_better_fetch_fetch0.ResponseContext | void) | undefined;
386
390
  onSuccess?: ((context: _$_better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
@@ -419,9 +423,11 @@ declare const electronClient: <O extends ElectronClientOptions>(options: O) => {
419
423
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
420
424
  retry?: _$_better_fetch_fetch0.RetryOptions | undefined;
421
425
  retryAttempt?: number | undefined;
426
+ method?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | (string & {})) | undefined;
422
427
  output?: (_$_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
423
428
  errorSchema?: _$_better_fetch_fetch0.StandardSchemaV1 | undefined;
424
429
  disableValidation?: boolean | undefined;
430
+ signal?: (AbortSignal | null) | undefined;
425
431
  } & Record<string, any>;
426
432
  }>;
427
433
  hooks: {
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-BLUnuwWr.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-RwDZeHIX.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,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BA_IW5w3.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-syldHUph.mjs";
2
2
  import { n as isProcessType, r as parseProtocolScheme, t as getChannelPrefixWithDelimiter } from "./utils-DxDKRT6e.mjs";
3
3
  import { BetterAuthError } from "@better-auth/core/error";
4
4
  import { base64, base64Url } from "@better-auth/utils/base64";
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-BLUnuwWr.mjs";
1
+ import { f as FetchUserImageResult, m as normalizeUserOutput, p as fetchUserImage, v as ElectronOptions, y as ElectronSharedOptions } from "./client-RwDZeHIX.mjs";
2
2
  import * as _$better_auth0 from "better-auth";
3
3
  import * as z from "zod";
4
4
  import * as _$_better_auth_core0 from "@better-auth/core";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BA_IW5w3.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-syldHUph.mjs";
2
2
  import { createAuthMiddleware } from "@better-auth/core/api";
3
3
  import { APIError, BASE_ERROR_CODES } from "@better-auth/core/error";
4
4
  import { base64Url } from "@better-auth/utils/base64";
package/dist/proxy.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { l as ElectronProxyClientOptions } from "./client-BLUnuwWr.mjs";
1
+ import { l as ElectronProxyClientOptions } from "./client-RwDZeHIX.mjs";
2
2
  import { electron } from "./index.mjs";
3
3
 
4
4
  //#region src/proxy.d.ts
package/dist/proxy.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BA_IW5w3.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-syldHUph.mjs";
2
2
  import { r as parseProtocolScheme } from "./utils-DxDKRT6e.mjs";
3
3
  import { parseCookies } from "better-auth/cookies";
4
4
  //#region src/proxy.ts
@@ -1,4 +1,4 @@
1
- import { d as Storage } from "./client-BLUnuwWr.mjs";
1
+ import { d as Storage } from "./client-RwDZeHIX.mjs";
2
2
  import { Options } from "conf";
3
3
 
4
4
  //#region src/storage.d.ts
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.7.3";
3
+ const PACKAGE_VERSION = "1.7.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/electron",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "Better Auth integration for Electron applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -80,17 +80,17 @@
80
80
  "better-sqlite3": "^12.11.1",
81
81
  "electron": "^43.1.1",
82
82
  "tsdown": "0.21.10",
83
- "@better-auth/core": "1.7.3",
84
- "better-auth": "1.7.3"
83
+ "@better-auth/core": "1.7.5",
84
+ "better-auth": "1.7.5"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@better-auth/utils": "0.4.2",
88
- "@better-fetch/fetch": "1.3.1",
88
+ "@better-fetch/fetch": "1.3.2",
89
89
  "better-call": "1.4.0",
90
90
  "conf": "^15.0.2",
91
91
  "electron": ">=36.0.0",
92
- "@better-auth/core": "^1.7.3",
93
- "better-auth": "^1.7.3"
92
+ "@better-auth/core": "^1.7.5",
93
+ "better-auth": "^1.7.5"
94
94
  },
95
95
  "peerDependenciesMeta": {
96
96
  "electron": {