@hyperframes/producer 0.4.23 → 0.4.25
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/public-server.js
CHANGED
|
@@ -104227,8 +104227,12 @@ async function initializeSession(session) {
|
|
|
104227
104227
|
}
|
|
104228
104228
|
});
|
|
104229
104229
|
page.on("pageerror", (err) => {
|
|
104230
|
-
const
|
|
104231
|
-
|
|
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();
|
|
@@ -108780,13 +108784,13 @@ function createFileServer2(options) {
|
|
|
108780
108784
|
let filePath = null;
|
|
108781
108785
|
if (compiledDir) {
|
|
108782
108786
|
const candidate = join12(compiledDir, relativePath);
|
|
108783
|
-
if (existsSync13(candidate) && isPathInside(candidate, compiledDir
|
|
108787
|
+
if (existsSync13(candidate) && isPathInside(candidate, compiledDir) && statSync6(candidate).isFile()) {
|
|
108784
108788
|
filePath = candidate;
|
|
108785
108789
|
}
|
|
108786
108790
|
}
|
|
108787
108791
|
if (!filePath) {
|
|
108788
108792
|
const candidate = join12(projectDir, relativePath);
|
|
108789
|
-
if (existsSync13(candidate) && isPathInside(candidate, projectDir
|
|
108793
|
+
if (existsSync13(candidate) && isPathInside(candidate, projectDir) && statSync6(candidate).isFile()) {
|
|
108790
108794
|
filePath = candidate;
|
|
108791
108795
|
}
|
|
108792
108796
|
}
|