cdp-tunnel 2.10.2 → 2.10.3

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.
@@ -27,6 +27,7 @@ function ConnectionState(connectionId, mode) {
27
27
  this.browserContextIds = new Set(['default']);
28
28
  this.screencastPollingSessions = new Map();
29
29
  this.automatedTabs = new Set();
30
+ this._groupCreationPromises = new Map();
30
31
  }
31
32
 
32
33
  ConnectionState.prototype.mapSession = function(sessionId, tabId, targetId) {
@@ -260,6 +261,18 @@ ConnectionState.prototype.removeGroupForClient = function(clientId) {
260
261
  this.clientIdToGroupId.delete(clientId);
261
262
  };
262
263
 
264
+ ConnectionState.prototype.setGroupCreationPromise = function(clientId, promise) {
265
+ if (promise) {
266
+ this._groupCreationPromises.set(clientId, promise);
267
+ } else {
268
+ this._groupCreationPromises.delete(clientId);
269
+ }
270
+ };
271
+
272
+ ConnectionState.prototype.getGroupCreationPromise = function(clientId) {
273
+ return this._groupCreationPromises.get(clientId) || null;
274
+ };
275
+
263
276
  ConnectionState.prototype.addPreExistingTab = function(tabId) {
264
277
  this.preExistingTabIds.add(tabId);
265
278
  };
@@ -335,6 +348,7 @@ ConnectionState.prototype.clearAllState = function() {
335
348
  this.pendingCreatedTabUrls.clear();
336
349
  this.cdpCreatedTabIds.clear();
337
350
  this.cdpClients = [];
351
+ this._groupCreationPromises.clear();
338
352
  };
339
353
 
340
354
  ConnectionState.prototype.persist = function(tabId, attached) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.10.2",
4
+ "version": "2.10.3",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
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",