abckit 0.0.11 → 0.0.12
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/module.d.mts
CHANGED
|
@@ -27,12 +27,24 @@ interface SetupConfig {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
+
interface AuthClientOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Base URL for Better Auth client
|
|
33
|
+
* Required for Capacitor/mobile apps where the default URL is not http/https
|
|
34
|
+
* @example 'https://api.example.com'
|
|
35
|
+
*/
|
|
36
|
+
baseURL?: string;
|
|
37
|
+
}
|
|
30
38
|
interface ModuleOptions {
|
|
31
39
|
/**
|
|
32
40
|
* Enable Sentry user tracking in useAuth composable
|
|
33
41
|
* @default false
|
|
34
42
|
*/
|
|
35
43
|
sentry?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Better Auth client configuration
|
|
46
|
+
*/
|
|
47
|
+
auth?: AuthClientOptions;
|
|
36
48
|
}
|
|
37
49
|
declare module 'nuxt/schema' {
|
|
38
50
|
interface AppConfig extends BreadcrumbsConfig, SetupConfig {
|
|
@@ -77,10 +89,13 @@ declare module 'nuxt/schema' {
|
|
|
77
89
|
};
|
|
78
90
|
abckit: {
|
|
79
91
|
sentry: boolean;
|
|
92
|
+
auth: {
|
|
93
|
+
baseURL?: string;
|
|
94
|
+
};
|
|
80
95
|
};
|
|
81
96
|
}
|
|
82
97
|
}
|
|
83
98
|
declare const _default: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
84
99
|
|
|
85
100
|
export { _default as default };
|
|
86
|
-
export type { BreadcrumbsConfig, ModuleOptions, SetupConfig };
|
|
101
|
+
export type { AuthClientOptions, BreadcrumbsConfig, ModuleOptions, SetupConfig };
|
package/dist/module.mjs
CHANGED
|
@@ -27,11 +27,12 @@ const module$1 = defineNuxtModule({
|
|
|
27
27
|
}),
|
|
28
28
|
async setup(options, nuxt) {
|
|
29
29
|
const { resolve } = createResolver(import.meta.url);
|
|
30
|
-
nuxt.options.runtimeConfig.public =
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
nuxt.options.runtimeConfig.public.abckit = {
|
|
31
|
+
sentry: nuxt.options.runtimeConfig.public.abckit?.sentry ?? options.sentry ?? false,
|
|
32
|
+
auth: {
|
|
33
|
+
baseURL: nuxt.options.runtimeConfig.public.abckit?.auth?.baseURL ?? options.auth?.baseURL
|
|
33
34
|
}
|
|
34
|
-
}
|
|
35
|
+
};
|
|
35
36
|
nuxt.options.runtimeConfig.dragonfly = defu(nuxt.options.runtimeConfig.dragonfly, {
|
|
36
37
|
host: "dragonfly",
|
|
37
38
|
port: Number.parseInt("6379", 10),
|