@devframes/nuxt 0.9.0 → 0.9.1
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.json
CHANGED
|
@@ -6,7 +6,8 @@ import { defineNuxtPlugin, useRuntimeConfig } from "#imports";
|
|
|
6
6
|
* and provides the RPC client as `$rpc` / `useNuxtApp().$rpc`.
|
|
7
7
|
*/
|
|
8
8
|
var plugin_client_default = defineNuxtPlugin({ async setup() {
|
|
9
|
-
|
|
9
|
+
const baseURL = useRuntimeConfig().public.devframe.baseURL ?? "./";
|
|
10
|
+
return { provide: { rpc: await connectDevframe({ baseURL }) } };
|
|
10
11
|
} });
|
|
11
12
|
//#endregion
|
|
12
13
|
export { plugin_client_default as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"description": "Nuxt module that exposes a Nuxt app as a devframe client.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@nuxt/kit": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
|
|
46
46
|
"vue": "^3.0.0",
|
|
47
|
-
"@devframes/hub": "0.9.
|
|
48
|
-
"devframe": "0.9.
|
|
47
|
+
"@devframes/hub": "0.9.1",
|
|
48
|
+
"devframe": "0.9.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@devframes/hub": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@devframes/vite": "0.9.
|
|
59
|
+
"@devframes/vite": "0.9.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@nuxt/kit": "^4.5.2",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"nuxt": "^4.5.2",
|
|
65
65
|
"tsdown": "^0.22.14",
|
|
66
66
|
"vue": "^3.5.41",
|
|
67
|
-
"@devframes/hub": "0.9.
|
|
68
|
-
"devframe": "0.9.
|
|
67
|
+
"@devframes/hub": "0.9.1",
|
|
68
|
+
"devframe": "0.9.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|