@mcpc-tech/unplugin-dev-inspector-mcp 0.1.27 → 0.1.28

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
@@ -146,7 +146,7 @@ export function registerInspectorTool(_tool) {
146
146
  load(id) {
147
147
  if (id === "\0" + virtualModuleName) {
148
148
  if (!enabled || viteCommand === "build") return createNoopVirtualModule();
149
- const host = resolvedHost;
149
+ const host = resolvedHost === "0.0.0.0" ? "localhost" : resolvedHost;
150
150
  const port = resolvedPort;
151
151
  const showInspectorBar = options.showInspectorBar ?? true;
152
152
  const publicBaseUrl = require_helpers.getPublicBaseUrl({
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ export function registerInspectorTool(_tool) {
142
142
  load(id) {
143
143
  if (id === "\0" + virtualModuleName) {
144
144
  if (!enabled || viteCommand === "build") return createNoopVirtualModule();
145
- const host = resolvedHost;
145
+ const host = resolvedHost === "0.0.0.0" ? "localhost" : resolvedHost;
146
146
  const port = resolvedPort;
147
147
  const showInspectorBar = options.showInspectorBar ?? true;
148
148
  const publicBaseUrl = getPublicBaseUrl({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/unplugin-dev-inspector-mcp",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
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",