@devframes/nuxt 0.9.11 → 0.9.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/hub.mjs +1 -2
- package/dist/module.json +1 -1
- package/dist/single.mjs +5 -3
- package/package.json +6 -6
package/dist/hub.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addVitePlugin,
|
|
1
|
+
import { addVitePlugin, defineNuxtModule } from "@nuxt/kit";
|
|
2
2
|
import { DEVFRAMES_HUB_BASE, normalizeHubBase } from "@devframes/hub/constants";
|
|
3
3
|
import { viteDevframeHub } from "@devframes/vite/hub";
|
|
4
4
|
//#region src/hub.ts
|
|
@@ -37,7 +37,6 @@ var hub_default = defineNuxtModule({
|
|
|
37
37
|
setup(options, nuxt) {
|
|
38
38
|
if (!options.quiet) recommendNuxtDevtools();
|
|
39
39
|
if (!nuxt.options.dev) return;
|
|
40
|
-
createResolver(import.meta.url);
|
|
41
40
|
const base = normalizeHubBase(options.base ?? DEVFRAMES_HUB_BASE);
|
|
42
41
|
const { injectEmbedded, quiet: _quiet, ...hubOptions } = options;
|
|
43
42
|
addVitePlugin(viteDevframeHub({
|
package/dist/module.json
CHANGED
package/dist/single.mjs
CHANGED
|
@@ -53,8 +53,10 @@ var single_default = defineNuxtModule({
|
|
|
53
53
|
nuxt.options.runtimeConfig ??= {};
|
|
54
54
|
nuxt.options.runtimeConfig.public ??= {};
|
|
55
55
|
const publicConfig = nuxt.options.runtimeConfig.public;
|
|
56
|
-
publicConfig.devframe
|
|
57
|
-
|
|
56
|
+
publicConfig.devframe = {
|
|
57
|
+
...publicConfig.devframe,
|
|
58
|
+
baseURL: options.baseURL
|
|
59
|
+
};
|
|
58
60
|
const runtimeDir = resolve("./runtime");
|
|
59
61
|
nuxt.hook("prepare:types", ({ references }) => {
|
|
60
62
|
references.push({ path: resolve(runtimeDir, "types") });
|
|
@@ -64,7 +66,7 @@ var single_default = defineNuxtModule({
|
|
|
64
66
|
mode: "client"
|
|
65
67
|
});
|
|
66
68
|
if (options.devframe && options.devMiddleware !== false && nuxt.options.dev) {
|
|
67
|
-
const mw = options.devMiddleware ===
|
|
69
|
+
const mw = typeof options.devMiddleware === "object" ? options.devMiddleware : {};
|
|
68
70
|
const host = mw.host ?? nuxt.options.devServer?.host ?? options.devframe.cli?.host;
|
|
69
71
|
addVitePlugin(devframeViteBridge(options.devframe, {
|
|
70
72
|
base: options.baseURL ?? "./",
|
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.12",
|
|
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",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@devframes/hub": "0.9.
|
|
45
|
+
"@devframes/hub": "0.9.12",
|
|
46
46
|
"@nuxt/kit": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
|
|
47
|
-
"devframe": "0.9.
|
|
47
|
+
"devframe": "0.9.12",
|
|
48
48
|
"vue": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@devframes/vite": "0.9.
|
|
59
|
+
"@devframes/vite": "0.9.12"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@devframes/hub": "0.9.
|
|
62
|
+
"@devframes/hub": "0.9.12",
|
|
63
63
|
"@nuxt/kit": "^4.5.2",
|
|
64
64
|
"@types/node": "^26.4.0",
|
|
65
|
-
"devframe": "0.9.
|
|
65
|
+
"devframe": "0.9.12",
|
|
66
66
|
"nuxt": "^4.5.2",
|
|
67
67
|
"tsdown": "^0.22.14",
|
|
68
68
|
"vue": "^3.5.42"
|