kitcn 0.15.12 → 0.15.14
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/auth/client/index.d.ts +9 -5
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +4 -2
- package/dist/auth/nextjs/index.js +12 -3
- package/dist/auth/start/server/index.js +15 -5
- package/dist/{backend-core-DqIPJnse.mjs → backend-core-Cn1Y1i2O.mjs} +12 -3
- package/dist/cli.mjs +2 -2
- package/dist/solid/index.d.ts +10 -6
- package/dist/watcher.mjs +1 -1
- package/package.json +2 -2
|
@@ -5,11 +5,12 @@ import { ReactNode } from "react";
|
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
import { AuthConfig } from "convex/server";
|
|
7
7
|
import * as better_auth0 from "better-auth";
|
|
8
|
-
import {
|
|
8
|
+
import { Session, User } from "better-auth";
|
|
9
9
|
import * as better_auth_api0 from "better-auth/api";
|
|
10
10
|
import * as better_auth_plugins_oidc_provider0 from "better-auth/plugins/oidc-provider";
|
|
11
11
|
import * as jose from "jose";
|
|
12
12
|
import { BetterAuthOptions } from "better-auth/minimal";
|
|
13
|
+
import { BetterAuthClientPlugin } from "better-auth/client";
|
|
13
14
|
import { createAuthClient } from "better-auth/react";
|
|
14
15
|
|
|
15
16
|
//#region src/auth/internal/convex-plugin.d.ts
|
|
@@ -294,8 +295,11 @@ declare const convexClient: () => {
|
|
|
294
295
|
};
|
|
295
296
|
//#endregion
|
|
296
297
|
//#region src/auth-client/types.d.ts
|
|
298
|
+
type OpaqueClientPlugin = Omit<BetterAuthClientPlugin, '$InferServerPlugin'> & {
|
|
299
|
+
$InferServerPlugin?: never;
|
|
300
|
+
};
|
|
297
301
|
type ConvexClient = ReturnType<typeof convexClient>;
|
|
298
|
-
type CrossDomainClient =
|
|
302
|
+
type CrossDomainClient = OpaqueClientPlugin & {
|
|
299
303
|
id: 'cross-domain';
|
|
300
304
|
getActions: (...args: never[]) => {
|
|
301
305
|
crossDomain: {
|
|
@@ -307,8 +311,8 @@ type CrossDomainClient = BetterAuthClientPlugin & {
|
|
|
307
311
|
notifySessionSignal: () => void;
|
|
308
312
|
};
|
|
309
313
|
};
|
|
310
|
-
type PluginsWithCrossDomain = (CrossDomainClient | ConvexClient |
|
|
311
|
-
type PluginsWithoutCrossDomain = (ConvexClient |
|
|
314
|
+
type PluginsWithCrossDomain = (CrossDomainClient | ConvexClient | OpaqueClientPlugin)[];
|
|
315
|
+
type PluginsWithoutCrossDomain = (ConvexClient | OpaqueClientPlugin)[];
|
|
312
316
|
type AuthSessionState = {
|
|
313
317
|
data: unknown;
|
|
314
318
|
error?: unknown;
|
|
@@ -346,7 +350,7 @@ type ConvexAuthProviderClient = {
|
|
|
346
350
|
updateSession?: (...args: never[]) => unknown;
|
|
347
351
|
useSession: () => AuthSessionState;
|
|
348
352
|
} & Record<string, unknown>;
|
|
349
|
-
type AuthClientWithPlugins<Plugins extends
|
|
353
|
+
type AuthClientWithPlugins<Plugins extends BetterAuthClientPlugin[]> = ReturnType<typeof createAuthClient<{
|
|
350
354
|
plugins: Plugins;
|
|
351
355
|
}>>;
|
|
352
356
|
type AuthClient = AuthClientWithPlugins<PluginsWithCrossDomain> | AuthClientWithPlugins<PluginsWithoutCrossDomain>;
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare const adapterConfig: {
|
|
|
63
63
|
data: any;
|
|
64
64
|
fieldAttributes: better_auth0.DBFieldAttribute;
|
|
65
65
|
field: string;
|
|
66
|
-
action: "create" | "update" | "findOne" | "findMany" | "updateMany" | "delete" | "deleteMany" | "count";
|
|
66
|
+
action: "create" | "update" | "findOne" | "findMany" | "updateMany" | "delete" | "deleteMany" | "consumeOne" | "incrementOne" | "count";
|
|
67
67
|
model: string;
|
|
68
68
|
schema: BetterAuthDBSchema;
|
|
69
69
|
options: BetterAuthOptions;
|
package/dist/auth/index.js
CHANGED
|
@@ -988,7 +988,8 @@ const httpAdapter = (ctx, { authFunctions, debugLogs, schema }) => {
|
|
|
988
988
|
},
|
|
989
989
|
update: async (data) => {
|
|
990
990
|
if (!("runMutation" in ctx)) throw new Error("ctx is not a mutation ctx");
|
|
991
|
-
if (data.where?.length
|
|
991
|
+
if (!data.where?.length) return null;
|
|
992
|
+
if (data.where.every((w) => (w.operator === "eq" || w.operator === void 0) && w.connector !== "OR")) {
|
|
992
993
|
const countResult = await handlePagination(async ({ paginationOpts }) => await ctx.runQuery(authFunctions.findMany, {
|
|
993
994
|
model: data.model,
|
|
994
995
|
paginationOpts,
|
|
@@ -1161,7 +1162,8 @@ const dbAdapter = (ctx, getAuthOptions, { authFunctions, debugLogs, schema }) =>
|
|
|
1161
1162
|
}, schema, betterAuthSchema);
|
|
1162
1163
|
},
|
|
1163
1164
|
update: async (data) => {
|
|
1164
|
-
if (data.where?.length
|
|
1165
|
+
if (!data.where?.length) return null;
|
|
1166
|
+
if (data.where.every((w) => (w.operator === "eq" || w.operator === void 0) && w.connector !== "OR")) {
|
|
1165
1167
|
const countResult = await handlePagination(async ({ paginationOpts }) => await findManyHandler(ctx, {
|
|
1166
1168
|
model: data.model,
|
|
1167
1169
|
paginationOpts,
|
|
@@ -9,17 +9,27 @@ import { t as createCallerFactory } from "../../caller-factory-NEfgD5E0.js";
|
|
|
9
9
|
*/
|
|
10
10
|
const TRAILING_COLON_RE = /:$/;
|
|
11
11
|
const requestCanHaveBody = (method) => method !== "GET" && method !== "HEAD" && method !== "OPTIONS";
|
|
12
|
+
const stripHopByHopHeaders = (headers) => {
|
|
13
|
+
headers.delete("connection");
|
|
14
|
+
headers.delete("content-length");
|
|
15
|
+
headers.delete("transfer-encoding");
|
|
16
|
+
};
|
|
12
17
|
const handler = async (request, siteUrl) => {
|
|
13
18
|
const requestUrl = new URL(request.url);
|
|
14
19
|
const nextUrl = `${siteUrl}${requestUrl.pathname}${requestUrl.search}`;
|
|
15
20
|
const headers = new Headers(request.headers);
|
|
21
|
+
stripHopByHopHeaders(headers);
|
|
16
22
|
headers.set("accept-encoding", "application/json");
|
|
17
23
|
headers.set("host", new URL(siteUrl).host);
|
|
18
24
|
headers.set("x-forwarded-host", requestUrl.host);
|
|
19
25
|
headers.set("x-forwarded-proto", requestUrl.protocol.replace(TRAILING_COLON_RE, ""));
|
|
20
26
|
headers.set("x-better-auth-forwarded-host", requestUrl.host);
|
|
21
27
|
headers.set("x-better-auth-forwarded-proto", requestUrl.protocol.replace(TRAILING_COLON_RE, ""));
|
|
22
|
-
|
|
28
|
+
let body;
|
|
29
|
+
if (requestCanHaveBody(request.method)) {
|
|
30
|
+
const bufferedBody = await request.arrayBuffer();
|
|
31
|
+
if (bufferedBody.byteLength > 0) body = bufferedBody;
|
|
32
|
+
}
|
|
23
33
|
return fetch(nextUrl, {
|
|
24
34
|
body,
|
|
25
35
|
headers,
|
|
@@ -62,8 +72,7 @@ function convexBetterAuth(opts) {
|
|
|
62
72
|
auth: jwtCacheEnabled ? {
|
|
63
73
|
getToken: (siteUrl, headers, getTokenOpts) => {
|
|
64
74
|
const mutableHeaders = new Headers(headers);
|
|
65
|
-
mutableHeaders
|
|
66
|
-
mutableHeaders.delete("transfer-encoding");
|
|
75
|
+
stripHopByHopHeaders(mutableHeaders);
|
|
67
76
|
mutableHeaders.set("accept-encoding", "identity");
|
|
68
77
|
return getToken(siteUrl, mutableHeaders, {
|
|
69
78
|
basePath: auth.basePath,
|
|
@@ -8,6 +8,12 @@ import React from "react";
|
|
|
8
8
|
const fallbackCache = (fn) => fn;
|
|
9
9
|
const cache = React.cache ?? fallbackCache;
|
|
10
10
|
const TRAILING_COLON_RE = /:$/;
|
|
11
|
+
const requestCanHaveBody = (method) => method !== "GET" && method !== "HEAD" && method !== "OPTIONS";
|
|
12
|
+
const stripHopByHopHeaders = (headers) => {
|
|
13
|
+
headers.delete("connection");
|
|
14
|
+
headers.delete("content-length");
|
|
15
|
+
headers.delete("transfer-encoding");
|
|
16
|
+
};
|
|
11
17
|
function setupClient(options) {
|
|
12
18
|
const client = new ConvexHttpClient(options.convexUrl);
|
|
13
19
|
if (options.token !== void 0) client.setAuth(options.token);
|
|
@@ -49,20 +55,25 @@ const cloneAuthHandlerResponse = (response) => {
|
|
|
49
55
|
statusText: response.statusText
|
|
50
56
|
});
|
|
51
57
|
};
|
|
52
|
-
const handler = (request, opts) => {
|
|
58
|
+
const handler = async (request, opts) => {
|
|
53
59
|
const requestUrl = new URL(request.url);
|
|
54
60
|
const nextUrl = `${opts.convexSiteUrl}${requestUrl.pathname}${requestUrl.search}`;
|
|
55
61
|
const headers = new Headers(request.headers);
|
|
56
62
|
const proto = requestUrl.protocol.replace(TRAILING_COLON_RE, "");
|
|
63
|
+
stripHopByHopHeaders(headers);
|
|
57
64
|
headers.set("accept-encoding", "application/json");
|
|
58
65
|
headers.set("host", new URL(opts.convexSiteUrl).host);
|
|
59
66
|
headers.set("x-forwarded-host", requestUrl.host);
|
|
60
67
|
headers.set("x-forwarded-proto", proto);
|
|
61
68
|
headers.set("x-better-auth-forwarded-host", requestUrl.host);
|
|
62
69
|
headers.set("x-better-auth-forwarded-proto", proto);
|
|
70
|
+
let body;
|
|
71
|
+
if (requestCanHaveBody(request.method)) {
|
|
72
|
+
const bufferedBody = await request.arrayBuffer();
|
|
73
|
+
if (bufferedBody.byteLength > 0) body = bufferedBody;
|
|
74
|
+
}
|
|
63
75
|
return fetch(nextUrl, {
|
|
64
|
-
body
|
|
65
|
-
duplex: "half",
|
|
76
|
+
body,
|
|
66
77
|
headers,
|
|
67
78
|
method: request.method,
|
|
68
79
|
redirect: "manual"
|
|
@@ -73,8 +84,7 @@ const convexBetterAuthReactStart = (opts) => {
|
|
|
73
84
|
const cachedGetToken = cache(async (opts) => {
|
|
74
85
|
const headers = getRequestHeaders();
|
|
75
86
|
const mutableHeaders = new Headers(headers);
|
|
76
|
-
mutableHeaders
|
|
77
|
-
mutableHeaders.delete("transfer-encoding");
|
|
87
|
+
stripHopByHopHeaders(mutableHeaders);
|
|
78
88
|
mutableHeaders.set("accept-encoding", "identity");
|
|
79
89
|
return getToken(siteUrl, mutableHeaders, opts);
|
|
80
90
|
});
|
|
@@ -6235,7 +6235,8 @@ const VERSION_IN_SPEC_RE = /(\d+)\.(\d+)(?:\.\d+)?/;
|
|
|
6235
6235
|
const PLAIN_VERSION_SPEC_RE = /^[\^~]?v?\d+\.\d+(?:\.\d+)?$/;
|
|
6236
6236
|
const UPPER_BOUND_RE = /(?:^|\s)<={0,1}\s*v?(\d+)\.(\d+)(?:\.\d+)?/g;
|
|
6237
6237
|
const SUPPORTED_CONVEX_VERSION = "1.38.0";
|
|
6238
|
-
const SUPPORTED_BETTER_AUTH_VERSION = "1.6.
|
|
6238
|
+
const SUPPORTED_BETTER_AUTH_VERSION = "1.6.18";
|
|
6239
|
+
const SUPPORTED_BETTER_AUTH_MIN_VERSION = "1.6.11";
|
|
6239
6240
|
const SUPPORTED_HONO_VERSION = "4.12.9";
|
|
6240
6241
|
const SUPPORTED_OPENTELEMETRY_API_VERSION = "1.9.0";
|
|
6241
6242
|
const SUPPORTED_TANSTACK_REACT_QUERY_VERSION = "5.95.2";
|
|
@@ -6248,6 +6249,11 @@ function getMinimumVersionRange(version) {
|
|
|
6248
6249
|
if (!match) throw new Error(`Unsupported exact version "${version}". Expected x.y.z format.`);
|
|
6249
6250
|
return `>=${match[1]}.${match[2]}`;
|
|
6250
6251
|
}
|
|
6252
|
+
function getMinorVersionPeerRange(minimumVersion, supportedVersion) {
|
|
6253
|
+
const match = EXACT_VERSION_RE.exec(supportedVersion);
|
|
6254
|
+
if (!match) throw new Error(`Unsupported exact version "${supportedVersion}". Expected x.y.z format.`);
|
|
6255
|
+
return `>=${minimumVersion} <${match[1]}.${Number(match[2]) + 1}.0`;
|
|
6256
|
+
}
|
|
6251
6257
|
function getPackageNameFromInstallSpec(spec) {
|
|
6252
6258
|
const normalized = spec.trim();
|
|
6253
6259
|
if (normalized.length === 0) throw new Error("Install spec must be non-empty.");
|
|
@@ -6302,7 +6308,10 @@ const SUPPORTED_DEPENDENCY_VERSIONS = {
|
|
|
6302
6308
|
range: `^${SUPPORTED_CONVEX_VERSION}`,
|
|
6303
6309
|
minimum: getMinimumVersionRange(SUPPORTED_CONVEX_VERSION)
|
|
6304
6310
|
},
|
|
6305
|
-
betterAuth: {
|
|
6311
|
+
betterAuth: {
|
|
6312
|
+
exact: SUPPORTED_BETTER_AUTH_VERSION,
|
|
6313
|
+
peer: getMinorVersionPeerRange(SUPPORTED_BETTER_AUTH_MIN_VERSION, SUPPORTED_BETTER_AUTH_VERSION)
|
|
6314
|
+
},
|
|
6306
6315
|
hono: { exact: SUPPORTED_HONO_VERSION },
|
|
6307
6316
|
opentelemetryApi: { exact: SUPPORTED_OPENTELEMETRY_API_VERSION },
|
|
6308
6317
|
tanstackReactQuery: { exact: SUPPORTED_TANSTACK_REACT_QUERY_VERSION },
|
|
@@ -10234,7 +10243,7 @@ const AUTH_ENV_FIELDS = [
|
|
|
10234
10243
|
schema: "z.string().optional()"
|
|
10235
10244
|
}
|
|
10236
10245
|
];
|
|
10237
|
-
const BETTER_AUTH_EXPO_INSTALL_SPEC = "@better-auth/expo@1.6.
|
|
10246
|
+
const BETTER_AUTH_EXPO_INSTALL_SPEC = "@better-auth/expo@1.6.18";
|
|
10238
10247
|
const EXPO_SECURE_STORE_INSTALL_SPEC = "expo-secure-store@~55.0.8";
|
|
10239
10248
|
const EXPO_NETWORK_INSTALL_SPEC = "expo-network@~55.0.8";
|
|
10240
10249
|
const AUTH_FILES = [
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as promptForScaffoldTemplateSelection, A as resolveCodegenTrimSegments, At as highlighter, B as runConfiguredCodegen, C as isEntryPoint, Ct as formatDependencyInstallCommand, D as parseInitCommandArgs, E as parseBackendRunJson, Et as stripConvexCommandNoise, F as resolveRunDeps, G as runMigrationFlow, H as runDevSchemaBackfillIfNeeded, I as runAfterScaffoldScript, J as withWorkingDirectory, K as trackProcess, L as runAggregateBackfillFlow, M as resolveDocTopic, N as resolveInitProjectDir, O as readPackageVersions, P as resolveMigrationConfig, Q as promptForPluginSelection, R as runAggregatePruneFlow, S as isConvexDevPreRunConflictFlag, St as detectPackageManager, T as parseArgs, Tt as serializeEnvValue, U as runInitCommandFlow, V as runConvexInitIfNeeded, W as runMigrationCreate, X as collectPluginScaffoldTemplates, Y as createSpinner, Z as filterScaffoldTemplatePathMap, _ as formatInfoOutput, _t as applyPlanningDependencyInstall, a as cleanup, at as getPluginCatalogEntry, b as getDevAggregateBackfillStatePath, bt as resolveSupportedDependencyWarnings, c as createCommandEnv, ct as buildPluginInstallPlan, d as extractBackfillCliOptions, dt as collectInstalledPluginKeys, et as resolveAddTemplateDefaults, f as extractConcaveRunTargetArgs, ft as getPluginLockfilePath, g as formatDocsOutput, gt as applyDependencyHintsInstall, h as extractResetCliOptions, ht as resolveSchemaInstalledPlugins, i as buildInitializationPlan, it as resolveTemplatesByIdOrThrow, j as resolveConfiguredBackend, k as resolveBackfillConfig, kt as logger, l as ensureConvexGitignoreEntry, lt as resolvePluginScaffoldRoots, m as extractMigrationDownOptions, mt as readPluginLockfile, n as applyPluginInstallPlanFiles, nt as resolvePresetScaffoldTemplates, o as createBackendAdapter, ot as getSupportedPluginKeys, p as extractMigrationCliOptions, pt as getSchemaFilePath, q as withLocalCodegenEnv, r as assertNoRemovedDevPreRunFlag, rt as resolveTemplateSelectionSource, s as createBackendCommandEnv, st as isSupportedPluginKey, t as applyDependencyInstallPlan, tt as resolvePluginPreset, u as extractBackendRunTargetArgs, ut as assertSchemaFileExists, v as getAggregateBackfillDeploymentKey, vt as applyPluginDependencyInstall, w as isInitialized, wt as resolveAuthEnvState, x as hasRemoteConvexDeploymentEnv, xt as resolveProjectScaffoldContext, y as getConvexDeploymentCommandEnv, yt as inspectPluginDependencyInstall, z as runBackendFunction } from "./backend-core-
|
|
2
|
+
import { $ as promptForScaffoldTemplateSelection, A as resolveCodegenTrimSegments, At as highlighter, B as runConfiguredCodegen, C as isEntryPoint, Ct as formatDependencyInstallCommand, D as parseInitCommandArgs, E as parseBackendRunJson, Et as stripConvexCommandNoise, F as resolveRunDeps, G as runMigrationFlow, H as runDevSchemaBackfillIfNeeded, I as runAfterScaffoldScript, J as withWorkingDirectory, K as trackProcess, L as runAggregateBackfillFlow, M as resolveDocTopic, N as resolveInitProjectDir, O as readPackageVersions, P as resolveMigrationConfig, Q as promptForPluginSelection, R as runAggregatePruneFlow, S as isConvexDevPreRunConflictFlag, St as detectPackageManager, T as parseArgs, Tt as serializeEnvValue, U as runInitCommandFlow, V as runConvexInitIfNeeded, W as runMigrationCreate, X as collectPluginScaffoldTemplates, Y as createSpinner, Z as filterScaffoldTemplatePathMap, _ as formatInfoOutput, _t as applyPlanningDependencyInstall, a as cleanup, at as getPluginCatalogEntry, b as getDevAggregateBackfillStatePath, bt as resolveSupportedDependencyWarnings, c as createCommandEnv, ct as buildPluginInstallPlan, d as extractBackfillCliOptions, dt as collectInstalledPluginKeys, et as resolveAddTemplateDefaults, f as extractConcaveRunTargetArgs, ft as getPluginLockfilePath, g as formatDocsOutput, gt as applyDependencyHintsInstall, h as extractResetCliOptions, ht as resolveSchemaInstalledPlugins, i as buildInitializationPlan, it as resolveTemplatesByIdOrThrow, j as resolveConfiguredBackend, k as resolveBackfillConfig, kt as logger, l as ensureConvexGitignoreEntry, lt as resolvePluginScaffoldRoots, m as extractMigrationDownOptions, mt as readPluginLockfile, n as applyPluginInstallPlanFiles, nt as resolvePresetScaffoldTemplates, o as createBackendAdapter, ot as getSupportedPluginKeys, p as extractMigrationCliOptions, pt as getSchemaFilePath, q as withLocalCodegenEnv, r as assertNoRemovedDevPreRunFlag, rt as resolveTemplateSelectionSource, s as createBackendCommandEnv, st as isSupportedPluginKey, t as applyDependencyInstallPlan, tt as resolvePluginPreset, u as extractBackendRunTargetArgs, ut as assertSchemaFileExists, v as getAggregateBackfillDeploymentKey, vt as applyPluginDependencyInstall, w as isInitialized, wt as resolveAuthEnvState, x as hasRemoteConvexDeploymentEnv, xt as resolveProjectScaffoldContext, y as getConvexDeploymentCommandEnv, yt as inspectPluginDependencyInstall, z as runBackendFunction } from "./backend-core-Cn1Y1i2O.mjs";
|
|
3
3
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import path, { delimiter, dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -790,7 +790,7 @@ async function startLocalSiteProxy(options) {
|
|
|
790
790
|
const targetUrl = new URL(request.url ?? "/", options.targetOrigin);
|
|
791
791
|
const headers = new Headers();
|
|
792
792
|
for (const [key, value] of Object.entries(request.headers)) {
|
|
793
|
-
if (value === void 0 || key === "host" || key === "connection" || key === "content-length") continue;
|
|
793
|
+
if (value === void 0 || key === "host" || key === "connection" || key === "content-length" || key === "transfer-encoding") continue;
|
|
794
794
|
if (Array.isArray(value)) {
|
|
795
795
|
for (const entry of value) headers.append(key, entry);
|
|
796
796
|
continue;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import { JSX, ParentProps } from "solid-js";
|
|
|
4
4
|
import { DefaultError, QueryCache, QueryClient, QueryFilters, QueryFunction, QueryFunctionContext, QueryKey, SkipToken, SolidMutationOptions, SolidQueryOptions } from "@tanstack/solid-query";
|
|
5
5
|
import { AuthTokenFetcher, ConvexClient, ConvexHttpClient } from "convex/browser";
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
import
|
|
8
|
-
import { BetterAuthClientPlugin, Session, User } from "better-auth";
|
|
7
|
+
import { BetterAuthClientPlugin } from "better-auth/client";
|
|
9
8
|
import { createAuthClient } from "better-auth/solid";
|
|
9
|
+
import * as better_auth0 from "better-auth";
|
|
10
|
+
import { Session, User } from "better-auth";
|
|
10
11
|
import * as better_auth_api0 from "better-auth/api";
|
|
11
12
|
import * as better_auth_plugins_oidc_provider0 from "better-auth/plugins/oidc-provider";
|
|
12
13
|
import * as jose from "jose";
|
|
@@ -1186,8 +1187,11 @@ declare const convexClient: () => {
|
|
|
1186
1187
|
};
|
|
1187
1188
|
//#endregion
|
|
1188
1189
|
//#region src/solid/types.d.ts
|
|
1190
|
+
type OpaqueClientPlugin = Omit<BetterAuthClientPlugin, '$InferServerPlugin'> & {
|
|
1191
|
+
$InferServerPlugin?: never;
|
|
1192
|
+
};
|
|
1189
1193
|
type ConvexClient$1 = ReturnType<typeof convexClient>;
|
|
1190
|
-
type CrossDomainClient =
|
|
1194
|
+
type CrossDomainClient = OpaqueClientPlugin & {
|
|
1191
1195
|
id: 'cross-domain';
|
|
1192
1196
|
getActions: (...args: never[]) => {
|
|
1193
1197
|
crossDomain: {
|
|
@@ -1199,8 +1203,8 @@ type CrossDomainClient = BetterAuthClientPlugin & {
|
|
|
1199
1203
|
notifySessionSignal: () => void;
|
|
1200
1204
|
};
|
|
1201
1205
|
};
|
|
1202
|
-
type PluginsWithCrossDomain = (CrossDomainClient | ConvexClient$1 |
|
|
1203
|
-
type PluginsWithoutCrossDomain = (ConvexClient$1 |
|
|
1206
|
+
type PluginsWithCrossDomain = (CrossDomainClient | ConvexClient$1 | OpaqueClientPlugin)[];
|
|
1207
|
+
type PluginsWithoutCrossDomain = (ConvexClient$1 | OpaqueClientPlugin)[];
|
|
1204
1208
|
type SolidAuthSessionState = {
|
|
1205
1209
|
data: unknown;
|
|
1206
1210
|
error?: unknown;
|
|
@@ -1232,7 +1236,7 @@ type SolidAuthProviderClient = {
|
|
|
1232
1236
|
updateSession?: (...args: never[]) => unknown;
|
|
1233
1237
|
useSession: () => () => SolidAuthSessionState;
|
|
1234
1238
|
} & Record<string, unknown>;
|
|
1235
|
-
type AuthClientWithPlugins<Plugins extends
|
|
1239
|
+
type AuthClientWithPlugins<Plugins extends BetterAuthClientPlugin[]> = ReturnType<typeof createAuthClient<{
|
|
1236
1240
|
plugins: Plugins;
|
|
1237
1241
|
}>>;
|
|
1238
1242
|
type SolidAuthClient = AuthClientWithPlugins<PluginsWithCrossDomain> | AuthClientWithPlugins<PluginsWithoutCrossDomain>;
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Dt as generateMeta, F as resolveRunDeps, Ot as getConvexConfig, j as resolveConfiguredBackend, kt as logger, q as withLocalCodegenEnv } from "./backend-core-
|
|
2
|
+
import { Dt as generateMeta, F as resolveRunDeps, Ot as getConvexConfig, j as resolveConfiguredBackend, kt as logger, q as withLocalCodegenEnv } from "./backend-core-Cn1Y1i2O.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitcn",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.14",
|
|
4
4
|
"description": "kitcn - React Query integration and CLI tools for Convex",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"convex",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@tanstack/react-query": ">=5",
|
|
93
93
|
"@tanstack/react-start": ">=1",
|
|
94
94
|
"@tanstack/solid-query": ">=5",
|
|
95
|
-
"better-auth": "1.6.
|
|
95
|
+
"better-auth": ">=1.6.11 <1.7.0",
|
|
96
96
|
"convex": ">=1.38",
|
|
97
97
|
"hono": "4.12.9",
|
|
98
98
|
"next": ">=14",
|