@hyperframes/producer 0.4.23 → 0.5.0-alpha.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/index.js CHANGED
@@ -101438,8 +101438,12 @@ async function initializeSession(session) {
101438
101438
  }
101439
101439
  });
101440
101440
  page.on("pageerror", (err) => {
101441
- const text = `[Browser:PAGEERROR] ${err instanceof Error ? err.message : String(err)}`;
101442
- console.error(text);
101441
+ const message = err instanceof Error ? err.message : String(err);
101442
+ const text = `[Browser:PAGEERROR] ${message}`;
101443
+ const isPlayAbort = /^AbortError:/.test(message) && message.includes("play()") && message.includes("pause()");
101444
+ if (!isPlayAbort) {
101445
+ console.error(text);
101446
+ }
101443
101447
  session.browserConsoleBuffer.push(text);
101444
101448
  if (session.browserConsoleBuffer.length > BROWSER_CONSOLE_BUFFER_SIZE) {
101445
101449
  session.browserConsoleBuffer.shift();