@mcpc-tech/unplugin-dev-inspector-mcp 0.1.26 → 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/config-updater.cjs +1 -1
- package/dist/config-updater.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/config-updater.cjs
CHANGED
|
@@ -179,7 +179,7 @@ var StandaloneServer = class {
|
|
|
179
179
|
}
|
|
180
180
|
async start(options = {}) {
|
|
181
181
|
const startPort = options.port || getDefaultPort();
|
|
182
|
-
this.host = "0.0.0.0";
|
|
182
|
+
this.host = options.host ? "localhost" : "0.0.0.0";
|
|
183
183
|
this.allowedHosts = options.allowedHosts || [];
|
|
184
184
|
for (let port = startPort; port < startPort + 100; port++) try {
|
|
185
185
|
await new Promise((resolve$1, reject) => {
|
package/dist/config-updater.js
CHANGED
|
@@ -171,7 +171,7 @@ var StandaloneServer = class {
|
|
|
171
171
|
}
|
|
172
172
|
async start(options = {}) {
|
|
173
173
|
const startPort = options.port || getDefaultPort();
|
|
174
|
-
this.host = "0.0.0.0";
|
|
174
|
+
this.host = options.host ? "localhost" : "0.0.0.0";
|
|
175
175
|
this.allowedHosts = options.allowedHosts || [];
|
|
176
176
|
for (let port = startPort; port < startPort + 100; port++) try {
|
|
177
177
|
await new Promise((resolve$2, reject) => {
|
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