browserpilot-cdp 1.2.2 → 1.2.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.
package/dist/cli.js CHANGED
@@ -8,11 +8,12 @@ import path7 from "node:path";
8
8
  import { fileURLToPath as fileURLToPath3 } from "node:url";
9
9
 
10
10
  // ../protocol/dist/constants.js
11
- var BROWSERPILOT_VERSION = "1.2.2";
11
+ var BROWSERPILOT_VERSION = "1.2.3";
12
12
  var DEFAULT_DAEMON_HOST = "127.0.0.1";
13
13
  var DEFAULT_DAEMON_PORT = 19888;
14
14
  var NATIVE_HOST_NAME = "com.browserpilot.bridge";
15
15
  var NATIVE_MESSAGE_MAX_BYTES = 1024 * 1024;
16
+ var NATIVE_INCOMING_MAX_BYTES = 64 * 1024 * 1024;
16
17
  var DEFAULT_CDP_TIMEOUT_MS = 15e3;
17
18
  var MAX_CONSOLE_BUFFER = 5e3;
18
19
  var MAX_NETWORK_BUFFER = 2e3;
@@ -1184,7 +1185,16 @@ function filterSnapshotLines(fullText, search, maxMatches = 25) {
1184
1185
  const allLines = fullText.split("\n");
1185
1186
  const header = allLines[0]?.startsWith("URL:") ? allLines[0] : "";
1186
1187
  const body = header ? allLines.slice(1) : allLines;
1187
- const regex = search instanceof RegExp ? search : new RegExp(escapeRegex(search), "i");
1188
+ let regex;
1189
+ if (search instanceof RegExp) {
1190
+ regex = search;
1191
+ } else {
1192
+ try {
1193
+ regex = new RegExp(search, "i");
1194
+ } catch {
1195
+ regex = new RegExp(escapeRegex(search), "i");
1196
+ }
1197
+ }
1188
1198
  const matchedIndices = /* @__PURE__ */ new Set();
1189
1199
  let count = 0;
1190
1200
  for (let i = 0; i < body.length; i++) {