pinokiod 2.15.80 → 2.15.81
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/kernel/loader.js +10 -5
- package/package.json +1 -1
- package/server/index.js +1 -2
- package/server/views/browser.ejs +365 -188
- package/server/views/browser-experimental.ejs +0 -1541
package/kernel/loader.js
CHANGED
|
@@ -23,11 +23,16 @@ class Loader {
|
|
|
23
23
|
// resolved = await this.requireYAML(_path)
|
|
24
24
|
} else {
|
|
25
25
|
// load JS if directory
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
try {
|
|
27
|
+
let stat = await fs.promises.stat(_path)
|
|
28
|
+
if (stat.isDirectory()) {
|
|
29
|
+
resolved = await this.requireJS(_path)
|
|
30
|
+
dirname = _path
|
|
31
|
+
} else {
|
|
32
|
+
resolved = null
|
|
33
|
+
}
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.log(e)
|
|
31
36
|
resolved = null
|
|
32
37
|
}
|
|
33
38
|
}
|
package/package.json
CHANGED