@hyperframes/producer 0.4.23 → 0.4.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.
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();
@@ -108615,13 +108619,13 @@ function createFileServer2(options) {
108615
108619
  let filePath = null;
108616
108620
  if (compiledDir) {
108617
108621
  const candidate = join12(compiledDir, relativePath);
108618
- if (existsSync13(candidate) && isPathInside(candidate, compiledDir, { resolveSymlinks: true }) && statSync6(candidate).isFile()) {
108622
+ if (existsSync13(candidate) && isPathInside(candidate, compiledDir) && statSync6(candidate).isFile()) {
108619
108623
  filePath = candidate;
108620
108624
  }
108621
108625
  }
108622
108626
  if (!filePath) {
108623
108627
  const candidate = join12(projectDir, relativePath);
108624
- if (existsSync13(candidate) && isPathInside(candidate, projectDir, { resolveSymlinks: true }) && statSync6(candidate).isFile()) {
108628
+ if (existsSync13(candidate) && isPathInside(candidate, projectDir) && statSync6(candidate).isFile()) {
108625
108629
  filePath = candidate;
108626
108630
  }
108627
108631
  }