@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.
@@ -104227,8 +104227,12 @@ async function initializeSession(session) {
104227
104227
  }
104228
104228
  });
104229
104229
  page.on("pageerror", (err) => {
104230
- const text = `[Browser:PAGEERROR] ${err instanceof Error ? err.message : String(err)}`;
104231
- console.error(text);
104230
+ const message = err instanceof Error ? err.message : String(err);
104231
+ const text = `[Browser:PAGEERROR] ${message}`;
104232
+ const isPlayAbort = /^AbortError:/.test(message) && message.includes("play()") && message.includes("pause()");
104233
+ if (!isPlayAbort) {
104234
+ console.error(text);
104235
+ }
104232
104236
  session.browserConsoleBuffer.push(text);
104233
104237
  if (session.browserConsoleBuffer.length > BROWSER_CONSOLE_BUFFER_SIZE) {
104234
104238
  session.browserConsoleBuffer.shift();