@better-auth/electron 1.6.26 → 1.6.27
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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-B4oCeoTU.mjs";
|
|
2
2
|
import { n as isProcessType, r as parseProtocolScheme, t as getChannelPrefixWithDelimiter } from "./utils-C5XBRvIU.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
|
@@ -18,13 +18,10 @@ declare const electron: (options?: ElectronOptions | undefined) => {
|
|
|
18
18
|
hooks: {
|
|
19
19
|
after: ({
|
|
20
20
|
matcher: (ctx: HookEndpointContext) => boolean;
|
|
21
|
-
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void
|
|
21
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
22
22
|
} | {
|
|
23
23
|
matcher: (ctx: HookEndpointContext) => boolean;
|
|
24
|
-
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<import("better-call").MiddlewareContext<import("better-call").MiddlewareOptions, {
|
|
25
|
-
returned?: unknown | undefined;
|
|
26
|
-
responseHeaders?: Headers | undefined;
|
|
27
|
-
} & import("better-auth").PluginContext<import("better-auth").BetterAuthOptions> & import("better-auth").InfoContext & {
|
|
24
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<import("better-call").MiddlewareContext<import("better-call").MiddlewareOptions, import("better-auth").PluginContext<import("better-auth").BetterAuthOptions> & import("better-auth").InfoContext & {
|
|
28
25
|
options: import("better-auth").BetterAuthOptions;
|
|
29
26
|
trustedOrigins: string[];
|
|
30
27
|
trustedProviders: string[];
|
|
@@ -149,9 +146,12 @@ declare const electron: (options?: ElectronOptions | undefined) => {
|
|
|
149
146
|
skipCSRFCheck: boolean;
|
|
150
147
|
runInBackground: (promise: Promise<unknown>) => void;
|
|
151
148
|
runInBackgroundOrAwait: (promise: Promise<unknown> | void) => import("better-auth").Awaitable<unknown>;
|
|
149
|
+
} & {
|
|
150
|
+
returned?: unknown | undefined;
|
|
151
|
+
responseHeaders?: Headers | undefined;
|
|
152
152
|
}> | {
|
|
153
153
|
electron_authorization_code: string;
|
|
154
|
-
} | undefined
|
|
154
|
+
} | undefined>>;
|
|
155
155
|
})[];
|
|
156
156
|
};
|
|
157
157
|
endpoints: {
|
|
@@ -256,7 +256,7 @@ declare const electron: (options?: ElectronOptions | undefined) => {
|
|
|
256
256
|
body: z.ZodObject<{
|
|
257
257
|
callbackURL: z.ZodOptional<z.ZodString>;
|
|
258
258
|
}, z.core.$strip>;
|
|
259
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
259
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
260
260
|
session: {
|
|
261
261
|
session: Record<string, any> & {
|
|
262
262
|
id: string;
|
|
@@ -278,7 +278,7 @@ declare const electron: (options?: ElectronOptions | undefined) => {
|
|
|
278
278
|
image?: string | null | undefined;
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
|
-
}
|
|
281
|
+
}>>[];
|
|
282
282
|
requireHeaders: true;
|
|
283
283
|
metadata: {
|
|
284
284
|
openapi: {
|
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-B4oCeoTU.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/preload.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import electron, { contextBridge } from "electron";
|
|
2
|
-
//#region ../../node_modules/.pnpm/better-call@1.
|
|
2
|
+
//#region ../../node_modules/.pnpm/better-call@1.4.0_zod@4.3.6/node_modules/better-call/dist/error.mjs
|
|
3
3
|
function isErrorStackTraceLimitWritable() {
|
|
4
4
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
5
5
|
if (desc === void 0) return Object.isExtensible(Error);
|
|
@@ -96,6 +96,10 @@ const statusCodes = {
|
|
|
96
96
|
NETWORK_AUTHENTICATION_REQUIRED: 511
|
|
97
97
|
};
|
|
98
98
|
var InternalAPIError = class extends Error {
|
|
99
|
+
status;
|
|
100
|
+
body;
|
|
101
|
+
headers;
|
|
102
|
+
statusCode;
|
|
99
103
|
constructor(status = "INTERNAL_SERVER_ERROR", body = void 0, headers = {}, statusCode = typeof status === "number" ? status : statusCodes[status]) {
|
|
100
104
|
super(body?.message, body?.cause ? { cause: body.cause } : void 0);
|
|
101
105
|
this.status = status;
|
package/dist/proxy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-B4oCeoTU.mjs";
|
|
2
2
|
import { r as parseProtocolScheme } from "./utils-C5XBRvIU.mjs";
|
|
3
3
|
import { parseCookies } from "better-auth/cookies";
|
|
4
4
|
//#region src/proxy.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/electron",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.27",
|
|
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.6.2",
|
|
81
81
|
"electron": "^43.1.1",
|
|
82
82
|
"tsdown": "0.22.7",
|
|
83
|
-
"@better-auth/core": "1.6.
|
|
84
|
-
"better-auth": "1.6.
|
|
83
|
+
"@better-auth/core": "1.6.27",
|
|
84
|
+
"better-auth": "1.6.27"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@better-auth/utils": "0.4.2",
|
|
88
88
|
"@better-fetch/fetch": "1.3.1",
|
|
89
|
-
"better-call": "1.
|
|
89
|
+
"better-call": "1.4.0",
|
|
90
90
|
"conf": "^15.0.2",
|
|
91
91
|
"electron": ">=36.0.0",
|
|
92
|
-
"@better-auth/core": "^1.6.
|
|
93
|
-
"better-auth": "^1.6.
|
|
92
|
+
"@better-auth/core": "^1.6.27",
|
|
93
|
+
"better-auth": "^1.6.27"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"electron": {
|