cdp-tunnel 2.7.1 → 2.7.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.7.1",
4
+ "version": "2.7.2",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
@@ -1,5 +1,5 @@
1
1
  var Config = {
2
- WS_URL: 'ws://localhost:19236/plugin',
2
+ WS_URL: 'ws://localhost:23297/plugin',
3
3
  RECONNECT_DELAY: 3000,
4
4
  DEBUGGER_VERSION: '1.3',
5
5
  HEARTBEAT_INTERVAL: 25000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Bridge Chrome's debugger API to WebSocket — control your existing browser with Playwright/Puppeteer via CDP",
5
5
  "main": "server/proxy-server.js",
6
6
  "bin": "./cli/index.js",
@@ -923,11 +923,9 @@ function handlePluginConnection(ws, clientInfo, request) {
923
923
  }
924
924
  if (mapping.isGetTargets && parsed.result && parsed.result.targetInfos) {
925
925
  const clientId = mapping.clientId;
926
- const pluginWsForGetTargets = ws;
927
926
  parsed.result.targetInfos = parsed.result.targetInfos.filter(t => {
928
927
  if (t.type !== 'page') return true;
929
928
  const ownerClient = ns.targetIdToClientId.get(t.targetId);
930
- if (!ownerClient) return true;
931
929
  return ownerClient === clientId;
932
930
  });
933
931
  console.log(`[GET TARGETS FILTERED] client=${clientId} returned ${parsed.result.targetInfos.filter(t => t.type === 'page').length} page targets`);