unprint 0.18.23 → 0.18.24

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unprint",
3
- "version": "0.18.23",
3
+ "version": "0.18.24",
4
4
  "description": "Simplify common web scraping tasks while staying in control of the data.",
5
5
  "main": "src/app.js",
6
6
  "scripts": {},
package/src/app.js CHANGED
@@ -1247,6 +1247,7 @@ async function closeAllBrowsers() {
1247
1247
  keys: closingClients.map((client) => client.key),
1248
1248
  active: closingClients.reduce((acc, client) => acc + (client.active || 0), 0),
1249
1249
  retired: false,
1250
+ clients: clients.size,
1250
1251
  });
1251
1252
  }
1252
1253
 
@@ -1260,6 +1261,7 @@ async function closeBrowser(client, options) {
1260
1261
  keys: [client.key],
1261
1262
  active: client.active,
1262
1263
  retired: !!client.retired,
1264
+ clients: clients.size,
1263
1265
  });
1264
1266
  }
1265
1267
  }
@@ -1328,6 +1330,7 @@ async function browserRequest(url, customOptions = {}) {
1328
1330
  keys: [client.key],
1329
1331
  active: client.active,
1330
1332
  retired: false,
1333
+ clients: clients.size,
1331
1334
  });
1332
1335
 
1333
1336
  client.active += 1;