@iwsdk/cli 0.3.2 → 0.4.1

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/cli.js CHANGED
@@ -5846,7 +5846,7 @@ function inferRuntimeIssueCause(message, browser, explicitCause) {
5846
5846
  async function trySendRuntimeCommand(protocol, port, method, params, timeoutMs, browser) {
5847
5847
  return new Promise((resolve, reject) => {
5848
5848
  const requestId = `${Date.now()}-${Math.random().toString(16).slice(2)}`;
5849
- const wsUrl = `${protocol}://localhost:${port}/__iwer_mcp`;
5849
+ const wsUrl = `${protocol}://127.0.0.1:${port}/__iwer_mcp`;
5850
5850
  const ws = new WebSocket$1(wsUrl, {
5851
5851
  rejectUnauthorized: false,
5852
5852
  });
@@ -6127,7 +6127,8 @@ function isBrowserProbeResult(value) {
6127
6127
  !Array.isArray(value) &&
6128
6128
  typeof value.bridgeConnected === 'boolean' &&
6129
6129
  typeof value.commandReady === 'boolean' &&
6130
- typeof value.waitedForBridgeMs === 'number' &&
6130
+ typeof value.waitedForBridgeMs ===
6131
+ 'number' &&
6131
6132
  typeof value.browser === 'object');
6132
6133
  }
6133
6134
  async function probeBrowserCommandReady(session, timeoutMs) {