@mcpc-tech/unplugin-dev-inspector-mcp 0.0.2-beta.34 → 0.0.2-beta.35

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/index.cjs CHANGED
@@ -88212,6 +88212,8 @@ const unplugin$1 = (0, unplugin.createUnplugin)((options = {}) => {
88212
88212
  const enabled = options.enabled ?? process.env.NODE_ENV !== "production";
88213
88213
  const enableMcp = options.enableMcp ?? true;
88214
88214
  const virtualModuleName = options.virtualModuleName ?? "virtual:dev-inspector-mcp";
88215
+ let resolvedHost = options.host || "localhost";
88216
+ let resolvedPort = options.port || 5173;
88215
88217
  if (!enabled) return { name: "unplugin-dev-inspector" };
88216
88218
  return {
88217
88219
  name: "unplugin-dev-inspector",
@@ -88230,8 +88232,8 @@ if (import.meta.env.DEV) {
88230
88232
 
88231
88233
  // Store dev server config globally (injected at build time)
88232
88234
  window.__DEV_INSPECTOR_CONFIG__ = {
88233
- host: '${options.host || "localhost"}',
88234
- port: '${options.port || 5173}',
88235
+ host: '${resolvedHost}',
88236
+ port: '${resolvedPort}',
88235
88237
  base: import.meta.env.BASE_URL || '/'
88236
88238
  };
88237
88239
 
@@ -88273,6 +88275,12 @@ if (import.meta.env.DEV) {
88273
88275
  },
88274
88276
  vite: {
88275
88277
  apply: "serve",
88278
+ configResolved(config) {
88279
+ const viteHost = config.server.host;
88280
+ resolvedHost = options.host ?? (typeof viteHost === "string" ? viteHost : viteHost === true ? "0.0.0.0" : "localhost");
88281
+ resolvedPort = options.port ?? config.server.port ?? 5173;
88282
+ if (resolvedHost === "0.0.0.0") resolvedHost = "localhost";
88283
+ },
88276
88284
  transformIndexHtml: {
88277
88285
  order: "pre",
88278
88286
  handler(html$2, ctx) {
package/dist/index.js CHANGED
@@ -88204,6 +88204,8 @@ const unplugin = createUnplugin((options = {}) => {
88204
88204
  const enabled = options.enabled ?? process.env.NODE_ENV !== "production";
88205
88205
  const enableMcp = options.enableMcp ?? true;
88206
88206
  const virtualModuleName = options.virtualModuleName ?? "virtual:dev-inspector-mcp";
88207
+ let resolvedHost = options.host || "localhost";
88208
+ let resolvedPort = options.port || 5173;
88207
88209
  if (!enabled) return { name: "unplugin-dev-inspector" };
88208
88210
  return {
88209
88211
  name: "unplugin-dev-inspector",
@@ -88222,8 +88224,8 @@ if (import.meta.env.DEV) {
88222
88224
 
88223
88225
  // Store dev server config globally (injected at build time)
88224
88226
  window.__DEV_INSPECTOR_CONFIG__ = {
88225
- host: '${options.host || "localhost"}',
88226
- port: '${options.port || 5173}',
88227
+ host: '${resolvedHost}',
88228
+ port: '${resolvedPort}',
88227
88229
  base: import.meta.env.BASE_URL || '/'
88228
88230
  };
88229
88231
 
@@ -88265,6 +88267,12 @@ if (import.meta.env.DEV) {
88265
88267
  },
88266
88268
  vite: {
88267
88269
  apply: "serve",
88270
+ configResolved(config) {
88271
+ const viteHost = config.server.host;
88272
+ resolvedHost = options.host ?? (typeof viteHost === "string" ? viteHost : viteHost === true ? "0.0.0.0" : "localhost");
88273
+ resolvedPort = options.port ?? config.server.port ?? 5173;
88274
+ if (resolvedHost === "0.0.0.0") resolvedHost = "localhost";
88275
+ },
88268
88276
  transformIndexHtml: {
88269
88277
  order: "pre",
88270
88278
  handler(html$2, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/unplugin-dev-inspector-mcp",
3
- "version": "0.0.2-beta.34",
3
+ "version": "0.0.2-beta.35",
4
4
  "description": "Universal dev inspector plugin for React/Vue - inspect component sources and API calls in any bundler",
5
5
  "type": "module",
6
6
  "license": "MIT",