@hyperframes/producer 0.5.0-alpha.1 → 0.5.0-alpha.2
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
|
@@ -108784,13 +108784,13 @@ function createFileServer2(options) {
|
|
|
108784
108784
|
let filePath = null;
|
|
108785
108785
|
if (compiledDir) {
|
|
108786
108786
|
const candidate = join12(compiledDir, relativePath);
|
|
108787
|
-
if (existsSync13(candidate) && isPathInside(candidate, compiledDir
|
|
108787
|
+
if (existsSync13(candidate) && isPathInside(candidate, compiledDir) && statSync6(candidate).isFile()) {
|
|
108788
108788
|
filePath = candidate;
|
|
108789
108789
|
}
|
|
108790
108790
|
}
|
|
108791
108791
|
if (!filePath) {
|
|
108792
108792
|
const candidate = join12(projectDir, relativePath);
|
|
108793
|
-
if (existsSync13(candidate) && isPathInside(candidate, projectDir
|
|
108793
|
+
if (existsSync13(candidate) && isPathInside(candidate, projectDir) && statSync6(candidate).isFile()) {
|
|
108794
108794
|
filePath = candidate;
|
|
108795
108795
|
}
|
|
108796
108796
|
}
|