kitcn 0.15.13 → 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.
|
@@ -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" | "consumeOne" | "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;
|
|
@@ -6235,7 +6235,7 @@ 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
6239
|
const SUPPORTED_BETTER_AUTH_MIN_VERSION = "1.6.11";
|
|
6240
6240
|
const SUPPORTED_HONO_VERSION = "4.12.9";
|
|
6241
6241
|
const SUPPORTED_OPENTELEMETRY_API_VERSION = "1.9.0";
|
|
@@ -10243,7 +10243,7 @@ const AUTH_ENV_FIELDS = [
|
|
|
10243
10243
|
schema: "z.string().optional()"
|
|
10244
10244
|
}
|
|
10245
10245
|
];
|
|
10246
|
-
const BETTER_AUTH_EXPO_INSTALL_SPEC = "@better-auth/expo@1.6.
|
|
10246
|
+
const BETTER_AUTH_EXPO_INSTALL_SPEC = "@better-auth/expo@1.6.18";
|
|
10247
10247
|
const EXPO_SECURE_STORE_INSTALL_SPEC = "expo-secure-store@~55.0.8";
|
|
10248
10248
|
const EXPO_NETWORK_INSTALL_SPEC = "expo-network@~55.0.8";
|
|
10249
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";
|
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
|
|