nuxt-convex-module 0.12.1 → 0.12.3
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/chunks/index.mjs +8 -1
- package/dist/devtools-client/_nuxt/{DGCFzitC.js → COXexnyN.js} +3 -3
- package/dist/devtools-client/_nuxt/{entry.egvhSnkx.css → entry.DsZySRVW.css} +1 -1
- package/dist/devtools-client/index.html +1 -1
- package/dist/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +23 -7
- package/dist/runtime/better-auth/nuxt/server.js +11 -5
- package/dist/runtime/better-auth/vue/plugin.server.js +6 -1
- package/dist/runtime/better-auth/vue/token-store.d.ts +1 -0
- package/dist/runtime/better-auth/vue/token-store.js +18 -0
- package/dist/runtime/better-auth/vue/use-better-auth.js +43 -31
- package/dist/runtime/devtools/dock-client.d.ts +52 -0
- package/dist/runtime/devtools/dock-client.js +63 -0
- package/dist/runtime/nuxt/config.d.ts +7 -1
- package/dist/runtime/nuxt/config.js +9 -3
- package/dist/runtime/vue/client.js +13 -0
- package/dist/runtime/vue/plugin.d.ts +2 -1
- package/dist/runtime/vue/plugin.js +2 -0
- package/package.json +11 -11
package/dist/chunks/index.mjs
CHANGED
|
@@ -99,6 +99,8 @@ function setupDevtools(resolver, nuxt, info) {
|
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
nuxt.hook("devtools:ready", (ctx) => {
|
|
102
|
+
const { baseURL, buildAssetsDir } = nuxt.options.app;
|
|
103
|
+
const dockClient = [".js", ".ts"].map((extension) => resolver.resolve(`./runtime/devtools/dock-client${extension}`)).find((path) => existsSync(path))?.replaceAll("\\", "/");
|
|
102
104
|
ctx.docks.register({
|
|
103
105
|
id: RPC_NAMESPACE,
|
|
104
106
|
title: "Convex",
|
|
@@ -107,7 +109,12 @@ function setupDevtools(resolver, nuxt, info) {
|
|
|
107
109
|
url: `${DEVTOOLS_UI_ROUTE}/?${DEVTOOLS_DOCK_PARAM}`,
|
|
108
110
|
// `NUXT_DEVTOOLS_GROUP_ID`: the kit is a type-only dependency.
|
|
109
111
|
groupId: "nuxt",
|
|
110
|
-
category: "modules"
|
|
112
|
+
category: "modules",
|
|
113
|
+
// Badges the dock with the client's health before the panel is opened.
|
|
114
|
+
clientScript: dockClient ? {
|
|
115
|
+
importFrom: `${baseURL}/${buildAssetsDir}/@fs/${dockClient}`.replaceAll(/\/{2,}/g, "/"),
|
|
116
|
+
eager: true
|
|
117
|
+
} : void 0
|
|
111
118
|
});
|
|
112
119
|
const { rpc } = ctx.scope(RPC_NAMESPACE);
|
|
113
120
|
rpc.register({ name: "getInfo", type: "query", handler: functions.getInfo });
|