@nuxt/devtools-nightly 4.0.0-29889901.a2a4fc6 → 4.0.0-29893089.d6a282e
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/module-main.mjs +10 -2
- package/dist/module.json +1 -1
- package/package.json +3 -3
|
@@ -25,7 +25,7 @@ import { getPackageInfo } from 'local-pkg';
|
|
|
25
25
|
import { DEVTOOLS_TERMINALS_DOCK_ID } from '@vitejs/devtools-kit/constants';
|
|
26
26
|
import { debounce } from 'perfect-debounce';
|
|
27
27
|
|
|
28
|
-
const version = "4.0.0-
|
|
28
|
+
const version = "4.0.0-29893089.d6a282e";
|
|
29
29
|
const peerDependencies = {
|
|
30
30
|
"@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
|
|
31
31
|
nitro: "*",
|
|
@@ -1825,9 +1825,12 @@ async function enableModule(options, nuxt) {
|
|
|
1825
1825
|
const clientAssetsSource = isSelfClient ? void 0 : resolveClientAssetsSource();
|
|
1826
1826
|
const clientUrl = clientAssetsSource ? `${ROUTE_CLIENT}/` : `${nuxt.options.app.baseURL || "/"}/`.replace(MULTIPLE_SLASHES_RE, "/");
|
|
1827
1827
|
let publicDevServerOrigin;
|
|
1828
|
-
|
|
1828
|
+
const allowedOrigins = [];
|
|
1829
|
+
nuxt.hook("listen", async (_server, listener) => {
|
|
1829
1830
|
if (listener?.url)
|
|
1830
1831
|
publicDevServerOrigin = new URL(listener.url).origin;
|
|
1832
|
+
const urls = await listener?.getURLs?.() ?? [];
|
|
1833
|
+
allowedOrigins.push(...urls.map(({ url }) => new URL(url).origin));
|
|
1831
1834
|
});
|
|
1832
1835
|
const branding = {
|
|
1833
1836
|
productName: "Nuxt DevTools",
|
|
@@ -1841,8 +1844,13 @@ async function enableModule(options, nuxt) {
|
|
|
1841
1844
|
windowTitle: "Nuxt DevTools"
|
|
1842
1845
|
};
|
|
1843
1846
|
viteDevToolsDefaults.branding = branding;
|
|
1847
|
+
viteDevToolsDefaults.allowedOrigins = allowedOrigins;
|
|
1844
1848
|
if (isGreaterThanOrEqual(version$1, "8.3.0")) {
|
|
1845
1849
|
extendViteDevToolsConfig((devtools) => {
|
|
1850
|
+
devtools.allowedOrigins = [
|
|
1851
|
+
...devtools.allowedOrigins ?? [],
|
|
1852
|
+
...allowedOrigins
|
|
1853
|
+
];
|
|
1846
1854
|
for (const [key, value] of Object.entries(viteDevToolsDefaults))
|
|
1847
1855
|
devtools[key] ??= value;
|
|
1848
1856
|
});
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-
|
|
4
|
+
"version": "4.0.0-29893089.d6a282e",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://nuxt.com/modules/devtools",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@devframes/plugin-code-server": "^1.2.6",
|
|
49
49
|
"@devframes/plugin-data-inspector": "^1.2.6",
|
|
50
50
|
"@devframes/plugin-og": "^1.2.6",
|
|
51
|
-
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-
|
|
52
|
-
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-
|
|
51
|
+
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-29893089.d6a282e",
|
|
52
|
+
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-29893089.d6a282e",
|
|
53
53
|
"@vitejs/devtools": "^0.8.0",
|
|
54
54
|
"@vitejs/devtools-kit": "^0.8.0",
|
|
55
55
|
"consola": "^3.4.2",
|